[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unbalanced change hooks (part 2)
From: |
Eli Zaretskii |
Subject: |
Re: Unbalanced change hooks (part 2) |
Date: |
Mon, 01 Aug 2016 22:39:03 +0300 |
> Date: Mon, 1 Aug 2016 17:15:52 +0000
> Cc: address@hidden, address@hidden, address@hidden
> From: Alan Mackenzie <address@hidden>
>
> How about the following idea: we create a special purpose undo list
> separate from the existing one. Every change is recorded on this list,
> regardless of whether or not main undo is disabled. After each
> invocation of after-change-functions the list is emptied.
>
> (defmacro with-change-undone (&rest forms) ...)
>
> An after-change-function can invoke the macro `with-change-undone' which
> would undo the changes, execute the &rest forms, then redo the changes.
>
> Surely this would satisfy both of us, no?
Sounds gross, but if this is the only way to solve this problem, and
you can live with it, so can I.
I do suggest to wait with conclusions for a while, perhaps a better
idea will come up.
- Re: Unbalanced change hooks (part 2), Stefan Monnier, 2016/08/01
- Re: Unbalanced change hooks (part 2), Eli Zaretskii, 2016/08/01
- Re: Unbalanced change hooks (part 2), Alan Mackenzie, 2016/08/01
- Re: Unbalanced change hooks (part 2), Alan Mackenzie, 2016/08/01
- Re: Unbalanced change hooks (part 2),
Eli Zaretskii <=
- Re: Unbalanced change hooks (part 2), Alan Mackenzie, 2016/08/01
- Re: Unbalanced change hooks (part 2), Eli Zaretskii, 2016/08/02
- Re: Unbalanced change hooks (part 2), Alan Mackenzie, 2016/08/02
- Re: Unbalanced change hooks (part 2), Eli Zaretskii, 2016/08/02
- Re: Unbalanced change hooks (part 2), Stefan Monnier, 2016/08/06
- Re: Unbalanced change hooks (part 2), Alan Mackenzie, 2016/08/07
- Re: Unbalanced change hooks (part 2), Stefan Monnier, 2016/08/07
- Re: Unbalanced change hooks (part 2), Alan Mackenzie, 2016/08/07
- Re: Unbalanced change hooks (part 2), Stefan Monnier, 2016/08/07
- Re: Unbalanced change hooks (part 2), Stefan Monnier, 2016/08/06