Check if `org-capture-link-is-already-stored' is bound before evaluating.
commit4c1b83e8995f872d68dfde2df513ef7466f6d5e1
authorDavid Maus <dmaus@ictsoc.de>
Fri, 9 Jul 2010 10:42:30 +0000 (9 10:42 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 9 Jul 2010 08:06:50 +0000 (9 10:06 +0200)
tree3ff69a6a07f88538e0d6dc87c272381fd5015d5d
parentfb292711439e7f07967d439a45ef19d9467edf69
Check if `org-capture-link-is-already-stored' is bound before evaluating.

* org-capture.el (org-capture): Check if
`org-capture-link-is-already-stored' is bound before evaluating.

If `org-protocol-capture' is the first function that calls
`org-capture', this variable is locally bound while it is globally
unbound. I.e. org-capture.el was not loaded before, the defvar not
evaluated.  If `org-protocol-capture' exits, Emacs restores the global
value, which is void.
lisp/org-capture.el