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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



_______________________________________________
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

Reply via email to