unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* org-publish failed on windows because of illegal timestamp filename
@ 2008-02-05 16:33 Zhang Wei
  2008-02-14  0:59 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Wei @ 2008-02-05 16:33 UTC (permalink / raw)
  To: emacs-devel

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




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

* Re: org-publish failed on windows because of illegal timestamp filename
  2008-02-05 16:33 org-publish failed on windows because of illegal timestamp filename Zhang Wei
@ 2008-02-14  0:59 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2008-02-14  0:59 UTC (permalink / raw)
  To: Zhang Wei; +Cc: emacs-devel

"Zhang Wei" <id.brep@gmail.com> 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).




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

end of thread, other threads:[~2008-02-14  0:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 16:33 org-publish failed on windows because of illegal timestamp filename Zhang Wei
2008-02-14  0:59 ` Chong Yidong

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

	https://git.savannah.gnu.org/cgit/emacs.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).