bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8891: 23.3; save-buffer messages about writing files that may not be


From: Lars Magne Ingebrigtsen
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
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Dave Abrahams <dave@boostpro.com> 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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]