emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Patch for a timestamp exporting bug in org-latex.el
@ 2009-04-15  5:17 Baoqiu Cui
  2009-04-15  6:34 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Baoqiu Cui @ 2009-04-15  5:17 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 441 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: latex-timestamp.diff --]
[-- Type: text/x-patch, Size: 566 bytes --]

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."

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Patch for a timestamp exporting bug in org-latex.el
  2009-04-15  5:17 Patch for a timestamp exporting bug in org-latex.el Baoqiu Cui
@ 2009-04-15  6:34 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-04-15  6:34 UTC (permalink / raw)
  To: Baoqiu Cui; +Cc: emacs-orgmode

Applied, thanks.

- Carsten

On Apr 15, 2009, at 7:17 AM, Baoqiu Cui wrote:

> 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
>
> <latex-timestamp.diff>_______________________________________________
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-15  6:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15  5:17 Patch for a timestamp exporting bug in org-latex.el Baoqiu Cui
2009-04-15  6:34 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).