emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Richard KLINDA <rklinda@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: fix in org-publish-update-timestamp
Date: Sat, 30 May 2009 07:00:02 +0200	[thread overview]
Message-ID: <D3B9A90A-035C-436E-B6E9-F869F46A0E13@gmail.com> (raw)
In-Reply-To: <87d49shux1.fsf@gmail.com>

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

      reply	other threads:[~2009-05-30  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 13:59 fix in org-publish-update-timestamp Richard KLINDA
2009-05-30  5:00 ` Carsten Dominik [this message]

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=D3B9A90A-035C-436E-B6E9-F869F46A0E13@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rklinda@gmail.com \
    /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).