summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-09-30 13:11:46 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-09-30 13:12:12 +0200
commit2b3fa6ef3e4422e3596bd388f7daecbbda4408df (patch)
treece9493a68eceb4b47678c59f2a31d41e9010b217
parentae6d203a4be3006cf9a48e3ed166fa85144fb53f (diff)
downloadorg-mode-2b3fa6ef3e4422e3596bd388f7daecbbda4408df.tar.gz
Fix bug with capture template prompt history
* lisp/org-capture.el (org-capture-fill-template): Initialize history variable.
-rw-r--r--lisp/org-capture.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 44face1..6ce9cdd 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1202,6 +1202,7 @@ The template may still contain \"%?\" for cursor positioning."
"org-capture-template-prompt-history::"
(or prompt "")))
completions (mapcar 'list completions)))
+ (unless (boundp histvar) (set histvar nil))
(cond
((member char '("G" "g"))
(let* ((org-last-tags-completion-table