* fix in org-publish-update-timestamp
@ 2009-05-29 13:59 Richard KLINDA
2009-05-30 5:00 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Richard KLINDA @ 2009-05-29 13:59 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
I use the ~ character to denote my home directory in
org-publish-project-alist (:base-directory and :publishing-directory),
like:
,----
| (setq org-publish-project-alist
| (list
| '("foo" . (:base-directory "~/doc/foo/" ...
`----
When directories are given this way and ORG-PUBLISH-UPDATE-TIMESTAMP
uses the touch command to update the timestamp, it doesn't work because
Emacs should expand the ~/ into the home directory via EXPAND-FILE-NAME.
See the attached patch, Carsten please include this, thanks.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: touch-fix.patch --]
[-- Type: text/x-diff, Size: 568 bytes --]
diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index c6c7421..399fdd3 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -233,7 +233,7 @@ If there is no timestamp, create one."
(if (and (fboundp 'set-file-times)
(not newly-created-timestamp))
(set-file-times timestamp-file)
- (call-process "touch" nil 0 nil timestamp-file))))
+ (call-process "touch" nil 0 nil (expand-file-name timestamp-file)))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Mapping files to project names
[-- Attachment #3: Type: text/plain, Size: 13 bytes --]
--
Richard
[-- Attachment #4: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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 related [flat|nested] 2+ messages in thread
* Re: fix in org-publish-update-timestamp
2009-05-29 13:59 fix in org-publish-update-timestamp Richard KLINDA
@ 2009-05-30 5:00 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-05-30 5:00 UTC (permalink / raw)
To: Richard KLINDA; +Cc: emacs-orgmode
Applied, thanks
- Carsten
On May 29, 2009, at 3:59 PM, Richard KLINDA wrote:
> I use the ~ character to denote my home directory in
> org-publish-project-alist (:base-directory and :publishing-directory),
> like:
>
> ,----
> | (setq org-publish-project-alist
> | (list
> | '("foo" . (:base-directory "~/doc/foo/" ...
> `----
>
> When directories are given this way and ORG-PUBLISH-UPDATE-TIMESTAMP
> uses the touch command to update the timestamp, it doesn't work
> because
> Emacs should expand the ~/ into the home directory via EXPAND-FILE-
> NAME.
>
> See the attached patch, Carsten please include this, thanks.
>
> diff --git a/lisp/org-publish.el b/lisp/org-publish.el
> index c6c7421..399fdd3 100644
> --- a/lisp/org-publish.el
> +++ b/lisp/org-publish.el
> @@ -233,7 +233,7 @@ If there is no timestamp, create one."
> (if (and (fboundp 'set-file-times)
> (not newly-created-timestamp))
> (set-file-times timestamp-file)
> - (call-process "touch" nil 0 nil timestamp-file))))
> + (call-process "touch" nil 0 nil (expand-file-name timestamp-
> file)))))
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;;; Mapping files to project names
>
>
> --
> Richard
> _______________________________________________
> 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:[~2009-05-30 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-29 13:59 fix in org-publish-update-timestamp Richard KLINDA
2009-05-30 5:00 ` 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).