From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Set modtime of a local file? Date: Sat, 13 Mar 2004 20:39:08 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <871xnwo7tv.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079219920 10293 80.91.224.253 (13 Mar 2004 23:18:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2004 23:18:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 14 00:18:34 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2IOn-0008LW-00 for ; Sun, 14 Mar 2004 00:18:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2IOn-0001bf-00 for ; Sun, 14 Mar 2004 00:18:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B2HuS-0008RM-AP for emacs-devel@quimby.gnus.org; Sat, 13 Mar 2004 17:47:12 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B2Hek-0004YT-Ix for emacs-devel@gnu.org; Sat, 13 Mar 2004 17:30:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B2Gng-0008Ox-NW for emacs-devel@gnu.org; Sat, 13 Mar 2004 16:36:39 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B2EyR-0005yy-1d for emacs-devel@gnu.org; Sat, 13 Mar 2004 14:39:07 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B2EyM-0000ga-00 for ; Sat, 13 Mar 2004 20:39:02 +0100 Original-Received: from 213-203-244-156.kunde.vdserver.de ([213.203.244.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2004 20:39:02 +0100 Original-Received: from kai by 213-203-244-156.kunde.vdserver.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2004 20:39:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:h4EaYMGF0JQpml6EIXkSLyXgu0A= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20411 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