[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-publish failed on windows because of illegal timestamp filename
From: |
Chong Yidong |
Subject: |
Re: org-publish failed on windows because of illegal timestamp filename |
Date: |
Wed, 13 Feb 2008 19:59:45 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.90 (gnu/linux) |
"Zhang Wei" <address@hidden> writes:
> The org-publish-timestamp-filename function try to compose a timestamp
> filename as something like "c:_BREP_org_notes.org.timestamp" which is
> illegal on windows, as there's a colon `:' in the filename. The
> following patch works for me:
>
> *** org-publish.el.~1.22.~ 2008-01-18 23:11:18.000000000 +0800
> --- org-publish.el 2008-02-06 00:24:58.000000000 +0800
> ***************
> *** 294,300 ****
>
> (defun org-publish-timestamp-filename (filename)
> "Return path to timestamp file for filename FILENAME."
> ! (while (string-match "~\\|/" filename)
> (setq filename (replace-match "_" nil t filename)))
> (concat org-publish-timestamp-directory filename ".timestamp"))
>
> --- 294,300 ----
>
> (defun org-publish-timestamp-filename (filename)
> "Return path to timestamp file for filename FILENAME."
> ! (while (string-match "~\\|/\\|:/" filename)
> (setq filename (replace-match "_" nil t filename)))
> (concat org-publish-timestamp-directory filename ".timestamp"))
Thanks. Installed in the trunk (org-publish isn't on the branch).