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

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

Re: when nothing happens, buffer still marked as modified


From: Eli Zaretskii
Subject: Re: when nothing happens, buffer still marked as modified
Date: Wed, 05 Dec 2018 10:22:36 +0200

> From: Emanuel Berg <moasenwood@zoho.eu>
> Date: Wed, 05 Dec 2018 08:23:24 +0100
> 
> > Use with-silent-modifications, or just manually
> > mark the buffer unmodified using
> > set-buffer-modified-p, when the function is
> > about to return.
> 
> But how do I determine if the buffer has
> changed or not? If it has, of course it should
> be marked `**'!

That's the same problem that M-q has, and it leaves the modified
status intact.  Why not do as it does?

You could, of course, save a copy of the buffer before the changes,
and then compare, but why bother?



reply via email to

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