org.el: Add more explicit errors. Fix some declarations and one autoload.
commit1fc41ca61e8f7f08c57e55ad688482d956d3ccf3
authorBastien Guerry <bzg@altern.org>
Wed, 24 Oct 2012 10:45:08 +0000 (24 12:45 +0200)
committerBastien Guerry <bzg@altern.org>
Wed, 24 Oct 2012 10:45:08 +0000 (24 12:45 +0200)
treef8b2769996e33803ecb0c1deab1026aafb859709
parentb714a09af21bdd77a7f4fce945e3019f8b277e54
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.
lisp/org.el