Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [undo-tree-mode]

The tag has no usage guidance.

0
votes
0answers
67 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 ...
2
votes
1answer
30 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) (...
4
votes
1answer
56 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 ...
1
vote
0answers
18 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?...
3
votes
1answer
118 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 ...
4
votes
2answers
127 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 ...
1
vote
0answers
21 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:...
1
vote
1answer
234 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 ...
0
votes
1answer
34 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?
1
vote
1answer
49 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 ...
2
votes
1answer
1k 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"?
6
votes
2answers
245 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 ...
1
vote
1answer
56 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 ... ...
6
votes
1answer
281 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 ...
1
vote
1answer
39 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) ...
0
votes
3answers
685 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 ...
10
votes
2answers
1k 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 ...
5
votes
1answer
78 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 ...
11
votes
2answers
1k 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 known bug, another report & reddit thread. primitive-undo: Unrecognized entry in undo list undo-tree-canary ...
2
votes
1answer
82 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 ...
4
votes
0answers
75 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 ...
7
votes
2answers
6k 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 ?
2
votes
1answer
393 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-...
15
votes
1answer
415 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 ...
0
votes
1answer
163 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. ...
16
votes
2answers
481 views

Collapsing 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 ...
2
votes
1answer
239 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-...
17
votes
2answers
2k 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 ...
1
vote
3answers
605 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-...
11
votes
1answer
240 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 ...