From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: New lines (return chracter?) in capture templates Date: Mon, 22 Nov 2010 20:34:50 -0500 Message-ID: References: <20101123005508.GN3139@x201> 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=33836 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKhmt-0002rk-Ke for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 20:35:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKhms-0001R0-K4 for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 20:35:15 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:44497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKhms-0001Qv-B6 for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 20:35:14 -0500 Received: by bwz16 with SMTP id 16so6957576bwz.0 for ; Mon, 22 Nov 2010 17:35:13 -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: emacs-orgmode@gnu.org 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. > > ,---- > | =A0'(org-capture-templates (quote (("t" "Todo" entry (file+headline > | =A0"~/org/ftr/jeff/notes/tasks.org" "Tasks") "* TODO %? %i %a") ("n" > | =A0"Note" entry (file+datetree "~/org/ftr/jeff/notes/notes.org") "* %U\= \n > | =A0*%^{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. Thanks for suggesting I look at the config again! Jeff --=20 Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/