From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: BUG: footnote conflicts with code export to pdf Date: Mon, 24 Oct 2011 15:01:28 -0400 Message-ID: <7414.1319482888@alphaville.americas.hpqcorp.net> References: <87k47wfmbw.fsf@gmail.com> <4020.1319338944@alphaville.dokosmarshall.org> <87lisa3o39.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIPmI-0004dq-Cc for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 15:01:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIPmH-0003B4-AO for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 15:01:42 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:17363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIPmH-00039D-6r for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 15:01:41 -0400 In-Reply-To: Message from zwz of "Mon, 24 Oct 2011 14:23:06 +0800." <87lisa3o39.fsf@gmail.com> 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: zwz Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org zwz wrote: > >> Then you modify it: > >> #+begin_src org > >> * test > >> #+BEGIN_SRC c > >> void main(){ > >> int a[5]; > >> } > >> #+END_SRC > >> #+end > >> > >> It says "org-export-latex-preprocess: Wrong type argument: stringp, > > nil" > >> when you try to export the file. > >> > >> > > > > You didn't say what version of org you are using. I cannot reproduce it > > in Org-mode version 7.7 (release_7.7.416.g93bd.dirty) > > > > Nick > > I am using org-mode 7.7-1 (installed by pacman on Archlinux). > > Just for future reference: this version does not exist in git, so it doesn't tell me much. What does M-x org-version say? That's the important thing (of course, the Archlinux people might have modified it but it's still the best bet when reporting versions). Be that as it may, I checked that release_7.7 had the problem, so I tried a bisection and found that the fix is in the following commit: ,---- | commit c3631aae7e68565978433cad8c4a2b286e91dfac | Author: Nicolas Goaziou | Date: Sat Jul 30 12:38:06 2011 +0200 | | org-footnote: prevent LaTeX export from catching footnotes in protect environment | | * lisp/org-footnote.el (org-footnote-in-valid-context-p): check | `org-protected' property before allowing to match a footnote. | (org-footnote-at-reference-p): remove an obsolete test. It's now done | in the previous function. `---- Nick