emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Thomas Jack <thomasjack@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: %i indentation in capture templates
Date: Wed, 11 Aug 2010 11:11:31 +0200	[thread overview]
Message-ID: <D01084AD-EBAC-47B6-AA5E-865C20175311@gmail.com> (raw)
In-Reply-To: <AANLkTikn2K4esVv8cq=1d0dE4e_axtZN+TdYvVVHQwoJ@mail.gmail.com>


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

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

Applied, at a slightly different place in that function.

Thanks!

- Carsten

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

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

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=D01084AD-EBAC-47B6-AA5E-865C20175311@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=thomasjack@gmail.com \
    --subject='Re: Re: %i indentation in capture templates' \
    /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

Code repositories for project(s) associated with this 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).