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 14:09:48 +0530 Message-ID: References: <20101025125103.3348022d@hsdev.com> <181523CA-D4A6-482F-A1BB-38BD32D4DEBD@gmail.com> <3FE04894-0508-46EE-904F-16603FA6774F@gmail.com> <20101026101605.5aebe200@hsdev.com> <20101026103557.3ae4ae1c@hsdev.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=39702 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAf4U-000853-6g for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:39:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAf4P-0004zW-Lv for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:39:52 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:49325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAf4P-0004zG-JU for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:39:49 -0400 Received: by gwj18 with SMTP id 18so2366254gwj.0 for ; Tue, 26 Oct 2010 01:39:49 -0700 (PDT) In-Reply-To: <20101026103557.3ae4ae1c@hsdev.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: Marcel van der Boom Cc: emacs-orgmode@gnu.org, Carsten Dominik On Tue, Oct 26, 2010 at 2:05 PM, Marcel van der Boom wro= te: > On di 26-okt-2010 13:54 > Noorul Islam wrote: > >>On Tue, Oct 26, 2010 at 1:46 PM, Marcel van der Boom >> wrote: >>> On di 26-okt-2010 06:35 >>> Carsten Dominik wrote: >>> >>>>>> 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? >>> >>> The newlines are indeed fixed, but I have to manually widen the >>> target buffer before the captured entry is visible. >>> >>> Tried this on emacs 23 as well and there it is functioning properly, >>> so this seems emacs 24 specific too. >> >>How did you fix it? >> > Sorry, I wasn't clear. Capturing with emacs 23 with the latest git > version works perfectly. > > If I use emacs 24 with the latest git capturing works with respect to > the newlines, but leaves the captured entry invisible in the target > buffer until I widen the buffer. > I thought it got automatically fixed. But I could see this. commit 2a58795e1958210b96e9adee52b9dd68f7d1f50e Author: Carsten Dominik Date: Tue Oct 26 06:34:16 2010 +0200 Fix empty line bug in capture * lisp/org-capture.el (org-capture-empty-lines-before): (org-capture-empty-lines-after): Make sure the n=3D0 does not insert an= y newlines. Thanks and Regards Noorul