summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Chaganti <punchagan@gmail.com>2011-02-26 16:53:51 +0100
committerBastien Guerry <bzg@altern.org>2011-02-26 16:53:51 +0100
commitaa946f224da7522728cc1703bca75e4af7636fc9 (patch)
treed07f54e6e0ad3ec1ae3d24875c6828043a5c5f94
parent3c19ab2092a7cf1bf98ec6d2ee0d1af371213320 (diff)
downloadorg-mode-aa946f224da7522728cc1703bca75e4af7636fc9.tar.gz
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.
-rw-r--r--lisp/org-capture.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 4f71daf..e9a851e 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -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)