[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: %i indentation in capture templates

From: Carsten Dominik
Subject: Re: [Orgmode] Re: %i indentation in capture templates
Date: Wed, 11 Aug 2010 11:11:31 +0200

On Aug 6, 2010, at 12:11 PM, Thomas Jack wrote:

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))

Applied, at a slightly different place in that function.


- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]