From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: Don't complain about changed file when it hasn't changed Date: Tue, 06 Sep 2016 17:03:48 -0500 Message-ID: <87bn00k7nf.fsf@red-bean.com> References: <87oa40k8oq.fsf@red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473199459 10271 195.159.176.226 (6 Sep 2016 22:04:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 22:04:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 07 00:04:15 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 1bhOTX-0002FA-Bp for ged-emacs-devel@m.gmane.org; Wed, 07 Sep 2016 00:04:15 +0200 Original-Received: from localhost ([::1]:36305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOTS-00025U-KL for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2016 18:04:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOTF-00022P-UW for emacs-devel@gnu.org; Tue, 06 Sep 2016 18:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhOT9-00070x-VF for emacs-devel@gnu.org; Tue, 06 Sep 2016 18:03:56 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:34846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOT9-00070r-Px for emacs-devel@gnu.org; Tue, 06 Sep 2016 18:03:51 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id s131so59918548oie.2 for ; Tue, 06 Sep 2016 15:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version; bh=6IP/rw3pM9CGZDBtw0sA4fmnYapks3dyxnQdbv4O0m4=; b=CXIf3GDDa5W1SZZaS1bn1oOwjIAsnG/TCQuWwjFYakRbmVmfJ7inF9nzPgMyDtAJg3 oEYggDEsimBAQpe77GMK8AwalPThJR1VQsFnE684Wi2lUhnxCTd6t/8utJyB3jSBRoL1 +nnXCswU+XVKUonY4SdbZjQKLOUUjFigOZYGPUsQMXrZcrvBV8FsLBVMoEkmmYUT0Puv dU1DopUnbA0kdIaJ2cevsOkacRcmQWudOLWD6rnxG4VtuAJwbkxiMY6Kt2lKr2gCHdIP a+V/HWW0m5zcQBl6OpKGdbjMnlTN/VM/LHZJXrdyQK3oSN8jxX9ixAd+ElQMmpKngRWA Y9yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:reply-to :date:in-reply-to:message-id:user-agent:mime-version; bh=6IP/rw3pM9CGZDBtw0sA4fmnYapks3dyxnQdbv4O0m4=; b=l8R1fhi1ipXQvHWauXES2ggaZyDRf234GKkIqxey9dGyPxch70gtR8H8FNK3aEpbF2 qsBus1V18UH4MznqDW+KO175Er82byT5Q0B/cdDrhFGz3xt2xPXP0U7nTp+zxYiw5kO9 tO4gmznPMtm8YfD7ESdv7WFRzqMQU1J/lIvU6iXq6xmpiUJu1KZywM+k67r+DweyYIlF dWHNYORn1oPF1JBGCLnb303gFd/FFHOZMAAX+bq06Q6A+EVXe1bImxVRnNzBAj+Jz2yG ctzXqvqedaLzqw4SCB+lbSbDKqzMLHbLn+48NB9hAUj/h8sn2SfDtqdD4Mj5F+uBX14P iSXA== X-Gm-Message-State: AE9vXwPwZxgG/UxXzF81UMK92/8GU9nct0j9JQCyUE/c+0tK1mckzFk6tRQQa5we/R6mlw== X-Received: by 10.36.134.194 with SMTP id u185mr1463823itd.23.1473199429709; Tue, 06 Sep 2016 15:03:49 -0700 (PDT) Original-Received: from kwork (74-92-190-114-Illinois.hfc.comcastbusiness.net. [74.92.190.114]) by smtp.gmail.com with ESMTPSA id f2sm622760ite.20.2016.09.06.15.03.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Sep 2016 15:03:48 -0700 (PDT) In-Reply-To: (Paul Eggert's message of "Tue, 6 Sep 2016 14:59:41 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::233 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:207228 Archived-At: I wrote: >Paul Eggert wrote: >>On 09/06/2016 02:41 PM, Karl Fogel wrote: >>> E.g., compressed, encrypted... what else? >> >>Using some coding system other than Emacs native coding, e.g., CRLF >>instead of LF. > >Oy. Right. > >This list of exceptions is getting long... and yet the early-out check is so tempting. Sigh. I think what I'm wishing for is a function `buffer-file-verbatim-correspondence-p' (better names welcome). Iff the function returns non-nil, then we can do the early-out check. Is there anything in Emacs already that encapsulates the knowledge such a function would need, or is this what the consultants like to call a "green field opportunity"?