Questions tagged [undo-tree-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Problem with undo-tree-visualizer keybindings

What I want I use general, use-package and evil. I want to use evil keybindings in undo-tree-visualizer-mode to jump between nodes and branches using "j", "k", "h", "...
c3f0's user avatar
  • 1
0 votes
1 answer
43 views

Keybinding breaks undo-tree with evil

A few months ago I noticed undo-tree was not working properly for me, though it had never been a problem in the past. Whenever I opened an existing file on my computer and edited it, trying to undo ...
Dargscisyhp's user avatar
1 vote
0 answers
65 views

Does undo-tree-mode allow to undo a specific change?

I am using undo-tree-mode in spacemacs and it works fine to show the history of changes and to reset the buffer to a specific state. But sometimes I'd like to undo a change or sequence of changes ...
user905686's user avatar
1 vote
1 answer
264 views

What's the safest way to make documents on emacs?

I lost my progress on an org document twice, and I used tons of undo-redo commands, but none of them worked, so now, even though I really like org mode and emacs, I'm kind of disappointed. Is there a ...
Jesus Armando Peña Lucero's user avatar
1 vote
1 answer
116 views

undo-tree changed Treemacs layout when move history cursor in Spacemacs

When I use Spacemacs with the Treemacs feature inside it, like the picture, I opened it by Alt Shift m + p + t Then use Ctrl x + u to open undo-tree When I move the cursor on the undo-tree by Ctrl + ...
madaha's user avatar
  • 11
2 votes
2 answers
416 views

emacs get frozen due to error reading undo-tree history

Once every hour, or when I open a new file; I am usually getting error related to reading undo-tree history, which lead emacs daemon to frozen, and everytime I have to re-start the emacs. The error I ...
alper's user avatar
  • 1,350
0 votes
1 answer
246 views

undo-tree is not able to load the latest changes from previous emacs daemon session

I can access all the changes in the undo-tree during emacs --daemon session. But when it session is killed and new emacs --daemon is started undo-tree-visualize is shown clean. I have applied ...
alper's user avatar
  • 1,350
3 votes
1 answer
236 views

Large org-mode file causes error "Re-entering top level after C stack overflow"

I use org-mode quite a lot and of late I have noticed one of my larger org-mode files has caused Emacs to throw this error: Re-entering top level after C stack overflow I tried debugging using the ...
Marco Craveiro's user avatar
3 votes
1 answer
435 views

Restore emacs' default undo/redo behavior in spacemacs

I've recently moved to spacemacs and it seems that they've adopted a different undo package (undo-tree) which I don't like since it does not push the undo actions back onto the history stack. I would ...
oneself's user avatar
  • 341
0 votes
0 answers
87 views

Pulse text inserted, changed or removed when undoing and redoing

I heard about pulse.el recently on r/emacs and thought of using it to highlight the chunks of text inserted, removed or changed on undoing and redoing edits, just like evil-goggles used to do: There'...
Arch Stanton's user avatar
  • 1,627
5 votes
1 answer
562 views

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....
alper's user avatar
  • 1,350
0 votes
0 answers
94 views

Intermittently undo-tree aborts immediately after I CTL-P undo

Intermittently, I have a problem where I start an undo-tree-mode with C-X u. And as soon as I hit C-p to do an undo, the undo-tree pane closes. This has been happening for a long while now. It happens ...
Robert J Berger's user avatar
1 vote
1 answer
169 views

Wrong type argument: undo-tree, [cl-struct-undo-tree [nil ([nil ([nil nil ]]]

The way I installed undo-tree: M-x package-install undo-tree My setup: GNU Emacs 26.3 undo-tree 0.7.4 installed Treat undo history as a tree (global-undo-tree-mode 1) (setq undo-...
alper's user avatar
  • 1,350
0 votes
0 answers
37 views

undo-tree: remove the current node

I just want to erase history here - the very last entry. This shouldn't be dangerous, right? I figured I need to somehow transform (undo-tree-current buffer-undo-tree) and pass that to undo-tree-snip-...
user3496846's user avatar
1 vote
1 answer
763 views

No further undo information

I'm getting the "no more undo" message all too often, even I made changes that should be there in the history. This is seriously breaking my workflow. This is my .emacs https://github.com/skrat/dots/...
skrat's user avatar
  • 133
3 votes
1 answer
3k views

Saving undo-tree to restore in next session

I wanted to know if undo-tree has a feature that saves the undo-tree of a file, and automatically restore it when opened in another session. I went to the undo-tree doc page, and of course the feature ...
m.raynal's user avatar
  • 257
1 vote
1 answer
487 views

`undo-tree-mode` only goes back a small number of steps when using Ensime, then "no further undo information"

When using undo-tree-undo in Spacemacs v 300 in ensime-mode, I will run into "No further undo information" after a small number of steps --- just around five or so. I have the following variables ...
Metropolis's user avatar
3 votes
1 answer
401 views

Rewriting `defadvice' as `advice-add' makes advice ineffective

I am trying to make undo-tree auto compress the history save file. The document suggests adding the following advice (defadvice undo-tree-make-history-save-file-name (after undo-tree activate) (...
nalzok's user avatar
  • 675
4 votes
1 answer
222 views

change how much undo-tree-undo undoes [duplicate]

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 ...
user3496846's user avatar
1 vote
0 answers
55 views

How to keep cursor position after quitting undo-tree-visualize

After using undo-tree-visualize and going back to some previous state, I wanna return back to final state (i.e., no undo) with my cursor staying at the position at that previous state. Is it possible?...
AhLeung's user avatar
  • 1,083
5 votes
1 answer
552 views

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 ...
Wapiti's user avatar
  • 151
5 votes
2 answers
424 views

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 ...
chiangxinyu's user avatar
1 vote
0 answers
112 views

Unbind SLIME's slime-edit-uses (M-_)

I installed undo-tree-mode into my emacs. It does have a lot of nifty features, one of them being undo-tree-redo (bound to M-_). It so useful that I put the following code inside my ~/.emacs.d/init.el:...
Gabriel Francischini's user avatar
3 votes
1 answer
933 views

disable undo-tree on a region of text

I use undo-tree mode in my emacs setup. Every once in a while, after writing a lot of text, I accidentally undo changes while I have some region selected. I am not 100% sure what undo-tree is doing ...
Tohiko's user avatar
  • 1,639
0 votes
1 answer
41 views

Is quiting arbitrary mode possible?

How to exit arbitrary mode x, as it seams for my particular case undo-tree-mode there is no undo-tree-mode related option for undoing it, it there a general solution?
Error's user avatar
  • 101
1 vote
1 answer
128 views

goto-chg stops at undo branch point?

I'm using package goto-chg to move cursor to the last edit. It works great most of the time, but it sometimes said "No further change info" even though there were more changes. Using undo-tree's ...
AhLeung's user avatar
  • 1,083
2 votes
1 answer
3k views

redo (ctrl+y) undo

I normally undo with ctrl+_ with other editors there is a redo operation normally associated with ctrl+y. is there an emacs equivalent? In general what is the best way to handle an "undo tree"?
Andrea Borga's user avatar
7 votes
2 answers
412 views

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 ...
Alexandro de Oliveira's user avatar
1 vote
1 answer
99 views

undo-tree: How to map through all nodes programmatically

I am working on my own new feature request for undo-tree linear undo/redo: How to make undo-tree linear -- undo-tree-undo/redo I have successfully added two additional gizmos (?) to cl-defstruct ... ...
lawlist's user avatar
  • 19.1k
6 votes
1 answer
501 views

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 ...
lawlist's user avatar
  • 19.1k
1 vote
1 answer
91 views

Cleaning the buffer-undo-list of unwanted entries

When multiple-cursors is deactivated, I would like to remove from the buffer-undo-list all entries that look like this: (apply activate-cursor-for-undo 40) (apply deactivate-cursor-after-undo 38) ...
lawlist's user avatar
  • 19.1k
0 votes
4 answers
3k views

how can I get Emacs kill-ring to behave like a simple clipboard buffer?

How can I get Emacs to behave the same as other programs for copy/paste (i.e. OpenOffice, Microsoft Word, etc.)? I want to simplify the kill-ring so that it behaves like a simple clipboard. I find it ...
m33lky's user avatar
  • 297
10 votes
2 answers
2k views

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 ...
lawlist's user avatar
  • 19.1k
5 votes
1 answer
121 views

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 ...
Att Righ's user avatar
  • 775
12 votes
4 answers
5k views

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. ...
ideasman42's user avatar
  • 8,736
2 votes
1 answer
143 views

text-properties bloat persistent undo files

I'm using undo-tree with AUCTeX, and I am persisting my undo files like so: (setq undo-tree-auto-save-history t) Unfortunately, this regularly results in large (~1MB) undo save files which cause my ...
PythonNut's user avatar
  • 10.3k
4 votes
0 answers
101 views

undo-tree tree manipulation/cherry picking?

Is it possible to cherrypick changes from different branches in undo tree? For example say I make a change call it change1. I then undo, and make a change, call it change2. I then undo, and make a ...
Abraham P's user avatar
  • 201
12 votes
2 answers
13k views

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's user avatar
13 votes
3 answers
2k views

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-...
Toothrot's user avatar
  • 3,264
17 votes
1 answer
730 views

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 ...
Amelio Vazquez-Reina's user avatar
0 votes
1 answer
264 views

How do I bind a key to open or close a mode? (undo-tree)

I'm using evil (via spacemacs) and I want to bind <f2> to open and close the undo-tree (like vim-Gundo). I can successfully bind opening undo-tree-visualize, but I can't figure out how to quit. ...
idbrii's user avatar
  • 293
19 votes
3 answers
1k views

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 ...
Joseph Garvin's user avatar
2 votes
1 answer
380 views

Unable to disable binding defined by undo-tree

There are two bindings for undo-tree-undo(C-_ and C-/) and undo-tree-redo(M-_ and C-?) defined in undo-tree, but now I don't want those bindings(delete those), I just want to bind C-z to undo-tree-...
CodyChan's user avatar
  • 2,649
24 votes
3 answers
7k views

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 ...
tmalsburg's user avatar
  • 2,570
2 votes
3 answers
896 views

Global key binding overriden by undo-tree [duplicate]

I am trying to remap globally C-/ but the undo-tree package hinders me from doing so. When calling this command (in my init file): (global-set-key (kbd "C-/") 'left-char) after having loaded undo-...
NVaughan's user avatar
  • 1,481
11 votes
1 answer
358 views

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 ...
wdkrnls's user avatar
  • 3,707