From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: footnote renumber bug Date: Fri, 3 Jul 2009 23:49:47 +0200 Message-ID: <0D680B96-4638-44E1-8351-3E6E4F89A404@gmail.com> References: <4A4C59EE.9020602@online.de> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMqdr-0000F1-Vd for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 17:50:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMqdn-0000Ep-KY for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 17:49:59 -0400 Received: from [199.232.76.173] (port=58046 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMqdn-0000Em-DK for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 17:49:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:16808) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MMqdn-0003Qy-1R for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 17:49:55 -0400 Received: from ey-out-1920.google.com ([74.125.78.145]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MMqdl-0003y4-FD for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 17:49:53 -0400 Received: by ey-out-1920.google.com with SMTP id 3so572745eyh.36 for ; Fri, 03 Jul 2009 14:49:51 -0700 (PDT) In-Reply-To: <4A4C59EE.9020602@online.de> 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: Andreas Roehler Cc: emacs-orgmode Mailinglist On Jul 2, 2009, at 8:55 AM, Andreas Roehler wrote: > > Hi, > > after reopening a file with two footnotes inside, > inserting a third footnote between first and second, it > fails to renumber it. > > below the test-buffer > > Should I'm right so far --even seeing footnote reimplemented-- maybe =20= > have a look at > > https://code.launchpad.net/~a-roehler/s-x-emacs-werkstatt/footnote-=20 > init.el > > https://code.launchpad.net/~a-roehler/s-x-emacs-werkstatt/GNU-Emacs-=20= > footnote.diff > > https://code.launchpad.net/~a-roehler/s-x-emacs-werkstatt/XEmacs-=20 > footnote.diff > > Thanks all > > > Andreas R=F6hler Hi Andreas, you are the author of footnote-init.el, right? That was an important fix for footnote.el to make it usable for more than one-off documents. Let me re-enforce a few things that have already come up here, mainly in Matt's post. Org-mode started out using footnote.el, which I think is an excellent package for its original purpose - footnotes in emails. But after a lengthy discussion here on the list which you can find in the archive, I implemented a different mechanism. The main reasons were to allow for named footnotes and, most importantly, inline footnotes. These are very helpful when you are building documents using cut and paste, which is where footnote.el fails. Org did not implement automatic renumbering and sorting because it makes less sense to do so if footnotes are inline, or named and referenced multiple times. I can see that, when using footnotes in an isolated small document and automatic footnote lable generation, automatic renumbering and sorting is indeed useful. In this case, you could fall back to footnote.el. However, Org does internally have functions to sort and renumber footnotes, so there is no reason why we could not call them after generating or deleting a note. Lets see ... OK, in the latest git version of Org, use (setq org-footnote-auto-adjust t) On a per-file basis you can also turn this on and off with #+STARTUP: fnadjust #+STARTUP: nofnadjust HTH - Carsten > > -- > https://code.launchpad.net/s-x-emacs-werkstatt/ > http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/ > > GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of =20 > 2009-05-25 > > ;;;;;;;;;;;;;;;;;;;;;;;; > > asdfs [fn:1] > [fnx:3] > sdfs > [fn:2] > * Footnotes > > [fn:1] asdfs d > > [fn:2] xdddd > > [fn:3] dddd > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode