[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get/Set file attributes
From: |
Nordlöw |
Subject: |
Re: Get/Set file attributes |
Date: |
Mon, 16 Jun 2008 14:47:35 -0700 (PDT) |
User-agent: |
G2/1.0 |
On 16 Juni, 23:22, Jason Rumney <jasonrum...@gmail.com> wrote:
> On Jun 16, 3:57 pm, Nordlöw <per.nord...@gmail.com> wrote:
>
> > How can I implement the touch-file() in emacs lisp?
>
> (set-file-times "FILENAME")
Superb! Now I got it:
(defun touch-file (filename)
"Touch FILENAME, that is set its modification time (modtime) to
current time."
(interactive "fFile to touch: ")
(set-file-times filename (current-time))
)
Thanks,
Nordlöw