News for hackers. Stuff that matters.
Re:Emacs-like editors written in Common Lisp by OrderlyTiamat on Sunday October 02, 2022 @04:39PM (#33060007)
is there a tldr on undo-tree's capabilities? I really like emacs' default undo behaviour, especially it's region bound behavior. undo-tree is kind of like vim right? Ive actually never really grokked that one either. I even remove undo-tree after installing evil as its an unwanted change for me, and evil has no option not to use it.
Re:Emacs-like editors written in Common Lisp by nequo on Sunday October 02, 2022 @07:14PM (#33061380)
Walking the tree of changes has proven very useful to me several times.

Undo-tree can also display the diff for each change. Useful when an operation induced changes in different parts of a long document (for example rerunning source code blocks with org-babel).

Re:Emacs-like editors written in Common Lisp by tmtvl on Sunday October 02, 2022 @06:34PM (#33061050)
Undo tree stores the changes you make in a tree, like Emacs does by default, but its undo function is undo only and its redo function is redo only. When there are multiple different changes you can redo you can select which one you want.

Vundo offers that functionality with Emacs' default undo tree, making it an objectively better package as it preserves undo-in-region, which undo-tree lacks.

Re:Emacs-like editors written in Common Lisp by OrderlyTiamat on Monday October 03, 2022 @09:24AM (#33067172)
I might take a look at vundo then, that sounds great. Thank you both for the explanations!