GNU bug report logs -
#73584
29.3; read-key
Previous Next
Full log
View this message in rfc822 format
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Stefan Kangas <stefankangas <at> gmail.com>, Emacs-hacker2023 <at> jovi.net,
> 73584 <at> debbugs.gnu.org
> Date: Thu, 03 Oct 2024 11:43:25 -0400
>
> > The OP shot himself in the foot by invoking by hand a low-level
> > function with a wrong argument. Interactive functions and high-level
> > APIs must check their arguments right away, but low-level functions
> > like this one do not.
>
> I think the "bug" is indeed not in the fact that we check too late for
> a string. I guess we could say that any code which temporarily rebinds
> the global map should be super-extra careful never to signal an error,
> and prevent itself from being Edebugged etc... but it would be
> preferable for the debuggers to "handle it".
Is the patch below acceptable as the solution to this?
diff --git a/lisp/emacs-lisp/backtrace.el b/lisp/emacs-lisp/backtrace.el
index 120972d..e353970 100644
--- a/lisp/emacs-lisp/backtrace.el
+++ b/lisp/emacs-lisp/backtrace.el
@@ -202,6 +202,7 @@ backtrace-mode-map
"+" #'backtrace-multi-line
"-" #'backtrace-single-line
"." #'backtrace-expand-ellipses
+ "C-]" #'abort-recursive-edit
"<follow-link>" 'mouse-face
"<mouse-2>" #'mouse-select-window
This bug report was last modified 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.