From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Bug: export failed when using footnotes inside src blocks [7.7] Date: Sat, 30 Jul 2011 16:23:59 +0530 Message-ID: <81pqksuji0.fsf@gmail.com> References: <4E33BF33.2050508@htlwrn.ac.at> <7790.1312016444@alphaville.dokosmarshall.org> <81tya4unv6.fsf@gmail.com> <8571.1312019903@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn7Bb-0007lw-LB for emacs-orgmode@gnu.org; Sat, 30 Jul 2011 06:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qn7BZ-0001LP-NC for emacs-orgmode@gnu.org; Sat, 30 Jul 2011 06:54:27 -0400 Received: from mail-pz0-f49.google.com ([209.85.210.49]:43246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn7BZ-0001LE-IY for emacs-orgmode@gnu.org; Sat, 30 Jul 2011 06:54:25 -0400 Received: by pzk33 with SMTP id 33so6827283pzk.8 for ; Sat, 30 Jul 2011 03:54:24 -0700 (PDT) In-Reply-To: <8571.1312019903@alphaville.dokosmarshall.org> (Nick Dokos's message of "Sat, 30 Jul 2011 05:58:23 -0400") 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: nicholas.dokos@hp.com Cc: ko@htlwrn.ac.at, emacs-orgmode@gnu.org Nick Dokos writes: > Jambunathan K wrote: > >> Nick Dokos writes: >>=20 >> > G=FCnter Kolousek wrote: >> > >> >>=20 >> >> Hi, using footnotes i.e. [2] inside #+begin_src #+end_src causes erro= rs >> >> during export using orgmode 7.7 and tip. >> >>=20 >> >> G=FCnter >> >>=20 >> >> ... >> >>=20 >> >> * Test >> >> foo >> >> #+begin_src python >> >> lst =3D [-1, -2, 2, -3, -4] >> >>=20 >> >> for x in lst[:]: >> >> if x < 0: >> >> lst.remove(x) >> >>=20 >> >> print(lst) # [2] <- does not work! >> >> #+end_src >> >>=20 >>=20 >> This should set the thing to rest. >>=20 > > Acctually, no: I took the OP's request (and I presume I misled you into > thinking that too) as a functionality request, but I didn't read it > carefully enough. I think he is complaining about getting an error (see > the attached backtrace). Right, it shouldn't crash. FWIW, The problem is (org-footnote-get-next-reference ...) sees the following text while looking for next reference. \begin{verbatim} lst =3D [-1, -2, 2, -3, -4] for x in lst[:]: if x < 0: lst.remove(x) print(lst) # [2] <- does not work! \end{verbatim} AFAICS the above text has no text decorations as well. Naturally org-footnote-get-next-reference is misled into believing that it is in the "allowed" territory.=20 Jambunathan K. > > Nick > > > >> ,----[ C-h v org-footnote-forbidden-blocks RET ] >> | org-footnote-forbidden-blocks is a variable defined in `org-footnote.e= l'. >> | Its value is >> | ("example" "verse" "src" "ascii" "beamer" "docbook" "html" "latex" "od= t") >> |=20 >> |=20 >> | Documentation: >> | Names of blocks where footnotes are not allowed. >> |=20 >> | [back] >> `---- >>=20 >> OP can search for for alternative ways to reference code block lines in >> the following section of the manual >> http://orgmode.org/org.html#Literal-examples >>=20 >> (Hint: Search for ref:jump) >>=20 >>=20 >> Jambunathan K. >>=20