unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Set modtime of a local file?
@ 2004-03-13 19:39 Kai Grossjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Grossjohann @ 2004-03-13 19:39 UTC (permalink / raw)


I'm trying to implement the KEEP-DATE flag for the copy-file operation
in Tramp.  Depending on circumstances, Tramp reads the source file
into a buffer, then uses write-region to write the target file.

If the source file is local and the target file is remote, then it
works to find out the last modtime of the source file and then invoke
"touch" on the target file.  Tramp assumes that the remote system is
Unix-like.

But if the source file is remote and the target file is local, then
I'm stuck.  After using write-region to write the buffer contents,
what can I do to make the file on disk match the (remote) source file?

tia,
Kai

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-14 10:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040313234744.31A8860107@imf.math.ku.dk>
2004-03-14  7:58 ` Set modtime of a local file? Lars Hansen
2004-03-14 10:25   ` Kai Grossjohann
2004-03-13 19:39 Kai Grossjohann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).