From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Gray Subject: Bug: export latex bug [6.34trans] Date: Fri, 26 Feb 2010 12:35:26 +0100 Message-ID: <86mxywtekh.fsf@gmail.com> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkyTo-0005oB-TA for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 06:35:36 -0500 Received: from [140.186.70.92] (port=34755 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkyTn-0005nx-MH for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 06:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkyTm-0005lH-OA for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 06:35:35 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:52323) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkyTm-0005l9-IK for emacs-orgmode@gnu.org; Fri, 26 Feb 2010 06:35:34 -0500 Received: by wwb24 with SMTP id 24so2533565wwb.0 for ; Fri, 26 Feb 2010 03:35:28 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org When exporting to LaTeX, I get the error void-variable org-on-heading-p. The following patch fixes the problem. Cheers, Chris Emacs : GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-20 on portan Package: Org-mode version 6.34trans commit 7d187462ebb90c8b45b66b50551d1adc7a4f84f9 Author: Chris Gray Date: Fri Feb 26 12:27:18 2010 +0100 Removed empty if statement Modified lisp/org-latex.el diff --git a/lisp/org-latex.el b/lisp/org-latex.el index c12d178..51a96d4 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -2045,7 +2045,6 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (add-text-properties (1- (length footnote-rpl)) (length footnote-rpl) '(org-protected t) footnote-rpl) - (if org-on-heading-p) (setq footnote-rpl (concat (org-export-latex-protect-string "\\protect") footnote-rpl))