From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Jack Subject: Re: Re: %i indentation in capture templates Date: Fri, 6 Aug 2010 05:11:18 -0500 Message-ID: References: <8762zo87zk.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=57790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhJtY-000367-MJ for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 06:11:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhJtW-0000dr-TM for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 06:11:20 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:57488) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhJtW-0000di-PQ for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 06:11:18 -0400 Received: by qwk4 with SMTP id 4so5542932qwk.0 for ; Fri, 06 Aug 2010 03:11:18 -0700 (PDT) In-Reply-To: <8762zo87zk.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 2010/8/6 S=E9bastien Vauban : > But just wanted to confirm you this seems, then, a bug to me (regarding w= hat > 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))