summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri D. Lensky <ydlensky@gmail.com>2017-03-12 17:58:15 -0700
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-05-19 16:07:27 +0200
commit9e4a1704abad52f9023b5e1af6d44f1308753c81 (patch)
treece52efc16b489b94057614ce7e7d63ebdfaad0fa
parentab79f112b4c4d8bbca1baf7d28cbe70726537317 (diff)
downloadorg-mode-9e4a1704abad52f9023b5e1af6d44f1308753c81.tar.gz
org-capture.el: Fix handling of variable capture location
* lisp/org-capture.el (org-capture-expand-file): Fix handling of variable capture location.
-rw-r--r--lisp/org-capture.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 9ac9294..f8688ba 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1060,7 +1060,7 @@ case, raise an error."
(let ((location (cond ((equal file "") org-default-notes-file)
((stringp file) (expand-file-name file org-directory))
((functionp file) (funcall file))
- ((and (symbolp file) (bound-and-true-p file)))
+ ((and (symbolp file) (boundp file)) (symbol-value file))
(t nil))))
(or (org-string-nw-p location)
(error "Invalid file location: %S" location))))