apchamberlain / undo-tree.el

Visualize Emacs undo information as a graphical tree and navigate to previous states
20 stars 0 forks source link

Bug in persistent undo history #1

Open piotr-yuxuan opened 4 years ago

piotr-yuxuan commented 4 years ago

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 commented 4 years ago

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 🎉💪

jack-faller commented 3 years ago

wouldn't this work?

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