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: Emanuel Berg
Subject: Re: when nothing happens, buffer still marked as modified
Date: Wed, 05 Dec 2018 08:23:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Eli Zaretskii wrote:

>> 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.

But how do I determine if the buffer has
changed or not? If it has, of course it should
be marked `**'!

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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