GNU bug report logs - #32738
26.1.50; 'read-answer' allows only single characters as short answers

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Sat, 15 Sep 2018 09:05:02 UTC

Severity: wishlist

Tags: fixed

Found in version 26.1.50

Fixed in version 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 32738 <at> debbugs.gnu.org
Subject: Re: bug#32738: 26.1.50;
 'read-answer' allows only single characters as short answers
Date: Sun, 16 Sep 2018 19:51:54 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: 32738 <at> debbugs.gnu.org
> Date: Sun, 16 Sep 2018 01:42:37 +0300
> 
> Do you think it should support only characters with modifiers like C-M-h,
> or also key sequences?  I guess the latter since this will lift all
> restrictions on the KEY arg of define-key.

Yes, I agree.

> -                                   (format "%c" (nth 1 a))
> +                                   (if (characterp (nth 1 a))
> +                                       (format "%c" (nth 1 a))
> +                                     (key-description (nth 1 a)))

This will still display C-a s ^A.  I suggest to use
single-key-description instead.

Thanks.




This bug report was last modified 5 years and 167 days ago.

Previous Next


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