[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I undo a change from a modification-hook?
From: |
Stefan Monnier |
Subject: |
Re: How can I undo a change from a modification-hook? |
Date: |
Wed, 26 Apr 2017 09:52:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> [ 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.
Stefan
- How can I undo a change from a modification-hook?, Clément Pit--Claudel, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Stefan Monnier, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Clément Pit-Claudel, 2017/04/26
- Re: How can I undo a change from a modification-hook?,
Stefan Monnier <=
- Re: How can I undo a change from a modification-hook?, Clément Pit-Claudel, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Stefan Monnier, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Clément Pit-Claudel, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Stefan Monnier, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Clément Pit-Claudel, 2017/04/26
- Re: How can I undo a change from a modification-hook?, Stefan Monnier, 2017/04/27
- Re: How can I undo a change from a modification-hook?, Clément Pit-Claudel, 2017/04/27
- Re: How can I undo a change from a modification-hook?, Stefan Monnier, 2017/04/27