Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo-Tree discarding undo history: "No further undo information" #16047

Open
maptv opened this issue Jun 21, 2023 · 0 comments
Open

Undo-Tree discarding undo history: "No further undo information" #16047

maptv opened this issue Jun 21, 2023 · 0 comments

Comments

@maptv
Copy link

maptv commented Jun 21, 2023

Description :octocat:

Undo-Tree discarding undo history leads to "No further undo information" message.

I cannot get persistent undo to work consistently in spacemacs.
Here is a link to my config: https://github.com/maptv/setup/blob/main/.spacemacs
I am installing in the typical location (.emacs.d).
I tried re-installing Spacemacs with different Emacs versions.
I have tried all sorts of undo settings, but took them all out of my config because nothing was working.

Reproduction guide 🪲

  1. Start Emacs with my config: https://github.com/maptv/setup/blob/main/.spacemacs
  2. Open a file
  3. Make a change
  4. Exit the current session
  5. Start a new session
  6. Press u

Observed behaviour: 👀 💔

The message "No further undo information" is displayed.

By pressing SPC w p m, I find this error:

Buffer has been modified since undo-tree history was saved to
	  "~/.emacs.d/.cache/undo-tree-history/.!Users!uname!uname!repo!.file.~undo-tree~"; could not load undo-tree history

I believe this error means that Undo-Tree has missed a beat and gave up completely.
Is there some way to ensure that this never happens?
Hooks that save/load undo history when closing/opening a file?

Expected behaviour: ❤️ 😄

Press u in normal state to undo the most recent change.

System Info 💻

  • OS: darwin
  • Emacs: 28.2
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. 26629bf)
  • Graphic display: nil
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(vimscript lua auto-completion emacs-lisp evil-snipe git helm markdown multiple-cursors osx version-control treemacs)
  • System configuration features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER THREADS ZLIB

Backtrace 🐾

Buffer has been modified since undo-tree history was saved to
	  "~/.emacs.d/.cache/undo-tree-history/.!Users!uname!uname!repo!.file.~undo-tree~"; could not load undo-tree history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant