master ec9950d5e6a: Move initialization of 'debugger' to loadup.el

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit ec9950d5e6a49468d876bcf19319173547fc63bf
Author: Eli Zaretskii <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    Move initialization of 'debugger' to loadup.el
    
    * lisp/emacs-lisp/debug.el (debugger): Move setting from here...
    * lisp/loadup.el: ...to here.  (Bug#81609)
---
 lisp/emacs-lisp/debug.el | 2 --
 lisp/loadup.el           | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index ec2aa0ad728..47fa301393e 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -157,8 +157,6 @@ where CAUSE can be:
   (pcase args
     (`(error ,err . ,_) (and (consp err) (eq err debugger--last-error)))))
 
-;;;###autoload
-(setq debugger 'debug)
 ;;;###autoload
 (defun debug (&rest args)
   "Enter debugger.  \\<debugger-mode-map>`\\[debugger-continue]' returns from the debugger.
diff --git a/lisp/loadup.el b/lisp/loadup.el
index efc9e7ebb40..d1febf831f7 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -118,6 +118,7 @@
 ;; We don't want to have any undo records in the dumped Emacs.
 (set-buffer "*scratch*")
 (setq buffer-undo-list t)
+(setq debugger 'debug)
 
 (load "emacs-lisp/debug-early")
 (load "emacs-lisp/byte-run")
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.