emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] patch to org-public.el for Windows


From: Tokuya Kameshima
Subject: [Orgmode] patch to org-public.el for Windows
Date: Tue, 05 Feb 2008 23:00:24 +0900

Hi all.

This is a patch to org-public.el for Emacs on Windows.  In Windows
systems, the file names are not allowed to have ":" in it.  So, we
need to convert ":" to "_".

Thanks,
--Tokuya


--- org-publish.el.ORIG Sat Jan 19 15:38:38 2008
+++ org-publish.el      Tue Feb 05 13:55:18 2008
@@ -294,7 +294,8 @@

 (defun org-publish-timestamp-filename (filename)
   "Return path to timestamp file for filename FILENAME."
-  (while (string-match "~\\|/" filename)
+  (while (string-match (if (eq system-type 'windows-nt) "~\\|/\\|:" "~\\|/")
+                      filename)
     (setq filename (replace-match "_" nil t filename)))
   (concat org-publish-timestamp-directory filename ".timestamp"))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]