From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.devel Subject: Re: Don't complain about changed file when it hasn't changed Date: Tue, 30 Aug 2016 03:23:02 +0200 Organization: Me Message-ID: <87zinvyrrd.fsf@linux-qg7d.fritz.box> References: <83oa4bbq5b.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472547168 19158 195.159.176.226 (30 Aug 2016 08:52:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2016 08:52:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 10:52:44 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beemh-0004ZC-H1 for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 10:52:43 +0200 Original-Received: from localhost ([::1]:47836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beemi-0003Ks-BL for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 04:52:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beelR-0003Dn-Th for emacs-devel@gnu.org; Tue, 30 Aug 2016 04:51:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beelM-0000p4-KP for emacs-devel@gnu.org; Tue, 30 Aug 2016 04:51:24 -0400 Original-Received: from [195.159.176.226] (port=34714 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beelM-0000oB-Dv for emacs-devel@gnu.org; Tue, 30 Aug 2016 04:51:20 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1beXlc-0004ac-5Y for emacs-devel@gnu.org; Tue, 30 Aug 2016 03:23:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:ToYnWstTJ1Expvqe0qBtiqlpr5k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206918 Archived-At: Eli Zaretskii writes: >> From: Stefan Monnier >> Date: Sun, 28 Aug 2016 20:29:42 -0400 >> >> The patch below is supposed to change Emacs such that if the file's >> timestamp has changed, but the contents is still the same, it doesn't >> prompt the user about a supersession-threat. > > Thanks. Can you describe the use case(s) where this is important? Version control. I'm using fossil. It happens (often enough) that I switch branch and a file. opened in my long running emacs session get modified on disk. I work on other files of that branch and switch back. Now I modifiy the buffer connected to that back and forth and get alerted: Buffer modfied on disk. While this is easily worked out (revert-buffer), it is an interuption, an irritation. The alert is only necessary, if buffer content and file content differ. Often (very often) buffer content and file content differ, if their last modification differ. But sometimes (and not only in theory, but in real workflows) the last modification differ, but buffer content and file content do not.