GNU bug report logs - #70596
30.0.50; key-translate returns error for key sequences with punctuation marks

Previous Next

Package: emacs;

Reported by: Alexander Prähauser <ahprae <at> protonmail.com>

Date: Fri, 26 Apr 2024 17:31:07 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Alexander Prähauser <ahprae <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 70596 <at> debbugs.gnu.org
Subject: Re: bug#70596: 30.0.50;
 key-translate returns error for key sequences with punctuation marks
Date: Sat, 27 Apr 2024 09:24:58 +0000
"Eli Zaretskii" <eliz <at> gnu.org> writes:

I see. But shouldn't (key-valid-p "C-.") return nil then?

>> Date: Fri, 26 Apr 2024 17:29:35 +0000
>> From:  Alexander Prähauser via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>>
>> I think this is a bug: emacs returns an error message for the
>> following command:
>>
>> (key-translate "C-." "C-a")
>>
>> The backtrace is the following:
>>
>> Debugger entered--Lisp error: (wrong-type-argument characterp 67108910)
>> key-translate("C-." "C-g")
>
> That's because C-. is not a valid character.  Valid characters with
> the Control modifier are C-SPC to C-z.





This bug report was last modified 1 year and 21 days ago.

Previous Next


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