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


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 75886 <at> debbugs.gnu.org
Subject: bug#75886: 31.0.50; read-multiple-choice / read-key and input-decode-map
Date: Sat, 14 Jun 2025 05:44:00 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> 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

Thanks.




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.