emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas Jack <thomasjack@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Re: %i indentation in capture templates
Date: Fri, 6 Aug 2010 05:11:18 -0500	[thread overview]
Message-ID: <AANLkTikn2K4esVv8cq=1d0dE4e_axtZN+TdYvVVHQwoJ@mail.gmail.com> (raw)
In-Reply-To: <8762zo87zk.fsf@mundaneum.com>

2010/8/6 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>:
> 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))

  reply	other threads:[~2010-08-06 10:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05 13:35 %i indentation in capture templates Thomas Jack
2010-08-06  8:23 ` Sébastien Vauban
2010-08-06 10:11   ` Thomas Jack [this message]
2010-08-11  9:11     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTikn2K4esVv8cq=1d0dE4e_axtZN+TdYvVVHQwoJ@mail.gmail.com' \
    --to=thomasjack@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).