* patch to org-public.el for Windows
@ 2008-02-05 14:00 Tokuya Kameshima
2008-02-05 18:11 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Tokuya Kameshima @ 2008-02-05 14:00 UTC (permalink / raw)
To: emacs-orgmode
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"))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: patch to org-public.el for Windows
2008-02-05 14:00 patch to org-public.el for Windows Tokuya Kameshima
@ 2008-02-05 18:11 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-02-05 18:11 UTC (permalink / raw)
To: Tokuya Kameshima; +Cc: emacs-orgmode
applied, thanks.
- Carsten
On Feb 5, 2008, at 3:00 PM, Tokuya Kameshima wrote:
> 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"))
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-05 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-05 14:00 patch to org-public.el for Windows Tokuya Kameshima
2008-02-05 18:11 ` Carsten Dominik
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).