From 9e4a1704abad52f9023b5e1af6d44f1308753c81 Mon Sep 17 00:00:00 2001 From: "Yuri D. Lensky" Date: Sun, 12 Mar 2017 17:58:15 -0700 Subject: [PATCH] org-capture.el: Fix handling of variable capture location * lisp/org-capture.el (org-capture-expand-file): Fix handling of variable capture location. --- lisp/org-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 9ac929417..f8688ba9c 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))))