From 2b3fa6ef3e4422e3596bd388f7daecbbda4408df Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 30 Sep 2010 13:11:46 +0200 Subject: [PATCH] Fix bug with capture template prompt history * lisp/org-capture.el (org-capture-fill-template): Initialize history variable. --- lisp/org-capture.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 44face169..6ce9cdde7 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