From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, patch, ox] INCLUDE and footnotes Date: Wed, 24 Dec 2014 19:03:01 +0100 Message-ID: <878uhx9b8q.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> <87bnnbhg2x.fsf@gmx.us> <878uifbjc7.fsf@nicolasgoaziou.fr> <87388j9qbv.fsf@gmx.us> <87y4q57t2i.fsf@nicolasgoaziou.fr> <87lhm4n9ky.fsf@pank.eu> <87y4q3a8tc.fsf@pank.eu> <87d27cyas6.fsf@nicolasgoaziou.fr> <878ui039wv.fsf@gmx.us> <878ui0y3nx.fsf@nicolasgoaziou.fr> <87mw6g1mu7.fsf@gmx.us> <874msoxde0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3qH9-0003Uv-9q for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 13:03:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3qH5-0003X2-UY for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 13:03:11 -0500 Received: from mout.gmx.net ([212.227.17.21]:51759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3qH5-0003VV-Go for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 13:03:07 -0500 Received: from W530 ([89.186.183.135]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MgGDK-1YHUyM329u-00Nlve for ; Wed, 24 Dec 2014 19:03:04 +0100 In-Reply-To: <874msoxde0.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Mon, 22 Dec 2014 10:05:59 +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 Hi, Nicolas Goaziou writes: > You can push the patch once this is fixed. Pushed. See general comments in the other mail. One funny thing I observed was that the following test fails, but only when run via "make test", not from e.g. my "own" Emacs or emacs -q and emacs -q -nw. (should (org-test-with-temp-text (format "* h1\n#+INCLUDE: \"%s/examples/include.org::#ah\"" org-test-dir) (narrow-to-region (point) (point-max)) (org-export-expand-include-keyword) (eq 1 (org-current-level)))) When running through "make test" (org-current-level) evaluate to one (before expansion) even when narrowed (should be nil). However, this test passes "make test": (should (org-test-with-temp-text-in-file (format "* h1\n#+INCLUDE: \"%s/examples/include.org::#ah\"" org-test-dir) (narrow-to-region (point) (point-max)) (org-export-expand-include-keyword) (eq 1 (org-current-level)))) If somebody knows *why* this I would appreciate an explanation. (Can anybody confirm the above on their system?) Thanks, Rasmus -- . . . It begins of course with The Internet. A Net of Peers