emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tokuya Kameshima <kames@fa2.so-net.ne.jp>
To: emacs-orgmode@gnu.org
Subject: patch to org-public.el for Windows
Date: Tue, 05 Feb 2008 23:00:24 +0900	[thread overview]
Message-ID: <ulk5zcxl3.wl%kames@fa2.so-net.ne.jp> (raw)

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

             reply	other threads:[~2008-02-05 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-05 14:00 Tokuya Kameshima [this message]
2008-02-05 18:11 ` patch to org-public.el for Windows Carsten Dominik

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.orgmode.org/

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

  git send-email \
    --in-reply-to=ulk5zcxl3.wl%kames@fa2.so-net.ne.jp \
    --to=kames@fa2.so-net.ne.jp \
    --cc=emacs-orgmode@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/org-mode.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).