From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, patch, ox] INCLUDE and footnotes Date: Thu, 25 Dec 2014 03:04:54 +0100 Message-ID: <87sig47ad5.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> <878uhx9b8q.fsf@gmx.us> <87wq5g21jy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3xnW-0004VO-Cg for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 21:05:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3xnN-0006Ye-OM for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 21:05:06 -0500 Received: from mout.gmx.net ([212.227.17.20]:55032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3xnN-0006YV-D8 for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 21:04:57 -0500 Received: from W530 ([89.186.183.135]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MDE6y-1Y7Dzo20ke-00GWhK for ; Thu, 25 Dec 2014 03:04:56 +0100 In-Reply-To: <87wq5g21jy.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 24 Dec 2014 22:14:09 +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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: >> 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. > > I don't see any failing test. When I use something like the attached patch, "make test" goes from passing to failing with a fresh Org. Why is it 1 when evaluated from a text-file?. Or perhaps the Magic Pixies are just angry with me. . . =E2=80=94Rasmus PS: I'll fix the test and push it. --=20 Not everything that goes around comes back around, you know --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0003-make-test-break.patch >From e1bf99586e8e7484d34a35d24430cf5ab7b66911 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Thu, 25 Dec 2014 02:51:15 +0100 Subject: [PATCH 3/3] make test break --- testing/lisp/test-ox.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/lisp/test-ox.el b/testing/lisp/test-ox.el index 8447875..bb57118 100644 --- a/testing/lisp/test-ox.el +++ b/testing/lisp/test-ox.el @@ -1027,7 +1027,7 @@ Footnotes[fn:2], foot[fn:test], digit only[3], and [fn:inline:anonymous footnote (buffer-string)))) ;; INCLUDE assigns the relative :minlevel conditional on narrowing. (should - (org-test-with-temp-text-in-file + (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) -- 2.2.1 --=-=-=--