diff options
author | Yuri D. Lensky <ydlensky@gmail.com> | 2017-03-12 17:58:15 -0700 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-05-19 16:07:27 +0200 |
commit | 9e4a1704abad52f9023b5e1af6d44f1308753c81 (patch) | |
tree | ce52efc16b489b94057614ce7e7d63ebdfaad0fa | |
parent | ab79f112b4c4d8bbca1baf7d28cbe70726537317 (diff) | |
download | org-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.el | 2 |
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)))) |