[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tricky - undo function - planning info
From: |
Stefan Monnier |
Subject: |
Re: tricky - undo function - planning info |
Date: |
Sun, 07 Jun 2015 22:35:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> Normally M-x undo would undo each step. A function may comprise one or more
> steps.
Emacs doesn't care much about function boundaries. So, if you really
mean "function", your needs are clearly out. If you actually meant
"command", then at least there's a chance you might get it to do what
you want.
Still, a command may stop in the middle, calling recusrive-edit and
hence calling other sub-commands, at which point it can become far from
clear what you mean by "undo 1 command".
> Then again, maybe it is already implemented and undocumented, or there
> is a simple solution.
I doubt it. Maybe all you want is atomic-change-group. But Maybe your
needs are very unusual. If you describe them, maybe someone can show you
how to do it.
Stefan