From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#8891: 23.3; save-buffer messages about writing files that may not be written Date: Sun, 03 Jul 2011 22:31:45 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309725211 15746 80.91.229.12 (3 Jul 2011 20:33:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2011 20:33:31 +0000 (UTC) Cc: 8891@debbugs.gnu.org To: Dave Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 03 22:33:27 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdTM6-0002yO-Pp for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 22:33:26 +0200 Original-Received: from localhost ([::1]:45769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdTM5-0006kb-LL for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 16:33:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdTLl-0006jv-2w for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 16:33:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdTLj-0000Nn-A0 for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 16:33:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdTLj-0000Nh-0f for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 16:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdTLi-0000BW-1S; Sun, 03 Jul 2011 16:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2011 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8891-submit@debbugs.gnu.org id=B8891.1309725123643 (code B ref 8891); Sun, 03 Jul 2011 20:33:02 +0000 Original-Received: (at 8891) by debbugs.gnu.org; 3 Jul 2011 20:32:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdTKk-0000AK-Ax for submit@debbugs.gnu.org; Sun, 03 Jul 2011 16:32:02 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdTKi-00009q-1q for 8891@debbugs.gnu.org; Sun, 03 Jul 2011 16:32:01 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QdTKW-0006Nm-5Q; Sun, 03 Jul 2011 22:31:48 +0200 In-Reply-To: (Dave Abrahams's message of "Sun, 03 Jul 2011 16:26:28 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: DJ Rupture's _Special Gunpowder_: "No Heathen ft. Wicked Act (blacksmith mix)" X-Hashcash: 1:23:110703:8891@debbugs.gnu.org::izRCOXylF5ulXbK6:00000000000000000000000000000000000000000TX32 X-Hashcash: 1:23:110703:dave@boostpro.com::ky2wZMnWHEhFCypp:00000000000000000000000000000000000000000000lQLU X-MailScanner-ID: 1QdTKW-0006Nm-5Q MailScanner-NULL-Check: 1310329908.44543@1EZZwcklONSmyVyCE7PrxA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 03 Jul 2011 16:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47863 Archived-At: Dave Abrahams writes: > Yes... until `save-buffer' calls `basic-save-buffer' which invokes > `write-file-functions', one of which decides to override the notion of > "modified-ness" when it ascertains that the contents have not actually > changed. So modp tells the truth at the time it's checked, but IMO it's > checked too early. Right. So perhaps `basic-save-buffer-2' is the right place to output the message? I've grepped through the .el files, and there doesn't seem to be any other callers other than the straight line down from `save-buffer'. Opinions, anybody? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/