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: process-file and Tramp's file cache (was: bug#1741: 23.0.60; vc fail to register file while logged as /su:: with tramp) Date: Tue, 18 Aug 2009 12:16:22 +0200 Message-ID: References: <87vdt2ndkt.fsf@tux.homenetwork> <200904071657.n37GvIau023055@godzilla.ics.uci.edu> <87d4bnfkxn.fsf@tux.homenetwork> <200904081624.n38GO6D6013154@godzilla.ics.uci.edu> <87myalrb5w.fsf@gmx.de> <87r5zxprx9.fsf@gmx.de> <87prfgzys9.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250605385 29555 80.91.229.12 (18 Aug 2009 14:23:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 14:23:05 +0000 (UTC) Cc: Julian Scheid , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 18 16:22:58 2009 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 1MdPaT-0004H6-GE for ged-emacs-devel@m.gmane.org; Tue, 18 Aug 2009 16:22:57 +0200 Original-Received: from localhost ([127.0.0.1]:46164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdPaS-00087y-O5 for ged-emacs-devel@m.gmane.org; Tue, 18 Aug 2009 10:22:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdLk5-0007z3-Ne for emacs-devel@gnu.org; Tue, 18 Aug 2009 06:16:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdLjz-0007xe-Tg for emacs-devel@gnu.org; Tue, 18 Aug 2009 06:16:36 -0400 Original-Received: from [199.232.76.173] (port=58749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdLjz-0007xJ-O8 for emacs-devel@gnu.org; Tue, 18 Aug 2009 06:16:31 -0400 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]:37942) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MdLjz-0003SY-9D for emacs-devel@gnu.org; Tue, 18 Aug 2009 06:16:31 -0400 Original-Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n7IAGOVN009871; Tue, 18 Aug 2009 12:16:24 +0200 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id n7IAGNY4022966; Tue, 18 Aug 2009 12:16:24 +0200 (MEST) In-Reply-To: (Stefan Monnier's message of "Tue, 14 Apr 2009 13:06:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Alcanet-virus-scanned: n7IAGNY4022966 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) X-Mailman-Approved-At: Tue, 18 Aug 2009 10:22:50 -0400 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:114364 Archived-At: Stefan Monnier writes: > BTW, to improve the behavior in case of things like "git status", it > might be worthwhile to add some way to indicate that a particular use of > process-file is (supposed to be) free of side-effects. I would like to introduce a new variable `process-file-modification-list'. It's default value shall be `t', which means that any file on the remote host could have been modified by the corresponding `process-file' call. `nil' means that no file is modified during `process-file'. A list of strings (remote file names) are indication, that exactly those files are modified, when `process-file' runs. This would allow Tramp to optimize its file cache. Currently, it assumes after every `process-file' call, that all cached values are invalid. This results in unnecessary check operations on the remote side. A typical use case in `vc-registered' would look like this: (let (handler process-file-modification-list) (cond ... Opinions? > Stefan Best regards, Michael.