emacs-devel
[Top][All Lists]
Advanced

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

Re: How can I undo a change from a modification-hook?


From: Clément Pit-Claudel
Subject: Re: How can I undo a change from a modification-hook?
Date: Wed, 26 Apr 2017 10:23:23 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 2017-04-26 09:52, Stefan Monnier wrote:
>>> [ and while you're there, check that the beg/end/len is within the
>>> announces beg/end stashed earlier, and if it's not just don't do
>>> anything since it means the stash buffer-undo-list is likely
>>> unrelated.  ]
>> This part worries me.  Could you clarify when this would happen?
> 
> In rare corner cases (most of them bugs).
> 
>> Not doing anything is risky, because it puts the buffer in an inconsistent
>> state wrt the subprocess :/
> 
> In the case of PG, I'd suggest you treat such a case as
> a non-whitespace change.

But I can't, can I? The damage (the change) is already done at that point, and 
I can't revert it. Am I missing something?

Clément.




reply via email to

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