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.
org2hpda: Adapt to modern pdfjam

* contrib/scripts/org2hpda (all): Adapt the invocation of pdfnup and
pdfjoin to a modern version of the pdfjam package.

Since version 2.0 of pdfjam, i.e. since 2010-03-14 some of the default
values for parameters have changed. This makes sure org2hpda does the
right thing under the new circumstances.
org-element: Fix latex environment parsing

* contrib/lisp/org-element.el (org-element-latex-environment-parser):
  Grab value until closing of main environment block.
(org-element-current-element): Check if main block is properly closed.
* testing/lisp/test-org-element.el: Add test.
org-element: Handle multiple TBLFM keywords

* contrib/lisp/org-element.el (org-element-table-parser,
  org-element-table-interpreter): Handle multiple TBLFM keywords.
(org-element-collect-affiliated-keywords): Minor changes to
docstring.
* testing/lisp/test-org-element.el: Add test.
org-element: Preserve visibility when moving elements

* contrib/lisp/org-element.el (org-element-swap-A-B): Preserve
  visibility when moving elements.
* testing/lisp/test-org-element.el: Add tests.
Can't assume every entry in a table is a sequence

* lisp/ob-R.el (org-babel-R-assign-elisp): Can't assume every entry in
  a table is a sequence.
org-export: Fix code comments

* contrib/lisp/org-export.el (org-export-resolve-fuzzy-link): Fix code comments.
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.
Merge branch 'maint'