Re: undo-tree problem after updates
Stéphane Marks <[email protected]> Sat, 25 Jul 2026 12:47:46 +0200
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <CAN+1HbqZbB9ka0uWvChiG8Qx_hw7yrDf9osv8x6egAA3WT9tTg@mail.gmail.com> |
On Sat, Jul 25, 2026 at 4:33 AM Thomas Klausner <[email protected]> wrote: > Hi! > > I often install a new emacs git version. After many (all? not quite > sure) of these updates, the first start of emacs is unusable because > as soon as I try to enter ESC-x, I get this error: > > Symbol’s value as variable is void: undo-tree-mode--set-explicitly > > Any normal letters work, 'ESC' alone also works and shows me the > possible options for the next letter, but every command I tried ends up > with this, including ctrl-x ctrl-c. > > Killing emac and restarting it gets rid of this, so it's a first-start > issue only. > > use-package list from my startup file, in case it matters: > > bison-mode > cmake-mode > consult > corfu > corfu-terminal > doom-modeline > eglot > embark > embark-consult > flymake > jinx > json-mode > leuven-theme > lua-mode > magit > magit-delta > marginalia > markdown-mode > modus-themes > nerd-icons > nerd-icons-completion > nerd-icons-corfu > nerd-icons-dired > orderless > php-mode > rust-mode > savehist > undo-tree > vertico > wgrep > which-key > yaml-mode > > Does anyone have an idea what could be the problem here? > I sense you share your .elc files across versions without recompiling them, be they in your personal library or via a package manager so in your elpa directory. The definition of the macro define-globalized-minor-mode changed and if you recompile your .el files, it should disappear. Note, that if you go back to an older Emacs version you may have to repeat the exercise. If using the built-in package manager, run the command package-recompile-all. For your personal library in, say, ~/.emacs.d/lisp or similar, run the command byte-recompile-directory. HTH