From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Moving footnotes Date: Sun, 01 Jun 2014 08:48:49 +0200 Message-ID: <87sinpf7la.fsf@gmail.com> References: <87a99zmnkp.fsf@bzg.ath.cx> <87k393tmn6.fsf@gmail.com> <87ppiv8jdv.fsf@bzg.ath.cx> <87fvjqthvi.fsf@gmail.com> <87tx86cii5.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqzZ4-0006iv-7N for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 02:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqzYy-00088E-8V for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 02:48:18 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqzYy-000889-1F for emacs-orgmode@gnu.org; Sun, 01 Jun 2014 02:48:12 -0400 Received: by mail-wi0-f172.google.com with SMTP id hi2so2972905wib.11 for ; Sat, 31 May 2014 23:48:11 -0700 (PDT) In-Reply-To: <87tx86cii5.fsf@bzg.ath.cx> (Bastien's message of "Sat, 31 May 2014 13:09:06 +0200") 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: Bastien Cc: Leonard Randall , emacs-orgmode Hello, Bastien writes: > Nicolas Goaziou writes: > >> Here it is. It could be prettier but I think it should get the job >> done. > > Wow, thanks! I didn't expect this to be that long... > I tested it with various input files and it works fine. It could probably be refactored to gain a few lines of code. However it has to deal with a few corner cases so there is no simple solution. >>> PS: I think it's useful to trigger the org-footnote-action menu >>> when org-footnote-new cannot do anything useful. >> >> Sure, I will add it back later today, unless you're faster than me. > > No hurry. I won't be connected later today. Done. Though, I changed `org-footnote-action' instead of `org-footnote-new', since the latter should, IMO, return an error when called from a point where no footnote is allowed. Regards, -- Nicolas Goaziou