From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: New lines (return chracter?) in capture templates Date: Tue, 23 Nov 2010 06:58:39 +0100 Message-ID: <8672144B-DA21-4ED0-8AED-310A4D1257C9@gmail.com> References: <20101123005508.GN3139@x201> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKltw-0000Rc-LF for emacs-orgmode@gnu.org; Tue, 23 Nov 2010 00:58:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKltr-00011r-9L for emacs-orgmode@gnu.org; Tue, 23 Nov 2010 00:58:48 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:47270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKltq-00011f-VP for emacs-orgmode@gnu.org; Tue, 23 Nov 2010 00:58:43 -0500 Received: by eydd26 with SMTP id d26so5889177eyd.0 for ; Mon, 22 Nov 2010 21:58:42 -0800 (PST) In-Reply-To: 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: Jeff Horn Cc: emacs-orgmode@gnu.org On Nov 23, 2010, at 2:34 AM, Jeff Horn wrote: > On Mon, Nov 22, 2010 at 8:28 PM, Jeff Horn > wrote: >> On Mon, Nov 22, 2010 at 7:55 PM, Russell Adams >> wrote: >>> Can you post the relevant section of your config file? >>> >>> I understand you included that template, but the context may help. >> >> No problem! Thanks for your willingness to help, Russell. The >> relevant >> section is below. >> >> ,---- >> | '(org-capture-templates (quote (("t" "Todo" entry (file+headline >> | "~/org/ftr/jeff/notes/tasks.org" "Tasks") "* TODO %? %i %a") ("n" >> | "Note" entry (file+datetree "~/org/ftr/jeff/notes/notes.org") "* >> %U\\n >> | *%^{Note Title}* %?\\n %i %a")))) >> `---- >> >> The variable was set through customize. If I'm reading this >> correctly, >> it appears that the customize interface is inserting an *additional* >> escape character before the slash. I'd consider this a bug, since >> this >> was not expected. > > Removing the extra escapes fixes the issue. > >> Do you know of a way to insert a newline through customize that >> doesn't >> get escaped automatically when the string is saved? > > Manually editing the customize init file and then viewing the variable > through the customize interface reveals the solution: simply press > return when inputting the string. The newline is picked up > automatically. In the customize interface, you can create a newline in the template using C-j or C-o or C-q C-j - Carsten