From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#1741: 23.0.60; vc fail to register file while logged as /su:: with tramp Date: Sun, 12 Apr 2009 20:15:23 +0200 Message-ID: <87myalrb5w.fsf@gmx.de> References: <87vdt2ndkt.fsf@tux.homenetwork> <200904071657.n37GvIau023055@godzilla.ics.uci.edu> <87d4bnfkxn.fsf@tux.homenetwork> <200904081624.n38GO6D6013154@godzilla.ics.uci.edu> Reply-To: Michael Albinus , 1741@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239561917 7449 80.91.229.12 (12 Apr 2009 18:45:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2009 18:45:17 +0000 (UTC) Cc: 1741@emacsbugs.donarmstrong.com, Dan Nicolaescu To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 12 20:46:36 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lt4hP-0000OD-Kt for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 20:46:35 +0200 Original-Received: from localhost ([127.0.0.1]:40219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lt4g1-0008OQ-3g for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 14:45:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lt4fM-0008Av-IH for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2009 14:44:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lt4fH-000893-Uo for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2009 14:44:28 -0400 Original-Received: from [199.232.76.173] (port=42702 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lt4fH-00088y-Ov for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2009 14:44:23 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45520) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lt4fH-00082R-7J for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2009 14:44:23 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3CIhoI4006497; Sun, 12 Apr 2009 11:43:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3CIP47i001532; Sun, 12 Apr 2009 11:25:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Michael Albinus Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Sun, 12 Apr 2009 18:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1741 X-Emacs-PR-Package: emacs,vc X-Emacs-PR-Keywords: Original-Received: via spool by 1741-submit@emacsbugs.donarmstrong.com id=B1741.123956013632456 (code B ref 1741); Sun, 12 Apr 2009 18:25:04 +0000 Original-Received: (at 1741) by emacsbugs.donarmstrong.com; 12 Apr 2009 18:15:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n3CIFWKJ032439 for <1741@emacsbugs.donarmstrong.com>; Sun, 12 Apr 2009 11:15:33 -0700 Original-Received: (qmail invoked by alias); 12 Apr 2009 18:15:25 -0000 Original-Received: from brln-4db96cba.pool.einsundeins.de (EHLO magdalene.local) [77.185.108.186] by mail.gmx.net (mp041) with SMTP; 12 Apr 2009 20:15:25 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19HzocQgLRHzr4tWg8pdYlaGOJZdpv1bwy5u4IPi+ poErZb+rTzkozL In-Reply-To: (Stefan Monnier's message of "Thu, 09 Apr 2009 14:23:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.61 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 12 Apr 2009 14:44:28 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27110 Archived-At: Stefan Monnier writes: >>> I'd rather find a more generic fix. E.g. can't you flush the cache when >>> handling process-file? >> That would be too invasive, I believe. The whole cache would be flushed, >> even all data which are not related too. > > It should be safe to only flush data related to the relevant host. That I do already, of course. >> And there might be the case, that a file is registered in RCS (or >> whatever backend is used) outside Emacs. Tramp would still have stale >> cache data for "/su:root@localhost:/tmp/RCS/blah,v" then. > > This is unrelated to RCS, and is indeed a real problem. For that reason > I'd expect the cache to be flushed very often, yes. E.g. in > post-command-hook. When do you flush it currently? Currently, I try to avoid flushing data mostly. In fact, flushing happens file-wise or directory-wise only, when the file or directory changes. And also in `revert-buffer'. What I'm thinking about is using a time-stamp for cached data. Then one could introduce a user option `tramp-cache-ttl', which is set to the number of seconds a cache entry shall be kept. `nil' means no flush (as it is today); 0 means no caching at all. A value of 5 would have already benefit, because usually there are several calls of, for example, `file-attributes' during a short time, because of more complex operations. > Stefan Best regards, Michael.