From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, patch, ox] INCLUDE and footnotes Date: Wed, 10 Dec 2014 12:58:14 +0100 Message-ID: <87bnnbhg2x.fsf@gmx.us> References: <87h9x5hwso.fsf@gmx.us> <87oarcbppe.fsf@nicolasgoaziou.fr> <87fvcozfhf.fsf@gmx.us> <87h9x4bj33.fsf@nicolasgoaziou.fr> <87iohks4ne.fsf@gmx.us> <87d27rbvio.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyfuR-0002L5-Te for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 06:58:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyfuL-0000CC-Rq for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 06:58:23 -0500 Received: from mout.gmx.net ([212.227.15.19]:57393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyfuL-0000C5-Gk for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 06:58:17 -0500 Received: from x200s ([109.201.152.25]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MBnvD-1Y9MUh1idD-00AkYU for ; Wed, 10 Dec 2014 12:58:16 +0100 In-Reply-To: <87d27rbvio.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 10 Dec 2014 12:21:19 +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 Nicolas Goaziou writes: > Rasmus writes: > >> Nicolas Goaziou writes: > >>> I think required definitions should be extracted from the included file >>> and inserted at the end of the source file, without any footnote >>> section.=20 >> >> The "hard" solution. I will look into it. > > It may not be that hard, but it will require tests. > > You also need to check that the footnote definition doesn't appear > within included area, in which case it needs not be moved. I have the collection of footnotes in the (beg end) area sorted out in the patch I wrote last night. Storing the triplet (document-path label footnote-text) should be enough to pin down one of them footnotes. I'm curious about the hash table. (info "(elisp) Hash Tables") says "For smaller tables (a few tens of elements) alists may still be faster [than hash tables]". For an Org document, might it not make more sense to use an alist for this? Or will the speed be regained when doing many includes from the same document (since I'd check if a footnote is already in the table)? Also, since INCLUDE is expanded before info, should I just create a new defvar holding the table during export? I guess that's the only way to hold it in memory across several INCLUDE words. > The can is open, the worms wiggling. Have fun. My favorite kind. =E2=80=94Rasmus --=20 Evidence suggests Snowden used a powerful tool called monospaced fonts