[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: %i indentation in capture templates
From: |
Thomas Jack |
Subject: |
Re: [Orgmode] Re: %i indentation in capture templates |
Date: |
Fri, 6 Aug 2010 05:11:18 -0500 |
2010/8/6 Sébastien Vauban <address@hidden>:
> But just wanted to confirm you this seems, then, a bug to me (regarding what
> the doc promises).
Thanks for the confirmation.
The following patch seems to fix the problem:
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 111f7f7..1e407f1 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1045,6 +1045,7 @@ Lisp programs can force the template by setting
KEYS to a string."
"Fill a template and return the filled template as a string.
The template may still contain \"%?\" for cursor positioning."
(setq template (or template (org-capture-get :template)))
+ (setq initial (or initial (org-capture-get :initial)))
(when (stringp initial)
(setq initial (org-no-properties initial))
(remove-text-properties 0 (length initial) '(read-only t) initial))