From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export TODO keyword Date: Mon, 16 Aug 2010 11:37:28 -0400 Message-ID: <30121.1281973048@gamaville.dokosmarshall.org> References: <1FFE9A72-8651-4461-B8C5-C54B7F94569A@gmail.com> <87r5hyir9n.fsf@gmx.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=50750 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ol1lH-0001fq-2J for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 11:38:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ol1lB-0007qv-Is for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 11:38:02 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:35662) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ol1lB-0007qi-Fm for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 11:38:01 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L79004V94QGPQA0@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 10:37:30 -0500 (CDT) In-reply-to: Message from Rares Pop of "Mon, 16 Aug 2010 18:10:08 +0300." 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: Rares Pop Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org, Carsten Dominik Rares Pop wrote: > From what I found so far there are no macros involved here. > > I'll perform the upgrade to the latest version and see how if it's fixed. > It *was* a bug: it was fixed by this commit: ,---- | | commit be232c4c212283ca6311cfe35c0bae7719146e55 | Author: Carsten Dominik | Date: Thu May 13 08:47:26 2010 +0200 | | LaTeX export: Fix TODO keyword export | | diff --git a/lisp/ChangeLog b/lisp/ChangeLog | index 45c9ec7..04c9ecb 100644 | --- a/lisp/ChangeLog | +++ b/lisp/ChangeLog | @@ -1,3 +1,8 @@ | +2010-05-13 Carsten Dominik | + | + * org-latex.el (org-export-latex-keywords-maybe): Protect the | + TODO markup. | + | 2010-05-13 Mikael Fornius | | * org-habit.el (org-habit-build-graph): Help-echo date when | diff --git a/lisp/org-latex.el b/lisp/org-latex.el | index e3544bf..afa0be2 100644 | --- a/lisp/org-latex.el | +++ b/lisp/org-latex.el | @@ -1289,7 +1289,8 @@ links, keywords, lists, tables, fixed-width" | (cdr todo-markup) (car todo-markup))) | (t (cdr (or (assoc (match-string 1) todo-markup) | (car todo-markup)))))) | - (replace-match (format fmt (match-string 1)) t t))) | + (replace-match (org-export-latex-protect-string | + (format fmt (match-string 1))) t t))) | ;; convert priority string | (when (re-search-forward "\\[\\\\#.\\]" nil t) | (if (plist-get remove-list :priority) `---- so an upgrade should fix it.