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: Thu, 09 Apr 2009 17:06:00 +0200 Message-ID: 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 1239291212 30878 80.91.229.12 (9 Apr 2009 15:33:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2009 15:33:32 +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 Thu Apr 09 17:34:48 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 1LrwH3-0005I1-DO for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2009 17:34:42 +0200 Original-Received: from localhost ([127.0.0.1]:60816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrwFe-0005N9-Us for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2009 11:33:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrw6f-0007Eq-0F for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2009 11:23:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrw6a-0007CA-4k for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2009 11:23:56 -0400 Original-Received: from [199.232.76.173] (port=59239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrw6Z-0007C0-Ty for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2009 11:23:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35841) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lrw6Z-0007j8-En for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2009 11:23:51 -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 n39FNnqO014253; Thu, 9 Apr 2009 08:23:49 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n39FF3WQ011194; Thu, 9 Apr 2009 08:15:03 -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: Thu, 09 Apr 2009 15:15:03 +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.12392895749353 (code B ref 1741); Thu, 09 Apr 2009 15:15:03 +0000 Original-Received: (at 1741) by emacsbugs.donarmstrong.com; 9 Apr 2009 15:06:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mailrelay1.alcatel.de (mailrelay1.alcatel.de [194.113.59.95]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n39F6AFD009336 for <1741@emacsbugs.donarmstrong.com>; Thu, 9 Apr 2009 08:06:11 -0700 Original-Received: from slbhn1.alcatel.de ([149.204.90.35]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n39F61Qv031409; Thu, 9 Apr 2009 17:06:01 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 09 Apr 2009 10:38:13 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 09 Apr 2009 11:23:56 -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:27027 Archived-At: Stefan Monnier writes: >>>> If I create a new file: "/su:root@localhost:/tmp/blah" >>>> then to C-x v v to register it, it fails. But I can see that the >>>> /tmp/RCS/blah,v is created. If after that I do: >>> >>>> M-: (file-exists-p "/su:root@localhost:/tmp/RCS/blah,v") RET >>>> the result is nil. >>> >>>> If I start a new emacs and do: >>>> M-: (file-exists-p "/su:root@localhost:/tmp/RCS/blah,v") RET >>>> the result is t. >>> >>> Hmm... looks like a stale cache. >>> Michael? > >> Yes, a stale cache. I've committed a patch, which adds a file name >> handler for `vc-registered'. There the cache is disabled temporarily. >> Works for me. Could you guys, please, check? > > 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. 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. > Stefan Best regards, Michael.