org.el: Send a warning when org-loaddefs.el could not be found
commitf36b19eef60b0d21702024dd69eda991a937eb3c
authorBastien Guerry <bzg@altern.org>
Thu, 29 May 2014 20:08:43 +0000 (29 22:08 +0200)
committerBastien Guerry <bzg@altern.org>
Thu, 29 May 2014 20:08:43 +0000 (29 22:08 +0200)
treef75408d1cdf48eadc644a53061cc52267a1c92b7
parentdb9d63d3139b92a4aaa39cf7a0fe9baaff7fea08
org.el: Send a warning when org-loaddefs.el could not be found

* org.el: Send a warning when org-loaddefs.el could not be
found in the directory where this org.el file is loaded from.

* ox-org.el (org-org-publish-to-org):
* ox-odt.el (org-odt-do-format-code):
* ox-html.el (org-html-fontify-code):
* org.el (org-fontify-like-in-org-mode):
* org-src.el (org-src-font-lock-fontify-block):
* org-clock.el (org-clock-get-clocktable): Use
`font-lock-ensure' instead of `font-lock-fontify-buffer'.

* org.el (org-outline-level, org-copy-subtree)
(org-sort-entries, orgstruct-setup, org-show-context)
(org-create-formula-image-with-dvipng)
(org-create-formula-image-with-imagemagick)
(org-goto-sibling, org-goto-first-child, org-show-entry): Use
`ignore-errors' instead of (condition-case nil ... (error nil)).

People trying to load org.el when org-loaddefs.el is not available
has been a major cause of trouble when installing Org.  The warning
tells them what they need to do.
lisp/org-clock.el
lisp/org-src.el
lisp/org.el
lisp/ox-html.el
lisp/ox-odt.el
lisp/ox-org.el