From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Patch for a timestamp exporting bug in org-latex.el Date: Tue, 14 Apr 2009 22:17:08 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtxV3-0006RU-A8 for emacs-orgmode@gnu.org; Wed, 15 Apr 2009 01:17:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtxUy-0006R0-7Y for emacs-orgmode@gnu.org; Wed, 15 Apr 2009 01:17:28 -0400 Received: from [199.232.76.173] (port=33111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtxUy-0006Qx-1F for emacs-orgmode@gnu.org; Wed, 15 Apr 2009 01:17:24 -0400 Received: from main.gmane.org ([80.91.229.2]:56995 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LtxUx-0000qX-KV for emacs-orgmode@gnu.org; Wed, 15 Apr 2009 01:17:23 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LtxUt-00035Z-Qm for emacs-orgmode@gnu.org; Wed, 15 Apr 2009 05:17:19 +0000 Received: from nat-dip6.cfw-a-gci.corp.yahoo.com ([209.131.62.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Apr 2009 05:17:19 +0000 Received: from cbaoqiu by nat-dip6.cfw-a-gci.corp.yahoo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Apr 2009 05:17:19 +0000 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 --=-=-= Hi Carsten, It seems that a minor old bug in LaTeX exporter was exposed recently by your timestamp change. When exporting a simple Org file that contains just the following two lines to LaTeX format, I got an error message saying "Invalid use of `\' in replacement text": * DONE Test CLOSED: [2009-04-14 Tue 20:12] A patch is attached at the end of this email. Please let me know if you see any problem with the fix. Thanks, Baoqiu --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=latex-timestamp.diff diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 41f0e24..da80caf 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1096,7 +1096,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." ".*" ; including the time stamp.... ))) (while (re-search-forward re nil t) - (replace-match (format "\\\\texttt{%s}" (match-string 0)) t)))) + (replace-match (format "\\texttt{%s}" (match-string 0)) t t)))) (defun org-export-latex-fixed-width (opt) "When OPT is non-nil convert fixed-width sections to LaTeX." --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--