summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-07-28 21:05:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-07-28 21:05:50 -0400
commit3ee6b99f06c6b1bed88e65d78cafc98bf6de9819 (patch)
tree43b6e9d9f58d680a1e4d483b31336ffaef8db88a
parentdfa41442afd2ec51571c3a908f91b56466c869dc (diff)
downloadorg-mode-3ee6b99f06c6b1bed88e65d78cafc98bf6de9819.tar.gz
Added a missing call to (goto-char (point-min))
-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 2efed78..0ecea6a 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1144,6 +1144,7 @@ The template may still contain \"%?\" for cursor positioning."
(insert result)))))
;; Simple %-escapes
+ (goto-char (point-min))
(while (re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t)
(unless (org-capture-escaped-%)
(when (and initial (equal (match-string 0) "%i"))