Bugfix with interactive prompt in templates expansion.

* org-capture.el (org-capture-fill-template): fix bug with
the display of interactive prompt in templates expansion.
This commit is contained in:
Puneeth Chaganti 2011-02-26 16:53:51 +01:00 committed by Bastien Guerry
parent 3c19ab2092
commit aa946f224d
1 changed files with 2 additions and 2 deletions

View File

@ -1279,8 +1279,8 @@ The template may still contain \"%?\" for cursor positioning."
(while (re-search-forward "%^\\({\\([^}]*\\)}\\)?\\([gGtTuUCLp]\\)?"
nil t)
(unless (org-capture-escaped-%)
(setq char (if (match-end 3) (match-string 3))
prompt (if (match-end 2) (match-string 2)))
(setq char (if (match-end 3) (match-string-no-properties 3))
prompt (if (match-end 2) (match-string-no-properties 2)))
(goto-char (match-beginning 0))
(replace-match "")
(setq completions nil default nil)