From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: adding a footnote munches newlines at the end of a section Date: Thu, 02 Feb 2012 18:25:11 +0800 Message-ID: <87obth5y7s.fsf@ericabrahamsen.net> References: <87fwetn4bx.fsf@ericabrahamsen.net> <87d39xr4bf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rstqi-0007Ky-Ic for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 05:25:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rstqc-0007Cz-S0 for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 05:25:04 -0500 Received: from plane.gmane.org ([80.91.229.3]:51638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rstqc-0007Cv-KH for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 05:24:58 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RstqY-0008N4-Rw for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 11:24:54 +0100 Received: from 114.250.131.40 ([114.250.131.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 11:24:54 +0100 Received: from eric by 114.250.131.40 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 11:24:54 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, Feb 02 2012, Nicolas Goaziou wrote: > Hello, > > Eric Abrahamsen writes: > >> I use `org-footnote-action' (C-c C-x f) to add a footnote, and don't >> have any "org-footnote-section" set, so it adds them at the end of the >> current subtree. This progressively eats up newlines, so that if I add >> two footnotes in a row, it intrudes on the headline of the next >> section. > > I have pushed a fix for that problem, and another one related to the > absence of org-footnote-section (normalizing footnotes would put them > all in the same section). > > Does it work for you? Thanks for your attention, Nicolas, but I'm still seeing the same behavior. I went pawing through the code to see if I could track down the exact spot where it goes wrong, and can only come up with what is now line 550 in "org-footnote.el". Shouldn't the call to `insert' include a trailing newline? Thanks again, Eric -- GNU Emacs 24.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.24.9) of 2012-01-26 on pellet Org-mode version 7.8.03 (release_7.8.03.293.g36cc)