org-export: Make sure that window displaying UI is tall enough

* contrib/lisp/org-export.el (org-export-dispatch-ui): Make sure that
  window displaying UI is tall enough. This fixes a bug where only
  a part of the menu was displayed.
ob-exp: Remove comma-escaping special rule for Org blocks

* lisp/ob-exp.el (org-babel-exp-code): Remove comma-escaping special
  rule for Org blocks.
org-export: Use relative path for target filenames

* contrib/lisp/org-export.el (org-export-output-file-name): Use
  relative path for target filenames.
org-export: Fix commit 468d86052805e3d1438ae4a0487b4f197e572b82

* contrib/lisp/org-export.el (org-export-dispatch-ui): Ensure fitting
  happens once contents have been inserted in the displayed buffer.
Fix typos fixed in Emacs (part 1)

Thanks to Paul Eggert for the fixes:
http://lists.gnu.org/archive/html/emacs-diffs/2012-10/msg00069.html
Merge branch 'maint'
Fix typos fixed in Emacs (part 2)

Thanks to Paul Eggert for the fixes:
http://lists.gnu.org/archive/html/emacs-diffs/2012-10/msg00069.html
Merge branch 'maint'
ob-exp: Fix small bug

* lisp/ob-exp.el (org-export-blocks-preprocess): Pos can sometimes be
  set to a value greater than start, because of indentation, and lead
  to a search bound error.
Use "mode-line" instead of "modeline".

* org-clock.el (org-clock-modeline-total): Make obsolete.
(org-clock-mode-line-total): Rename from
`org-clock-modeline-total'.
(org-clock-get-sum-start): Fix references to
`org-clock-modeline-total'.

* org-faces.el (org-agenda-filter-tags)
(org-agenda-filter-category, mode-line): Use the 'mode-line
face instead of the obsolete 'modeline.

Thanks to Brendan Halpin for reporting this.
Merge branch 'maint'
org.el (org-refile-check-position): Fix typo in docstring.

* org.el (org-refile-check-position): Fix typo in docstring.
org-lparse.el (browse-url-file-url): Declare.

* org-lparse.el (browse-url-file-url): Declare.
org.el: Add more explicit errors.  Fix some declarations and one autoload.

* org.el (org-refile-check-position): Throw an error when the
refile target is the current buffer and is not a file.
(org-agenda-file-to-front, org-remove-file): Throw an error
when the current buffer is not a file.
(org-check-agenda-file): Enhance the message.
(org-element-type): Autoload.
(org-element-context, org-element-paragraph-parser): Don't
declare as these two functions are not used in org.el.
Merge branch 'maint'

Conflicts:
	lisp/org.el
Table lookup functions

* lisp/org-table.el: added macro org-define-lookup-function and the
calls to this macro that generate the lookup functions
org-lookup-first, org-lookup-last and org-lookup-all
* doc/org.texi: documented lookup functions
org.texi: Delete trailing whitespaces.
org-lparse.el (org-lparse): Fix bug by returning the output of `org-do-lparse'.

* org-lparse.el (org-lparse): Fix bug by returning the output
of `org-do-lparse'.

Thanks to Jambunathan for reporting this.
Merge branch 'maint'
org-src.el (org-edit-src-exit): Fix bug when saving an empty source buffer

* org-src.el (org-edit-src-exit): Fix bug when saving an empty
source buffer.

Thanks to Hsiu-Khuern Tang for reporting this.