mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-27 00:02:51 +00:00
Fix bug with capture template prompt history
* lisp/org-capture.el (org-capture-fill-template): Initialize history variable.
This commit is contained in:
parent
ae6d203a4b
commit
2b3fa6ef3e
|
@ -1202,6 +1202,7 @@ The template may still contain \"%?\" for cursor positioning."
|
||||||
"org-capture-template-prompt-history::"
|
"org-capture-template-prompt-history::"
|
||||||
(or prompt "")))
|
(or prompt "")))
|
||||||
completions (mapcar 'list completions)))
|
completions (mapcar 'list completions)))
|
||||||
|
(unless (boundp histvar) (set histvar nil))
|
||||||
(cond
|
(cond
|
||||||
((member char '("G" "g"))
|
((member char '("G" "g"))
|
||||||
(let* ((org-last-tags-completion-table
|
(let* ((org-last-tags-completion-table
|
||||||
|
|
Loading…
Reference in a new issue