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 08:55:10 +0200

> From: Emanuel Berg <moasenwood@zoho.eu>
> Date: Wed, 05 Dec 2018 03:48:59 +0100
> 
> Only one thing is missing what I can see, and
> that is, when nothing happens (i e the piece of
> text is already in the desired shape), the
> buffer is still marked as modified (the `**')!
> 
> What is the correct way to prevent that?

Use with-silent-modifications, or just manually mark the buffer
unmodified using set-buffer-modified-p, when the function is about to
return.



reply via email to

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