Questions tagged [undo-tree-mode]
46 questions
24
votes
3 answers
How can I get undo behavior in Evil similar to Vim's?
The default undo behavior in Evil is too coarse-grained because it considers anything taking place between entering insert mode and leaving it as one edit operation. When you enter a whole paragraph of text during one insert and then execute undo,…

tmalsburg
- 2,540
- 1
- 14
- 29
19
votes
3 answers
How to collapse undo history?
I'm working on an Emacs mode that lets you control Emacs with speech recognition. One of the problems I've ran into is that the way Emacs handles undo doesn't match how you would expect it to work when controlling by voice.
When the user speaks…

Joseph Garvin
- 2,061
- 8
- 21
17
votes
1 answer
Combining magit with undo-tree for easy history navigation
I love undo-tree (screenshot below). It provides an easy way for navigating through different versions of a file (top window) by letting the user move around the file's history tree in a separate window (bottom window) with simple keys such as n, p…

Amelio Vazquez-Reina
- 5,157
- 4
- 32
- 47
12
votes
4 answers
Possible not to use undo-tree in evil mode?
Every so often I run into bugs in undo-tree, where I can't redo, with the following:
primitive-undo: Unrecognized entry in undo list undo-tree-canary
Links to references to this issue:
Bug report.
Bug report.
Reddit thread.
This is really bad and…

ideasman42
- 8,375
- 1
- 28
- 105
12
votes
2 answers
How to operate the undo-redo tree in spacemacs?
I just hit SPC a u and it opened the undo-redo tree. Now I can't operate it.
I go on the tree, press enter and nothing happen. I can't close it!
Either :q is unrecognized. How do I operate this ?

ChiseledAbs
- 449
- 1
- 4
- 12
12
votes
3 answers
Saving persistent undo to a single directory, alist format
It looks like this can be achieved by modifying the variable
undo-tree-history-directory-alist, but I can't figure out how. I tried a number of lines, the last of which is
(setq undo-tree-history-directory-alist ("." ! "~/.emacs.d/undo"))
But…

Toothrot
- 3,204
- 1
- 12
- 30
11
votes
1 answer
Configuring Emacs and especially undo-tree-mode for tiling window managers
I want to use Emacs in a frame-oriented fashion and let my tiling window manager handle buffer organization. For example, following this tutorial. By default, Emacs packages such as undo-tree-mode seem to be dependent on windows to display the…

wdkrnls
- 3,657
- 2
- 27
- 46
10
votes
2 answers
How to make undo-tree linear -- undo-tree-undo/redo
When running the command undo-tree-undo/redo successively, things are undone/redone based upon the current active branch. Although the user receives a branch point message along the way, the previous branches are ignored unless a user manually…

lawlist
- 18,826
- 5
- 37
- 118
7
votes
2 answers
How to view package Full Description (commentary section) inside Emacs
I'm looking for a way to visualize inside Emacs the Full Description of a
package as shown in Elpa index page.
For example the undo-tree package has a nice and comprehensive help
page/description embedded in its source code which is fully shown in…

Alexandro de Oliveira
- 767
- 1
- 6
- 17
6
votes
1 answer
undo-tree -- history file without text-properties
Q: How can I modify undo-tree-save-history to remove the text-properties from all entries that make their way into the saved history file?
In a related thread, @PythonNut was on a very similar quest to remove text-properties from entries that make…

lawlist
- 18,826
- 5
- 37
- 118
5
votes
1 answer
Is it possible suppress save message for undo-tree?
When I save my any file I am working on I always see following message, I believe this is related to my unto-tree configuration.
Wrote /home/alper/.emacs.d/undo/.!home!alper!current_folder!__init__.py.~undo-tree~
[Q] Is it possible suppress this…

alper
- 1,238
- 11
- 30
5
votes
1 answer
undo-tree: Persistent visibility of the undo visualization buffer
C-x u aka undo-tree-visualize enables a user visualize the undo tree history of a buffer.
I love undo tree, and I want to have it displayed all the time as a visual map of my changes. I would like it to always be there in a buffer, that is, always…

Wapiti
- 151
- 3
5
votes
2 answers
Help! Emacs empty my 1 year org file
I have used Emacs Org mode for my notes for several years, and I use Prelude configured with evil. Everything works fine.
Until a few minutes ago, I found the note file is empty of content. and the file size change to 2 bytes. I try to undo but…

chiangxinyu
- 81
- 3
5
votes
1 answer
undo-tree output like git log
I just discovered undo-tree-mode and it's amazing.
My use case is finding changes that I've made before so that I can re-apply them. However I'm having difficulty finding the changes I've made.
Is there an easy way to get output like git log -p or…

Att Righ
- 725
- 4
- 14
4
votes
1 answer
change how much undo-tree-undo undoes
In particular, I am using undo-tree-undo.
When I type a few words in a line, and undo, all those words disappear. Same thing happens when I type a function name and screw up a couple of symbols in the end - undo eats up the whole line.
Is there a…

user3496846
- 378
- 1
- 10