org-e-latex: "%b" really means base filename

* contrib/lisp/org-e-latex.el (org-e-latex-pdf-process): Update
  docstring.
(org-e-latex-compile): "%b" is replaced with base filename, that is
filename without directory and extension.
org-e-man, org-e-groff: Update compile functions

* contrib/lisp/org-e-groff.el (org-e-groff-compile): Mirror recent
  changes about base filename and default-directory made to
  `org-e-latex-compile'.
* contrib/lisp/org-e-man.el (org-e-man-compile): Mirror recent changes
  about base filename and default-directory made to
  `org-e-latex-compile'.
org-e-texinfo: Update compile function

* contrib/lisp/org-e-texinfo.el (org-e-texinfo-compile): Mirror recent
changes about base filename and default-directory made to
`org-e-latex-compile'.
ob-exp: Escape code when re-creating a src blocks

* lisp/ob-exp.el (org-babel-exp-code): Escape code when re-creating
  a src blocks.
ob-ditaa: needs to require org-compat for org-find-library-dir

* lisp/ob-ditaa.el: Needs to (require 'org-compat) for org-find-library-dir.
Merge branch 'maint'
Fix bug in org-agenda-diary-sexp-prefix

* lisp/org-agenda.el (org-agenda-get-sexps): Reset `extra' to nil at
beginning of re-search-forward loop, otherwise next iteration picks up
`extra' value from previous entry.
Clocking: Move to task before calling org-clock-in-prepare-hook

* lisp/org-clock.el (org-clock-in): Moved the call to
org-clock-in-prepare-hook until the task's properties
can be accessed.

The problem was when using a function to add an effort
property via the hook, it would not recognise an existing
effort property when called with the prefix (C-u C-c C-x C-i)
with the point at a place other than at the task.

TINYCHANGE
contrib/lisp/org-contacts.el: Require 'org-agenda.

Thanks to Christopher Schmidt for pointing this.
Run `bookmark-set' within `with-demoted-errors'.

* org.el (org-refile): Run within `with-demoted-errors' so
that a corrupted bookmark file does not stop the refile
process.

* org-capture.el (org-capture-bookmark-last-stored-position):
Ditto for the capture process.

Note: we do not prevent such errors in org-remember.el as this
libary will be obsoleted for the next major release of Org.
Remove the obsolete argument `hidden' from `org-export-as-latex'.

* org-latex.el (org-export-as-latex): Remove obsolete argument
`hidden'.  Also fix the docstring: using 'string as the value
for `to-buffer' outputs a string with no LaTeX header.
(org-export-as-latex-batch)
(org-export-as-latex-to-buffer, org-export-region-as-latex)
(org-export-as-pdf): Don't use the obsoleted argument.

* ob-haskell.el (org-export-as-latex): Don't use the obsoleted
argument `hidden'.
Merge branch 'maint'
Fix typo in refcard and whitespaces in org.texi.
Merge branch 'maint'
org-export: Fix error when exporting buffers not visiting a file

* contrib/lisp/org-export.el (org-export-output-file-name): Do not
  return an error when exported buffer isn't visiting a file.
org.texi (Installation): Mention "make test" in the correct section

* org.texi (Installation): Mention "make test" in the correct
section.

Thanks to Uvius for reporting this problem.
Merge branch 'maint'
org-install.el: Enhance warning

* org-install.el: Enhance warning.

Thanks to Simon Thum for requesting this.
Merge branch 'maint'
org.el (org-log-into-drawer): Honor the nil value for the :LOG_INTO_DRAWER: property.

* org.el (org-log-into-drawer): Honor the nil value for the
:LOG_INTO_DRAWER: property.

TINYCHANGE