From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: tramp no longer recognizes when remote files changed Date: Fri, 27 Jul 2007 10:53:09 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185526402 11375 80.91.229.12 (27 Jul 2007 08:53:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2007 08:53:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sascha Wilde Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 27 10:53:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IELZT-00062P-Hf for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2007 10:53:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IELZT-0003gu-7T for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2007 04:53:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IELZP-0003go-Bu for emacs-devel@gnu.org; Fri, 27 Jul 2007 04:53:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IELZM-0003gc-UQ for emacs-devel@gnu.org; Fri, 27 Jul 2007 04:53:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IELZM-0003gZ-Lo for emacs-devel@gnu.org; Fri, 27 Jul 2007 04:53:08 -0400 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IELZM-00057Z-0A for emacs-devel@gnu.org; Fri, 27 Jul 2007 04:53:08 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id l6R8qsdT007925; Fri, 27 Jul 2007 10:52:54 +0200 In-Reply-To: (Sascha Wilde's message of "Fri, 27 Jul 2007 10:36:32 +0200") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.72 X-detected-kernel: Linux 2.4-2.6 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75638 Archived-At: Sascha Wilde writes: > Hi *, Hi, > when a buffer visits a file that gets changes outside of Emacs the > user is warned the next time he tries to alter the buffer in question: > > foo changed on disk; really edit the buffer? (y, n, r or C-h) > > This extremely useful feature used to work with tramp and remote > files, too. Now some time (days?) ago it stopped working, if I edit a > remote file that changed in the meantime on disk I get no warning, and > if I save the buffer all changes made outside of my Emacs session are > silently lost. That's the price ... Tramp 2.1, brought to Emacs trunk some weeks ago, caches file information in order to speed up. It uses cached information for example when `file-attributes' is called, and cannot recognize external file changes therefore. Maybe one could introduce an option whether such caches shall be used, or not. Tramp checks already `file-precious-flag' when it copies files (if set, Tramp applies "cksum" on both the source and target files in order to recognize errors). It could also stop using cached information in such a case - slowing down performance ... > Cheers > sascha Best regards, Michael.