undo-tree.el icon indicating copy to clipboard operation
undo-tree.el copied to clipboard

Bug in persistent undo history

Open piotr-yuxuan opened this issue 6 years ago • 2 comments

Here is my configuration:

(use-package undo-tree
  :commands undo-tree-visualize
  :bind ([remap undo] . undo-tree-visualize)
  :custom ((undo-tree-auto-save-history t)
	   (undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo-tree"))))
  :config (global-undo-tree-mode))

Several opinions exist about how to fix this bug ; none of them works on my machine.

piotr-yuxuan avatar Nov 23 '19 10:11 piotr-yuxuan

Addition: here are the opinions are was referring to: https://stackoverflow.com/questions/38428941/undo-tree-doesnt-auto-load-history

@apchamberlain is this project still maintain? I'm pretty sure a lot of people would be super happy to see it fixed 🎉💪

piotr-yuxuan avatar Nov 23 '19 10:11 piotr-yuxuan

wouldn't this work?

(add-hook 'after-save-hook (lambda () (undo-tree-save-history nil t)))

jack-faller avatar Jul 30 '21 13:07 jack-faller