From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Tramp and file-precious-flag. Date: Sun, 25 Jul 2004 13:06:20 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <87smbgfis3.fsf@gmx.de> References: <200407121934.i6CJYmL00607@raven.dms.auburn.edu> <871xj9xgmo.fsf@gmx.de> <200407181951.i6IJp5a23381@raven.dms.auburn.edu> <87k6wvixuu.fsf@gmx.de> <200407230112.i6N1C0C13413@raven.dms.auburn.edu> <200407240154.i6O1skC26271@raven.dms.auburn.edu> <871xj1jl4b.fsf@gmx.de> <200407250224.i6P2OW728568@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090753607 17653 80.91.224.253 (25 Jul 2004 11:06:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Jul 2004 11:06:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 25 13:06:41 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bogq1-0006jh-00 for ; Sun, 25 Jul 2004 13:06:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bogt0-0003tc-7M for ged-emacs-devel@m.gmane.org; Sun, 25 Jul 2004 07:09:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bogst-0003tW-WA for emacs-devel@gnu.org; Sun, 25 Jul 2004 07:09:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bogss-0003tK-GU for emacs-devel@gnu.org; Sun, 25 Jul 2004 07:09:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bogss-0003tH-DS for emacs-devel@gnu.org; Sun, 25 Jul 2004 07:09:38 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1Bogpi-00064I-EL for emacs-devel@gnu.org; Sun, 25 Jul 2004 07:06:22 -0400 Original-Received: (qmail 30572 invoked by uid 65534); 25 Jul 2004 11:06:21 -0000 Original-Received: from pD9E70676.dip0.t-ipconnect.de (EHLO magdalene.local) (217.231.6.118) by mail.gmx.net (mp015) with SMTP; 25 Jul 2004 13:06:21 +0200 X-Authenticated: #3708877 Original-To: Luc Teirlinck In-Reply-To: <200407250224.i6P2OW728568@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sat, 24 Jul 2004 21:24:32 -0500 (CDT)") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) 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+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25942 Luc Teirlinck writes: > When I create a new file with `file-precious-flag' eq t, using Tramp > (ssh), then initially `visited-file-modtime' now returns (-1 65535). > That is good. However, when I then make changes and save them, the > return value after that is _still_ (-1 65535). As a result, when I > try to make changes, I get warned that the file has changed on disk. > Only when I save the file for the _second_ time does it get a "real" > modtime, after which everything works normally. The problem was that Tramp tried to examine the modtime of the file the buffer is visiting. But this file is different from the file to be saved in case `file-precious-flag' equals t, so Tramp is failing (still believing the file does not exists yet). I've changed it such a way that `set-visited-file-modtime' passes the modtime of the file just saved as parameter. Committed to Tramp CVS, branch "branch-2-0-stable". > Sincerely, > > Luc. Thanx a lot for your testing, and best regards, Michael.