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 18:15:18 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309711388 7572 80.91.229.12 (3 Jul 2011 16:43:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2011 16:43:08 +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 18:43:04 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 1QdPl9-0003IC-L5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 18:43:03 +0200 Original-Received: from localhost ([::1]:35646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdPl8-000431-M6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 12:43:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdPjG-0003iL-4p for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 12:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdPjD-0007bN-Jg for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 12:41:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdPjD-0007bI-6a for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 12:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdPjC-00060a-B1; Sun, 03 Jul 2011 12:41: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 16:41: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.130971121222975 (code B ref 8891); Sun, 03 Jul 2011 16:41:02 +0000 Original-Received: (at 8891) by debbugs.gnu.org; 3 Jul 2011 16:40:12 +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 1QdPiN-0005yQ-8k for submit@debbugs.gnu.org; Sun, 03 Jul 2011 12:40:12 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdPYh-0004ih-8q for 8891@debbugs.gnu.org; Sun, 03 Jul 2011 12:30:12 -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 1QdPYT-0002tl-Oa; Sun, 03 Jul 2011 18:29:57 +0200 In-Reply-To: (Dave Abrahams's message of "Sat, 18 Jun 2011 12:50:13 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Oval's _Oh_: "Grrr" X-Hashcash: 1:23:110703:dave@boostpro.com::84436gVAoNRKPsSO:00000000000000000000000000000000000000000000gVoe X-Hashcash: 1:23:110703:8891@debbugs.gnu.org::FlqnXdE/TQjOK7O+:00000000000000000000000000000000000000000mISl X-MailScanner-ID: 1QdPYT-0002tl-Oa MailScanner-NULL-Check: 1310315397.84152@Zcu7G//UGd6+YvReeGN/Ow X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 03 Jul 2011 12:41: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:47846 Archived-At: Dave Abrahams writes: > I have hooked write-file-functions for certain files to check the md5 > sum of the file against what it was when last saved and simply mark the > file unmodified > (https://github.com/dabrahams/initsplit/blob/master/initsplit.el#L300) > > However, I get a message about saving these files even when there's been > no modification. I think these lines in save-buffer come too early: > > (if (and modp (buffer-file-name)) > (message "Saving file %s..." (buffer-file-name))) Hm. If `modp' is true, then the buffer has been modified, hasn't it? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/