From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: patch to org-public.el for Windows Date: Tue, 5 Feb 2008 19:11:37 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMSGn-0004wY-PC for emacs-orgmode@gnu.org; Tue, 05 Feb 2008 13:11:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMSGm-0004wF-6I for emacs-orgmode@gnu.org; Tue, 05 Feb 2008 13:11:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMSGm-0004wA-3g for emacs-orgmode@gnu.org; Tue, 05 Feb 2008 13:11:44 -0500 Received: from nf-out-0910.google.com ([64.233.182.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMSGl-0006kO-RV for emacs-orgmode@gnu.org; Tue, 05 Feb 2008 13:11:44 -0500 Received: by nf-out-0910.google.com with SMTP id f5so538844nfh.26 for ; Tue, 05 Feb 2008 10:11:43 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tokuya Kameshima Cc: emacs-orgmode@gnu.org 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