From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam Subject: Re: org-capture adds newline(s) when it should not Date: Tue, 26 Oct 2010 11:06:46 +0530 Message-ID: References: <20101025125103.3348022d@hsdev.com> <181523CA-D4A6-482F-A1BB-38BD32D4DEBD@gmail.com> <3FE04894-0508-46EE-904F-16603FA6774F@gmail.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=60248 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAcDK-000784-GM for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 01:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAcDH-00083p-Pu for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 01:36:50 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:41607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAcDH-00083R-NU for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 01:36:47 -0400 Received: by gyg13 with SMTP id 13so3227919gyg.0 for ; Mon, 25 Oct 2010 22:36:47 -0700 (PDT) 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: Carsten Dominik Cc: emacs-orgmode@gnu.org On Tue, Oct 26, 2010 at 10:34 AM, Noorul Islam wrote: > On Tue, Oct 26, 2010 at 10:05 AM, Carsten Dominik > wrote: >> >> On Oct 26, 2010, at 6:29 AM, Noorul Islam wrote: >> >>> On Mon, Oct 25, 2010 at 5:46 PM, Carsten Dominik >>> wrote: >>>> >>>> On Oct 25, 2010, at 1:58 PM, Noorul Islam wrote: >>>> >>>>> On Mon, Oct 25, 2010 at 4:48 PM, Noorul Islam wro= te: >>>>>> >>>>>> On Mon, Oct 25, 2010 at 4:21 PM, Marcel van der Boom >>>>>> wrote: >>>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> I'm in the process of migrating from org-remember to org-capture. >>>>>>> Pretty easy going so far, but it seems org-capture adds newlines, >>>>>>> which >>>>>>> I think it should not do. >>>>>>> >>>>>>> My (test) capture-template is: >>>>>>> >>>>>>> (("t" "Todo" entry >>>>>>> =A0(file "~/.outlet/GTD.org") >>>>>>> =A0"* TODO %?" :prepend t :empty-lines 0) >>>>>>> >>>>>>> with the intention of inserting the captured task on the >>>>>>> first line of the file ~/.outlet/GTD.org. What happens when I captu= re >>>>>>> an task is this: >>>>>>> >>>>>>> >>>>>>> >>>>>>> * TODO Captured task >>>>>>> >>>>>>> >>>>>>> .... >>>>>>> >>>>>>> Both before and after the task is a newline. Also, when capturing a= nd >>>>>>> cancelling the capture with C-c C-k the newlines remain whereas the >>>>>>> task is removed. >>>>>>> >>>>>>> I'm using the latest git version with emacs 24.0.50.1 on Ubuntu 10.= 10 >>>>>>> >>>>>>> Am I doing something wrong or is this a bug? >>>>>>> >>>>>> >>>>>> I do not have Emacs 24 as of now. >>>>>> >>>>>> With the same template I am not able to re-create this on >>>>>> >>>>>> Org-mode version 7.01trans (release_7.01h.832.gf7094) >>>>>> GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) >>>>>> =A0of 2010-01-30 on noorul >>>>>> >>>>> >>>>> On emacs 24 I am able to re-create the problem Marcel reported. >>>> >>>> I find that puzzling. =A0What might have changed in Emacs 24 to cause = such >>>> differences? =A0I do not use Emacs 24 on a day-to-day basis yet. >>>> >>> >>> On emacs 24 (newline 0) inserts a new line which I think is incorrect. >> >> Sounds like a but to me too. >> For now I am working around this in the latest git version. >> >> Marcel, this should be fixed. =A0Could you please submit a bug report >> to Emacs 24, stating that (newline 0) does insert a newline? >> > > I filed a bug report. > Here is the link http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7281 - Noorul