bug#81609: 31.0.90; Loading debug overwrites debugger

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
> From: Stefan Monnier <[email protected]>
> Cc: Al Haji-Ali <[email protected]>,  [email protected]
> Date: Sat, 15 Aug 2026 14:49:34 -0400
> 
> >> In debug.el there's a naked setq (with an autoload cookie?)
> >> 
> >> ,----
> >> | ;;;###autoload
> >> | (setq debugger 'debug)
> >> `----
> >> 
> >> which means that whenever debug is required, the previous value of
> >> `debugger` is silently overwritten. In my case, I set in my config
> >> `debugger` to a custom value and `debug` was being lazy-loaded after it
> >> which was overwriting the value.
> >> 
> >> I am not sure why this is done, since `debugger` has the value `debug`
> >> by default.
> >
> > Stefan, any comments or suggestions?
> 
> That `setq` would benefit from being moved to `loadup.el`, indeed.

Done, and closing the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.