Subject: bug#70596: 30.0.50; key-translate returns error for key sequences with punctuation marks

From: Alexander Prähauser <[email-masked]>
Date: Sat, 27 Apr 2024 09:24:58 +0000

"Eli Zaretskii" <[email-masked]> 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" <[email-masked]>
>>
>>
>> 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.