undo-tree-enable-undo-in-region = nil

Try to save off the elusive and annoying "unrecognized entry in undo
list undo-tree-canary" error produced by undo-tree.
This commit is contained in:
Henrik Lissner 2018-07-28 01:04:49 +02:00
parent f0f2c92b8d
commit 2e25989dc5
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395
2 changed files with 4 additions and 6 deletions

View File

@ -183,9 +183,11 @@ fundamental-mode) for performance sake."
(def-package! undo-tree
:after-call (doom-exit-buffer-hook after-find-file)
:config
;; persistent undo history is known to cause undo history corruption, which
;; can be very destructive! So disable it!
;; persistent undo history and undo-in-region is known to cause undo history
;; corruption, which can be very destructive! Disabling it deters the error,
;; but does not fix it entirely!
(setq undo-tree-auto-save-history nil
undo-tree-enable-undo-in-region nil
undo-tree-history-directory-alist
(list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
(global-undo-tree-mode +1))

View File

@ -425,10 +425,6 @@
(:map swiper-map
[backtab] #'+ivy/wgrep-occur))
;; undo-tree -- undo/redo for visual regions
:v "C-u" #'undo-tree-undo
:v "C-r" #'undo-tree-redo
;; yasnippet
(:after yasnippet
(:map yas-keymap