From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: blank lines and keystrokes for org remember templates Date: Fri, 7 Sep 2007 10:04:21 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITYpD-0006O4-NQ for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITYpC-0006MI-V2 for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITYpC-0006M5-Gb for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:22 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITYpB-0002m3-Vc for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:22 -0400 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: John Wiegley Cc: emacs-orgmode@gnu.org The problem is that it is hard to see if a final newline in a remember buffer is meant to indicate an empty line or not. I will fix it in the following way: After exiting the remember buffer, Org-mode will add a newline *if there is none* and insert the resulting string into the outline tree. So if your template does end with zero or one \n, there will be no empty line after the entry. If it ends with \n\n, there will be an empty line. - Carsten On Sep 7, 2007, at 0:40, John Wiegley wrote: > "Scott Jaderholm" writes: > >> If I write TODO something I get a blank line after it in my org file >> even >> though I didn't put a newline when using remember. > > Even stranger is that it *doesn't* put a blank line if you have > multiple lines > of text in your remember block. I'd vote that if the template has no > blank > line, the entry never gets a blank line. > > John > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477