unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: "Zhang Wei" <id.brep@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: org-publish failed on windows because of illegal timestamp filename
Date: Wed, 13 Feb 2008 19:59:45 -0500	[thread overview]
Message-ID: <87k5l8qrni.fsf@stupidchicken.com> (raw)
In-Reply-To: <ebaf065f0802050833u1d283011jd5056ec4ac717bf1@mail.gmail.com> (Zhang Wei's message of "Wed\, 6 Feb 2008 00\:33\:35 +0800")

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




      reply	other threads:[~2008-02-14  0:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-05 16:33 org-publish failed on windows because of illegal timestamp filename Zhang Wei
2008-02-14  0:59 ` Chong Yidong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k5l8qrni.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=id.brep@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).