From: Eli Zaretskii <eliz@gnu.org>
To: Emacs-hacker2023@jovi.net
Cc: 73584-done@debbugs.gnu.org, monnier@iro.umontreal.ca,
stefankangas@gmail.com
Subject: bug#73584: 29.3; read-key
Date: Sun, 27 Oct 2024 12:30:02 +0200 [thread overview]
Message-ID: <86jzdtaled.fsf@gnu.org> (raw)
In-Reply-To: <86plo4tekx.fsf@gnu.org> (message from Eli Zaretskii on Sun, 13 Oct 2024 14:41:34 +0300)
> Cc: 73584@debbugs.gnu.org, stefankangas@gmail.com, Emacs-hacker2023@jovi.net
> Date: Sun, 13 Oct 2024 14:41:34 +0300
> From: Eli Zaretskii <eliz@gnu.org>
>
> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Cc: Stefan Kangas <stefankangas@gmail.com>, Emacs-hacker2023@jovi.net,
> > 73584@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
No further comments within 2 weeks, so I've now installed this on the
master branch, and I'm therefore closing this bug.
next prev parent reply other threads:[~2024-10-27 10:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 18:21 bug#73584: 29.3; read-key Devon Sean McCullough
2024-10-02 5:58 ` Eli Zaretskii
2024-10-02 10:02 ` Stefan Kangas
2024-10-02 10:50 ` Eli Zaretskii
2024-10-02 21:47 ` Stefan Kangas
2024-10-03 6:04 ` Eli Zaretskii
2024-10-03 15:43 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13 11:41 ` Eli Zaretskii
2024-10-27 10:30 ` Eli Zaretskii [this message]
2024-10-28 22:53 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86jzdtaled.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73584-done@debbugs.gnu.org \
--cc=Emacs-hacker2023@jovi.net \
--cc=monnier@iro.umontreal.ca \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).