org-export: Fix export with Babel calls outside export scope

* contrib/lisp/org-export.el (org-export-as): Fix export with Babel
  calls outside export scope by providing buffer's name holding full
  data instead of the one holding its copy limited to scope.
* testing/lisp/test-org-export.el (test-org-export/export-scope): Add
  a test.
org-e-latex: Add sidewaystable option for tables

* EXPERIMENTAL/org-e-latex.el (org-e-latex-table--format-string): Add
  sidewaystable option for tables.
org-element: Remove an unused argument

* contrib/lisp/org-element.el (org-element-parse-secondary-string):
  Remove unused optional argument.
org-element: Small refactoring

* contrib/lisp/org-element.el (org-element-swap-A-B,
  org-element-drag-backward, org-element-drag-forward): Small
  refactoring.
* testing/lisp/test-org-element.el: Add tests.
Tags/properties matcher: Fixed issues with todo-only matches

lisp/org.el (org-scan-tags): Require todo-only argument, and document
that it should be the same one set by make-org-tags-matcher.
Fix documentation to explain that todo-only is really
not-done-todo-only.

(org-make-tags-matcher): If todo part of matcher starts with /!,
matcher now always checks that the TODO keyword is present and
is a not-done state.  This matters e.g. for org-map-entries
which unlike org-scan-tags does not do its own separate todo-only
filtering.  Added docs to explain matcher dependencies.

(org-map-entries): Make sure todo-only is correctly passed from
org-make-tags-matcher to org-scan-tags.

* lisp/org-clock.el: (org-clock-get-table-data): Make sure todo-only
does not leak when it is set by make-org-tags-macher.

* lisp/org-crypt.el: (org-encrypt-entries, org-decrypt-entries): Make
sure todo-only is correctly passed from org-make-tags-matcher to
org-scan-tags.

* contrib/lisp/contacts.el: (org-contacts-filter) : Make sure todo-only
is correctly passed from org-make-tags-matcher to org-scan-tags.
Merge branch 'hotfix-7.8.06'
org.el (org-show-subtree): Make interactive.

* org.el (org-show-subtree): Make interactive.

TINYCHANGE
Merge branch 'hotfix-7.8.06'
org-latex.el: Fix bug in setting the export directory according to the LaTeX options.

* org-latex.el (org-export-as-latex): Fix bug in setting the
export directory according to the LaTeX options.

Thanks to A. Major for reporting this and to Christian Moe for suggesting a
fix.
Merge branch 'hotfix-7.8.06'
org-habit.el: Fix alignment of consistency graph in filtered agenda view.

* org-habit.el (org-habit-insert-consistency-graphs): Fix
alignment of consistency graph in filtered agenda view.

TINYCHANGE
Merge branch 'hotfix-7.8.06'
org-colview.el: Also consider inline tasks when computing the sum.

* org-colview.el (org-columns-compute): Also consider inline
tasks when computing the sum.

TINYCHANGE

Thanks to Myles English for spotting this and for his patch,
this one is a slightly modified version of his.
Silent compiler by moving `org-odt-entity-labels-alist' up in the file.
org-agenda.el (org-agenda-filter-apply): Bugfix: Add a missing let binding.

* org-agenda.el (org-agenda-filter-apply): Bugfix: Add let
binding.
Merge branch 'hotfix-7.8.06'
org.el (org-read-date): Don't mention `parse-time-weekdays' and `parse-time-months' in the docstring.

* org.el (org-read-date): Don't mention `parse-time-weekdays'
and `parse-time-months' in the docstring.

This problem has been reported by Michael Heerdegen -- see
Emacs bug#11042 against 24.0.94.
Merge branch 'hotfix-7.8.06'
Removing duplicate key definitions for 'pcomplete.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9809 for details.
Removing duplicate key definitions for 'pcomplete.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9809 for details.