From dc228152271a2f4767e7cb9a151dc092bee8fd1e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 8 Jan 2020 00:46:45 -0500 Subject: [PATCH] Fix #2234 (temporarily) Due to breaking changes in undo-tree. --- core/core-editor.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index 070a72e49..e8efb7a77 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -527,7 +527,7 @@ files, so we replace calls to `pp' with the much faster `prin1'." :after-call doom-switch-buffer-hook after-find-file :config (setq undo-tree-visualizer-diff t - undo-tree-auto-save-history t + undo-tree-auto-save-history nil ;; Increase undo-limits by a factor of ten to avoid emacs prematurely ;; truncating the undo history and corrupting the tree. See ;; https://github.com/syl20bnr/spacemacs/issues/12110 @@ -558,6 +558,9 @@ files, so we replace calls to `pp' with the much faster `prin1'." (stringp (car item)) (setcar item (substring-no-properties (car item)))))) + ;; Undo-tree is too chatty about saving its history files. + (advice-add #'undo-tree-save-history :around #'doom-shut-up-a) + (global-undo-tree-mode +1))