unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Zhang Wei" <id.brep@gmail.com>
To: emacs-devel@gnu.org
Subject: org-publish failed on windows because of illegal timestamp filename
Date: Wed, 6 Feb 2008 00:33:35 +0800	[thread overview]
Message-ID: <ebaf065f0802050833u1d283011jd5056ec4ac717bf1@mail.gmail.com> (raw)

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




             reply	other threads:[~2008-02-05 16:33 UTC|newest]

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

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=ebaf065f0802050833u1d283011jd5056ec4ac717bf1@mail.gmail.com \
    --to=id.brep@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).