* lisp/emacs-lisp/debug-early.el (debug-early-backtrace): Fix bug#61847
The `noerror` arg of `require` doesn't do what Stefan naively thought when he wrote this code, so use `condition-case` instead. Also check for `cl-defmethod` since `cl-prin1` can't be loaded before that anyway.
This commit is contained in:
parent
99df815c15
commit
1f1d36fa80
1 changed files with 4 additions and 4 deletions
|
@ -46,10 +46,10 @@ of the build process."
|
||||||
(print-escape-control-characters t)
|
(print-escape-control-characters t)
|
||||||
(print-escape-nonascii t)
|
(print-escape-nonascii t)
|
||||||
(prin1 (if (and (fboundp 'cl-prin1)
|
(prin1 (if (and (fboundp 'cl-prin1)
|
||||||
;; If we're being called while
|
(fboundp 'cl-defmethod) ;Used by `cl-print'.
|
||||||
;; bootstrapping, we won't be able to load
|
(condition-case nil
|
||||||
;; cl-print.
|
(require 'cl-print)
|
||||||
(require 'cl-print nil t))
|
(error nil)))
|
||||||
#'cl-prin1
|
#'cl-prin1
|
||||||
#'prin1)))
|
#'prin1)))
|
||||||
(mapbacktrace
|
(mapbacktrace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue