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: Thu, 22 Jul 2004 22:35:37 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <87k6wvixuu.fsf@gmx.de> References: <200407121934.i6CJYmL00607@raven.dms.auburn.edu> <871xj9xgmo.fsf@gmx.de> <200407181951.i6IJp5a23381@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 1090528646 7109 80.91.224.253 (22 Jul 2004 20:37:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2004 20:37:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 22 22:37:09 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 1BnkJQ-0008KN-00 for ; Thu, 22 Jul 2004 22:37:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BnkMG-0006Om-D9 for ged-emacs-devel@m.gmane.org; Thu, 22 Jul 2004 16:40:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BnkLz-0006Gp-Dw for emacs-devel@gnu.org; Thu, 22 Jul 2004 16:39:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BnkLw-0006FB-Uf for emacs-devel@gnu.org; Thu, 22 Jul 2004 16:39:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BnkLw-0006EY-Qz for emacs-devel@gnu.org; Thu, 22 Jul 2004 16:39:44 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1BnkHz-0003LR-Uf for emacs-devel@gnu.org; Thu, 22 Jul 2004 16:35:40 -0400 Original-Received: (qmail 8693 invoked by uid 65534); 22 Jul 2004 20:35:38 -0000 Original-Received: from pD9E7088F.dip0.t-ipconnect.de (EHLO magdalene.local) (217.231.8.143) by mail.gmx.net (mp027) with SMTP; 22 Jul 2004 22:35:38 +0200 X-Authenticated: #3708877 Original-To: Luc Teirlinck 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:25886 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25886 Luc Teirlinck writes: > Sorry, what I meant was not that the modtime in `file-attributes' > would get set to 0, what I meant was that (visited-file-modtime) > returns 0 after a precious file is saved using Tramp. I just double > checked with emacs -q with a file made precious using: > > -*- file-precious-flag: t; -*- OK, now I got. Fixed in Tramp CVS, sync with Emacs CVS will follow next stable Tramp. In fact, the problem was due to documentation vagueness of `write-region'. It is said, that modtime of visited file must be updated in case `visit' is equal t. Nothing is said if `visit' is a string. But the code of `write-region' shows it must be updated always when `visit' is not nil. Is it worth a documentation clarification? > Sincerely, > > Luc. Best regards, Michael.