From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Re: Bad footnotes when including org files Date: Wed, 26 Mar 2014 21:34:46 +0100 Message-ID: <533339E6.4040205@gmail.com> References: <5324E5F1.5080207@gmail.com> <5325DF5C.9040606@gmail.com> <874n2luimo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSuXL-0000MP-Iq for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 16:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSuXD-0002is-5L for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 16:34:59 -0400 Received: from mail-ee0-x22f.google.com ([2a00:1450:4013:c00::22f]:63169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSuXC-0002i7-TV for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 16:34:51 -0400 Received: by mail-ee0-f47.google.com with SMTP id b15so2088383eek.6 for ; Wed, 26 Mar 2014 13:34:49 -0700 (PDT) In-Reply-To: <874n2luimo.fsf@gmail.com> 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: Nicolas Goaziou , Xavier Garrido Cc: James Harkins , emacs-orgmode@gnu.org Hi Nicolas, Le 26/03/2014 15:41, Nicolas Goaziou a écrit : > Hello, > > Xavier Garrido writes: > >> Thanks for your answer. Maybe I will try your solution. Otherwise >> I will run a "before-parse-hook" to change fn:XX to something unique >> (by adding buffer name for example. > > We could do it by default. > > One problem is that INCLUDE keyword is a very simple feature. For > example, if you include two files in a row and the first one ends with > a footnote section, the other one will be included in that section and, > therefore, not exported. So if we start to make it smart, we could be > tempted to add too many other checks. > > Anyway, here's a patch for that. > > WDYT? > Applied, tested and it works like a charm. I still have some issues with a very big "book" I am writing but at least on the small example I sent it solves the issues. Thanks a lot, Xavier