emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Carsten Dominik
Subject: Re: [Orgmode] patch to org-public.el for Windows
Date: Tue, 5 Feb 2008 19:11:37 +0100

applied, thanks.

- Carsten

On Feb 5, 2008, at 3:00 PM, Tokuya Kameshima wrote:

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



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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