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 02:38:36 +0100 Message-ID: <87zjac7bkz.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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3xO1-0007rt-IW for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 20:38:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3xNw-0005bq-Jr for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 20:38:45 -0500 Received: from mout.gmx.net ([212.227.17.20]:65269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3xNw-0005bd-B5 for emacs-orgmode@gnu.org; Wed, 24 Dec 2014 20:38:40 -0500 Received: from W530 ([89.186.183.135]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MCOdh-1YCRqQ0l9t-009AbY for ; Thu, 25 Dec 2014 02:38:39 +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 Hi, Nicolas Goaziou writes: >> When running through "make test" (org-current-level) evaluate to one >> (before expansion) even when narrowed (should be nil). > > Why? `org-current-level' ignores narrowing. Perhaps something changed recently then. In the version I was testing with, (with-temp-buffer (org-mode) (insert "* h1\np1") (goto-char (point-max)) (cons (org-current-level) (progn (narrow-to-region (line-beginning-position) (line-end-position)) (or (org-current-level) "it's nil")))) =3D> (1 . "it's nil") But now I updated and indeed it returns (1 . 1). =E2=80=94Rasmus --=20 Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken p=C3=A5 kn=C3= =A4!