[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Set last-modified time of a (local) file?

From: Kai Grossjohann
Subject: Set last-modified time of a (local) file?
Date: Sun, 18 Jan 2004 22:28:56 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux)

Is there a way in Emacs to set the last-modified time of a (local)

I need this for Tramp, more specifically for its handling of
copy-file.  If using an inline method, then Tramp works by reading the
contents of the remote file into a buffer, and then using write-region
to write NEWNAME.  But if the KEEP-DATE arg of copy-file is set to t,
then that file written with write-region needs to get another
last-modification timestamp.

(For the case where NEWNAME is remote, I've already written a function
which invokes {/bin,/usr/bin}/touch.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]