Once every hour, or when I open a new file; I am usually getting error related to reading undo-tree history
, which lead emacs daemon to frozen, and everytime I have to re-start the emacs
.
The error I am having, where Emacs get frozen:
Error reading undo-tree history from "/home/alper/.emacs.d/undo/.!home!alper!personalize!emacs_q_git_edit.el.~undo-tree~"
How could I prevent emacs
to get frozen due the Error reading undo-tree history from its file
? Please note that when emacs
frozen I was unable to debug it to invest it further.
The way I installed emacs
:
mkdir -p ~/tools && cd ~/tools
git clone git://git.savannah.gnu.org/emacs.git && cd emacs
./autogen.sh
./configure --with-x-toolkit=yes --with-x-toolkit=no --with-native-compilation
make -j$(nproc)
sudo mkdir -p /opt/ss
sudo rm -f /opt/ss/*
sudo ln -s ~/tools/emacs/lib-src/emacsclient /opt/ss/
sudo ln -s ~/tools/emacs/src/emacs /opt/ss/
my configuration relevant to undo-tree
, related:
(require 'undo-tree)
(setq undo-tree-auto-save-history t)
(global-undo-tree-mode t)
(setq undo-tree-auto-save-history t)
(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo")))
(global-set-key "\C-x\C-v" 'undo-tree-visualize)
(require 'linum)
(defun undo-tree-visualizer-update-linum (&rest args)
(linum-update undo-tree-visualizer-parent-buffer))
(advice-add 'undo-tree-visualize-undo :after #'undo-tree-visualizer-update-linum)
(advice-add 'undo-tree-visualize-redo :after #'undo-tree-visualizer-update-linum)
(advice-add 'undo-tree-visualize-undo-to-x :after #'undo-tree-visualizer-update-linum)
(advice-add 'undo-tree-visualize-redo-to-x :after #'undo-tree-visualizer-update-linum)
(advice-add 'undo-tree-visualizer-mouse-set :after #'undo-tree-visualizer-update-linum)
(advice-add 'undo-tree-visualizer-set :after #'undo-tree-visualizer-update-linum)