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, 18 Jul 2004 21:25:03 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <871xj9xgmo.fsf@gmx.de> References: <200407121934.i6CJYmL00607@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 1090178721 20415 80.91.224.253 (18 Jul 2004 19:25:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2004 19:25:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 18 21:25:15 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 1BmHHf-0006A7-00 for ; Sun, 18 Jul 2004 21:25:15 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BmHHf-0004qi-00 for ; Sun, 18 Jul 2004 21:25:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmHKI-0000XP-V4 for emacs-devel@quimby.gnus.org; Sun, 18 Jul 2004 15:27:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BmHK9-0000Ww-Lr for emacs-devel@gnu.org; Sun, 18 Jul 2004 15:27:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BmHK8-0000WM-64 for emacs-devel@gnu.org; Sun, 18 Jul 2004 15:27:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmHK8-0000WJ-4M for emacs-devel@gnu.org; Sun, 18 Jul 2004 15:27:48 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1BmHHK-0002LS-V6 for emacs-devel@gnu.org; Sun, 18 Jul 2004 15:24:55 -0400 Original-Received: (qmail 13548 invoked by uid 65534); 18 Jul 2004 19:24:53 -0000 Original-Received: from pD9E70B02.dip0.t-ipconnect.de (EHLO magdalene.local) (217.231.11.2) by mail.gmx.net (mp002) with SMTP; 18 Jul 2004 21:24:53 +0200 X-Authenticated: #3708877 Original-To: Luc Teirlinck In-Reply-To: <200407121934.i6CJYmL00607@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 12 Jul 2004 14:34:48 -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+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25821 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25821 Luc Teirlinck writes: > If `file-precious-flag' is t, then if one saves a remote file using > Tramp, the visited file modtime gets set to 0. As a result, there > will be no warning when trying to save the buffer if the file changed > on disk. This problem does not exist for local files. Somehow, I'm not able to reproduce the behaviour. Scenario: C-x C-f ~/123 M-: file-precious-flag -> t M-: (file-attributes (buffer-name (current-buffer))) -> (nil 1 1000 1000 (16634 52569) (16634 52242) (16634 52242) 125 "-rw-r--r--" nil 476194 770) editing ... saving M-: (file-attributes (buffer-name (current-buffer))) -> (nil 1 1000 1000 (16634 52660) (16634 52660) (16634 52660) 137 "-rw-r--r--" nil 476526 770) C-x C-f /ssh:localhost:~/123 M-: file-precious-flag -> t M-: (file-attributes (buffer-name (current-buffer))) -> (nil 1 1000 1000 (16634 52704) (16634 52660) (16634 52660) 137 "-rw-r--r--" t (7 . 17774) (-1 2)) editing ... saving M-: (file-attributes (buffer-name (current-buffer))) -> (nil 1 1000 1000 (16634 52728) (16634 52728) (16634 52729) 118 "-rw-r--r--" t (7 . 17443) (-1 2)) > Sincerely, > > Luc. Best regards, Michael.