emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving kbd to subr.el


From: Stefan Monnier
Subject: Re: Moving kbd to subr.el
Date: Mon, 18 Oct 2021 08:40:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> > You mean, "<f123>"?
>> >
>> > (kbd "<123>") returns [\123]
>> 
>> I was momentarily confused, but that's the symbol with a name "123",
>> which means that kbd thinks that's a fine symbolic key name.  (This may
>> be an error, though.)
>> 
>> (equal [\123] [123])
>> => nil
>
> Why does kbd generate the leading backslash, though?

`kbd` doesn't.  It's the printer which adds the backslash in front of
symbols whose first char is a number.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]