How to make M-x undo
more fine-grained or sensitive?
Example: say, I wrote:
foo (bar baz) ()
then I M-x undo
and receive:
foo (bar
but what I want to get after this undo is:
foo (bar baz)
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityHow to make M-x undo
more fine-grained or sensitive?
Example: say, I wrote:
foo (bar baz) ()
then I M-x undo
and receive:
foo (bar
but what I want to get after this undo is:
foo (bar baz)
I like to do two things with undo. I turn off the amalgamation stuff (which by doing so permits undo one keystroke at at time); and, I get rid of the timer (because timers affect performance and drive me absolutely bonkers, unless they are idle-timers.
Alternatively, you can modify undo-auto-amalgamate
which is hard coded at 20 and set it to a lesser/greater amount.
(when (timerp undo-auto-current-boundary-timer)
(cancel-timer undo-auto-current-boundary-timer))
(fset 'undo-auto--undoable-change
(lambda () (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer))))
(fset 'undo-auto-amalgamate 'ignore)
undo
. – user12563 Jan 22 '19 at 21:22undo
command works: web.archive.org/web/20180518040652/https://www.reddit.com/r/… Also, be wary ofundo-tree
. It has a bug in it which loses the history (quite frequently in my experience): github.com/emacs-evil/evil/issues/1074 – Lorem Ipsum Jan 22 '19 at 22:24baz) ()
all consecutively, then those would be grouped together and all undone at once. The manual doesn't indicate any way to change that, although perhaps there are packages that will help (I don't know). – MTS Jan 22 '19 at 22:24foo (bar baz)
? What is the sequence of actions you've taken prior to issuing theundo
command? – MTS Jan 22 '19 at 22:53