[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
- when nothing happens, buffer still marked as modified, Emanuel Berg, 2018/12/04
- Re: when nothing happens, buffer still marked as modified, Eli Zaretskii, 2018/12/05
- Message not available
- Re: when nothing happens, buffer still marked as modified,
Emanuel Berg <=
- Re: when nothing happens, buffer still marked as modified, Eli Zaretskii, 2018/12/05
- Message not available
- Re: when nothing happens, buffer still marked as modified, Emanuel Berg, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Eli Zaretskii, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Amin Bandali, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Eli Zaretskii, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Joost Kremers, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Eli Zaretskii, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Michael Heerdegen, 2018/12/05
- Message not available
- Re: when nothing happens, buffer still marked as modified, Emanuel Berg, 2018/12/05
- Re: when nothing happens, buffer still marked as modified, Michael Heerdegen, 2018/12/05