Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • If you remove the offending undo-tree saved history file relating to a buffer that Emacs is trying to open during startup, does Emacs start up properly? Another thing to check would be your desktop saved history file to see if it is storing undo-tree stuff relating to an open buffer -- if so, then try removing the desktop save history file and try restarting. Commented Jul 15, 2020 at 0:16
  • ~.emacs.d/undo is empty. I am not sure which file should I remove and where is it located. This occurs when I try to open a empty file as well. Also where is desktop save history file located? Commented Jul 15, 2020 at 0:24
  • If you are using the desktop.el save library to automatically load your last used layout, then evaluating the function desktop-full-file-name should tell you where it is located. E.g., M-x eval-expression RET (desktop-full-file-name) RET assuming that the desktop.el library has already been loaded. It should be somewhere in your user-emacs-directory, but could be elsewhere ... Commented Jul 15, 2020 at 0:35
  • Did you try invoking emacs with emacs --debug-init as suggested in the message? If that gives you a backtrace, please add it to your question. Commented Jul 15, 2020 at 1:38
  • 1
    My undo-tree history saved file looks like this: /Users/HOME/.emacs.d/undo/.!Users!HOME!Desktop!__init__.py.~undo-tree~ Move that file to a different directory for potential deletion later, and then restart Emacs. Commented Jul 15, 2020 at 18:15