From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: adding a footnote munches newlines at the end of a section Date: Thu, 02 Feb 2012 14:21:06 +0800 Message-ID: <87fwetn4bx.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rsq2W-0008VN-Gf for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 01:21:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rsq2V-0001hA-CS for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 01:21:00 -0500 Received: from plane.gmane.org ([80.91.229.3]:46344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rsq2V-0001h6-7S for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 01:20:59 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rsq2O-0006HX-2L for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 07:20:52 +0100 Received: from 50-56-99-223.static.cloud-ips.com ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 07:20:52 +0100 Received: from eric by 50-56-99-223.static.cloud-ips.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 07:20:52 +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 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: --8<---------------cut here---------------start------------->8--- [fn:31] 字里的飞白 [fn:32] sdfdsfsdf [fn:33] * Two They'd been going somewhere called Hailing[fn:4], a largish town, but Qin Shanyuan decided to stop here at the village of Zhaxia. --8<---------------cut here---------------end--------------->8--- Obviously "* Two" is actually meant to be on its own line, forming a new headline. This appears to be a problem with `org-footnote-goto-local-insertion-point', or with whatever function comes afterwards to add the actual footnote label. I guess not enough newlines are added. Is this reproducible elsewhere? Thanks, 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.285.g646b3)