From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11757: Acknowledgement (24.1.50; vc-git calls `process-file' too many times) Date: Sat, 30 Jun 2012 19:01:07 -0400 Message-ID: References: <4FE2832A.1030308@yandex.ru> <4FE994E8.9020605@yandex.ru> <87zk7qs21q.fsf@gmx.de> <4FEBAAAA.3030102@yandex.ru> <87d34igrie.fsf@gmx.de> <4FEDD2A0.3010300@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341097302 1581 80.91.229.3 (30 Jun 2012 23:01:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 23:01:42 +0000 (UTC) Cc: 11757@debbugs.gnu.org, Michael Albinus To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 01 01:01:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sl6fd-0003oi-Jz for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jul 2012 01:01:41 +0200 Original-Received: from localhost ([::1]:42770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl6fd-0005Vj-H5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 19:01:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl6fa-0005VU-IQ for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2012 19:01:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sl6fY-0005UN-TI for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2012 19:01:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl6fY-0005UA-PS for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2012 19:01:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sl6jp-0005UY-OG for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2012 19:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jun 2012 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11757 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11757-submit@debbugs.gnu.org id=B11757.134109754721090 (code B ref 11757); Sat, 30 Jun 2012 23:06:01 +0000 Original-Received: (at 11757) by debbugs.gnu.org; 30 Jun 2012 23:05:47 +0000 Original-Received: from localhost ([127.0.0.1]:39598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sl6jS-0005Ty-9m for submit@debbugs.gnu.org; Sat, 30 Jun 2012 19:05:43 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18566) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sl6jP-0005Tq-Q1 for 11757@debbugs.gnu.org; Sat, 30 Jun 2012 19:05:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxKFY/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLDiYSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="192424574" Original-Received: from 69-196-161-88.dsl.teksavvy.com (HELO pastel.home) ([69.196.161.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Jun 2012 19:01:08 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B698F593E0; Sat, 30 Jun 2012 19:01:07 -0400 (EDT) In-Reply-To: <4FEDD2A0.3010300@yandex.ru> (Dmitry Gutov's message of "Fri, 29 Jun 2012 20:06:56 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61450 Archived-At: > This won't happen in following cases: > 1) We switch to revision when the opened file is the same. > 2) It doesn't exist there. > 3) We just delete it from disk from outside of Emacs. > So the file isn't changed, and you see no warning or update, even after you > write it to disk from Emacs again. While that is suboptimal, VC's state is often suboptimal like that. The only cases where VC's state is (or at least really should) up-to-date is: - when it was changed by an explicit VC action. - when we need to know the state in order to make an important decision. Updating the state in other circumstances is good, but not necessary. Improving VC so that the first case is more frequent would actually be preferable. Stefan