From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Minor bug in footnotes Date: Sun, 04 Jan 2009 19:14:39 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJe3L-0007dF-21 for emacs-orgmode@gnu.org; Sun, 04 Jan 2009 20:14:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJe3K-0007cz-L2 for emacs-orgmode@gnu.org; Sun, 04 Jan 2009 20:14:46 -0500 Received: from [199.232.76.173] (port=48403 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJe3K-0007cw-Fa for emacs-orgmode@gnu.org; Sun, 04 Jan 2009 20:14:46 -0500 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:37461) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJe3K-0005yE-5n for emacs-orgmode@gnu.org; Sun, 04 Jan 2009 20:14:46 -0500 Received: from Macintosh-5.local (pool-96-248-128-134.sbndin.dsl-w.verizon.net [96.248.128.134]) by mail.messagingengine.com (Postfix) with ESMTPSA id 9F7D039BD7 for ; Sun, 4 Jan 2009 20:14:40 -0500 (EST) 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: emacs-orgmode@gnu.org Hi Carsten, After some additional testing of footnote options, I discovered another minor quirk. It occurs when org-footnote-section is set to a value such as "Footnotes" (the default value). When org-footnote-action is called for the very first time in an org buffer, the "Footnotes" headline is automatically created, but the footnote is placed above the headline. I believe this occurs when the "Footnotes" headline is the last line in the buffer, which is the case when the headline is automatically created. Once an empty line is placed beneath the "Footnotes" headline, new footnotes are correctly placed beneath it. The example below illustrates the behavior. Thanks, Matt ----begin org file-------- * Headline one The first footnote.[fn:1] The second footnote.[fn:2] Now I will add a an empty line beneath the "Footnotes" section.[fn:3] [fn:1] Notice that this footnote is inserted above the "Footnotes" section. [fn:2] The same behavior. * Footnotes [fn:3] Notice that the footnote is now placed below the footnote section. -----end org file-----