0

Using emacs vanilla undo, I'd like to undo a series of operations, then hold a key to redo only the operations I just undid, and only those operations.


This use case for example:

  • Hold undo key, copy some part of the old buffer.
  • Hold redo key until all operations have been redone. Then paste in the clipboard.

While this is possible with emacs undo, it's made inconvenient because (as far as I know) there is no way to make redo stop at the point after undo began. It reaches the recent state, then begins undoing, it's easy to mess, then it's tricky to get the exact latest point because the redoing is now added to the history.

Is there a way to detect this situation and prevent it from redoing non-undo operations?

This should be possible since Redo / Undo is displayed in the message buffer.

0

This isn't supported with emacs default undo commands.

The package undo-fu supports this feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.