GNU bug report logs - #75886
31.0.50; read-multiple-choice / read-key and input-decode-map

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Mon, 27 Jan 2025 06:09:02 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #42 received at 75886 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: 75886 <at> debbugs.gnu.org
Subject: Re: bug#75886: 31.0.50; read-multiple-choice / read-key and
 input-decode-map
Date: Fri, 13 Jun 2025 11:28:14 -0400
> diff --git a/lisp/emacs-lisp/rmc.el b/lisp/emacs-lisp/rmc.el
> index ad3c86cfd00..63f97fb006e 100644
> --- a/lisp/emacs-lisp/rmc.el
> +++ b/lisp/emacs-lisp/rmc.el
> @@ -219,8 +219,11 @@ read-multiple-choice--short-answers
>                                      (car elem)))
>                              prompt-choices)))
>                    (condition-case nil
> -                      (let ((cursor-in-echo-area t))
> -                        (read-event))
> +                      (let ((cursor-in-echo-area t)
> +                            (key (read-key)))
> +                        (when (eq key ?\C-g)
> +                          (signal 'quit nil))
> +                        key)
>                      (error nil))))
>            (if (memq (car-safe tchar) '(touchscreen-begin
>                                         touchscreen-end

LGTM,


        Stefan





This bug report was last modified 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.