From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.devel Subject: Re: Don't complain about changed file when it hasn't changed Date: Wed, 7 Sep 2016 20:41:38 +0200 Message-ID: <111089ba-899d-e788-234e-c8d485af02d0@online.de> References: <87oa40k8oq.fsf@red-bean.com> <87fupck7s2.fsf@red-bean.com> <73a01198-e334-2424-7143-8882092ffb78@lanl.gov> <874m5sk6tr.fsf@red-bean.com> <8737lbslj5.fsf@red-bean.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1473273387 14556 195.159.176.226 (7 Sep 2016 18:36:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2016 18:36:27 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 07 20:36:23 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 1bhhhq-0002ne-I1 for ged-emacs-devel@m.gmane.org; Wed, 07 Sep 2016 20:36:18 +0200 Original-Received: from localhost ([::1]:42445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhhho-0004JC-E6 for ged-emacs-devel@m.gmane.org; Wed, 07 Sep 2016 14:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhhgg-0003gE-0u for emacs-devel@gnu.org; Wed, 07 Sep 2016 14:35:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhhgb-0001OU-Vx for emacs-devel@gnu.org; Wed, 07 Sep 2016 14:35:06 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.73]:53024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhhgb-0001O6-M1 for emacs-devel@gnu.org; Wed, 07 Sep 2016 14:35:01 -0400 Original-Received: from [192.168.178.35] ([77.12.40.175]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0MgOVK-1bNGaI1QOc-00Ng4h for ; Wed, 07 Sep 2016 20:35:00 +0200 In-Reply-To: <8737lbslj5.fsf@red-bean.com> X-Provags-ID: V03:K0:yT/QlAcaGkkhbFubIymtouJQAdemOR7aMYWXvtWu1JPgY5kXDXl K4V7EMasnPDePq80UTUUkrVhQ5BdrgCI+LEsCL+momoL9JSuiXzWlGB9ul7rYPdmKvAiZPo 4Px5OhlWrdCV2KJnKyRWyCu2i5wIlCq/7N9NtMHOsVncNdToqrrrLcvgmtpF5iVGht3bqCe Ik8BjFgAcGjOTd4/zcdBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:qyyUlFpvjn4=:13vunB7Ifh9WOpaEwOzwWq dXoKtjAFizYMms7RniLkR9IXDeENK91+l161y06LMQETt0cbzCHVX0pXN1KmRtq2ijmASWzfH 0/EXdt/WDEGxrnJmc6eL1BqZD8OTbDeXQKygczUFMtMaaOTzJDvzZe0moDd7i3n1Osp0rwNwE wUDK1UyLj0IpwRI2HYtFSYT4BKFfMNcCTmD5fH7tdLHjp2/XvwbBsIBLkW08j9Euk2jJ/4pU6 FpL+nsB7gqmZHPaguAgeP7W6TGq+MLn7si7mjwOKoHvjCTFX4YfRvL/3qCElnn+dxhFEqV5rw js/sJsh2FdtehZ7Yk6T99ydGkTH4p+QeNghfinCYdaAOgQiXDg+g/IhjSHVufjSIbY+Pbz3pj J5QU9Rhr6BrKT7fAxQHOipnG9bGbWYT3jalVnCr38sTjkS+tzmMNHeDn21gsTcW+HsM/nbw7u Q5AGks3fNcgavBnR/AyE9ylXfLthVrVxGGRSiRDFyyXqZmXonO2TwvsR8nfOmOmCI06k735d2 G1afpVa6CeGSXlfJfmYCvDJZJjGxqnmoLiF5PWFUbB+SaZMf/cXkHLcUuHsUln7XDv7IV6Z45 vh+iI+Ttivb351/K659ZlHnQgYzX/Jn9IIXRNCvImQLyVsdaPqL+iD8HFpJ1if85KHq8+jmC5 oLBTrSoVaGcNBkbRIP3OTdR0xNrmZjENC4kl+D6sfpcTFxwSYfUkHuwUf98Z52yO6t9TLEBl8 nHgiO2OCvO9EkpNs X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.73 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:207270 Archived-At: On 07.09.2016 18:49, Karl Fogel wrote: > Stefan Monnier writes: >>> Oh -- remember the "true" size (that is, the >>> unencrypted/uncompressed/unwhatevered) size of the file at the moment when >>> it is first visited? >> Yes, that's what my FIXME comment was referring to. >> >> Comparing the buffer's size and the file's size would miss too many case >> and would be too brittle for my taste (there are many different ways to >> modify the data on the way between the file and the buffer). > *nod* Makes sense. The risks here outweigh the potential win, I think. > >>> As long as we're doing that, why not just remember the md5sum of the >>> original content too? >> Cause it'd slow down a common case, compared to this >> ask-user-about-supersession-threat which is used very rarely? > Oh, the extra expense of computing the md5sum at initial find-file time? Hmmm... Fair enough, yeah. I haven't profiled it, and don't think this is important enough to be worth making those measurements. Let's leave things as they are. > It might be helpful to consider, list and sort circumstances where avoiding the prompt is at stake. As running "touch" to trigger a re-compile was mentioned - why not have a command which disables the prompting just for this.