From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Tramp file modification time for not yet existing files. Date: Sun, 18 Jul 2004 15:12:48 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200407182012.i6IKCmM23404@raven.dms.auburn.edu> References: <200407121917.i6CJHMU00559@raven.dms.auburn.edu> <868ydhkuoo.fsf@rumba.de.uu.net> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1090181803 26572 80.91.224.253 (18 Jul 2004 20:16:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2004 20:16:43 +0000 (UTC) Cc: kai@emptydomain.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 18 22:16:30 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 1BmI5G-0000DG-00 for ; Sun, 18 Jul 2004 22:16:30 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BmI5G-0005kG-00 for ; Sun, 18 Jul 2004 22:16:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmI7u-0001q8-78 for emacs-devel@quimby.gnus.org; Sun, 18 Jul 2004 16:19:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BmI7r-0001q3-HY for emacs-devel@gnu.org; Sun, 18 Jul 2004 16:19:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BmI7q-0001pr-2j for emacs-devel@gnu.org; Sun, 18 Jul 2004 16:19:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmI7p-0001po-WB for emacs-devel@gnu.org; Sun, 18 Jul 2004 16:19:10 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BmI4h-0007VM-Il for emacs-devel@gnu.org; Sun, 18 Jul 2004 16:15:55 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i6IKFiuE010060; Sun, 18 Jul 2004 15:15:44 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i6IKCmM23404; Sun, 18 Jul 2004 15:12:48 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: kai@emptydomain.de In-reply-to: <868ydhkuoo.fsf@rumba.de.uu.net> (message from Kai Grossjohann on Sun, 18 Jul 2004 20:59:51 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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:25824 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25824 Kai Grossjohann wrote: Luc Teirlinck writes: > If one creates a buffer visiting a not yet existing file on a remote > machine using Tramp, then `visited-file-modtime' originally (before > the file is saved) returns 0. The return value for local files in > the same situation is (-1 65535), that is, -1. I'm afraid that I'm just before a deadline at work at the moment, so if you already know what needs to happen, it would be wonderful if you could just do it. Since the stable Tramp branch and Emacs are now in sync, it will be easy to merge changes. I will take a look at it. What confuses me most is your wording of "setting the modtime". (tramp-handle-set-visited-file-modtime '(-1 65535)) I think Tramp now uses (0 0) for those cases. Does Ange-FTP need a similar change? Tramp uses (0 0) as a dont-know value because Ange-FTP does it, and I didn't understand the issues at that time. The problem is that it makes `visited-file-modtime' return 0 and then `verify-visited-file-modtime' will *never* warn, even though there are situations where it should. I will take a look at Ange-FTP. Sincerely, Luc.