org-element: Allow targets in a few more places

* contrib/lisp/org-element.el (org-element-object-restrictions): Allow
  targets in a few more places.
org-export: Fix uninterpreted syntax status

* contrib/lisp/org-export.el (org-export-data): Send uninterpreted Org
  syntax into export process again, so plain text transformations
  still can be applied on it.
org-e-latex: Fix export of tables with a percent in caption

* contrib/lisp/org-e-latex.el (org-e-latex-table): Refactor code.
(org-e-latex-table--org-table, org-e-latex-table--table.el-table): New
functions.
(org-e-latex-table--format-string): Removed function.
org-list: Preserve visibility when moving items

* lisp/org-list.el (org-list-swap-items, org-list-send-item): Preserve
  visibility when moving items.
Merge branch 'maint'
org-list: Fix visibility preservation

* lisp/org-list.el (org-list-struct): Fix white spaces.
(org-list-swap-items, org-list-send-item): Fix visibility
preservation.
Merge branch 'maint'
Cure byte-compilation errors in org-remember.el
org-agenda.el: Fix bug: use `org-agenda-bulk-unmark-all'.

* org-agenda.el (org-agenda-bulk-action): Fix bug: use
`org-agenda-bulk-unmark-all'.
org.el (org-scan-tags): Correctly match TODO keywords.

* org.el (org-scan-tags): Correctly match TODO keywords.

Thanks to Simon Thum for reporting this.
Org-Babel: fix maxima invocation without explicit parameters

* ob-maxima.el (org-babel-execute:maxima): Let cmdline always
return a string.

TINYCHANGE

Signed-off-by: Simon Thum <simon.thum@gmx.de>
org.el: Make sure a file exists before trying to delete it.

* org.el (org-create-formula-image-with-dvipng)
(org-create-formula-image-with-imagemagick): Make sure a file
exists before trying to delete it.

Thanks to Benjamin Motz for this idea.
New option `org-allow-promoting-top-level-subtree'.

* org.el (org-allow-promoting-top-level-subtree): New option
to allow promoting a top-level subtree.
(org-called-with-limited-levels): New variable, dynamically
bound within the `org-with-limited-levels' macro.
(org-promote): Use the new option to allow promoting a
top-level subtree.

* org-macs.el (org-with-limited-levels): Let-bind
`org-called-interactively-p' to t.

Promoting a top-level subtree can be useful but should not be allowed by
default, as this restructuring is only reversible with M-x undo RET.
Allow setting tags for headlines in the active region.

* org.el (org-set-tags): Allow setting tags for headlines in
the region when `org-loop-over-headlines-in-active-region' is
non-nil.
org-agenda.el: Remove any timestamp from the headline text.

* org-agenda.el (org-agenda-get-timestamps): Remove any
active timestamp from the headline text, not only those for
the current date.

Thanks to SW, Nick Dokos, Samuel Wales and Brian van den Broek
for inputs about this.
org-list: Add visibility tests

* testing/lisp/test-org-list.el: Add tests.
Merge branch 'maint'
Fix bug with hline references on LHS of table formulas

* lisp/org-table.el (org-table-expand-lhs-ranges): Allow hline
references to be expanded correctly in LHS of formulas.

Based on Tobias' fix in http://thread.gmane.org/gmane.emacs.orgmode/55690
Merge branch 'master' of orgmode.org:org-mode
Remove spurious line inserted by previous commit.