[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Meta characters in strings
From: |
Stefan Monnier |
Subject: |
Re: Meta characters in strings |
Date: |
Sun, 30 Nov 2008 00:35:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> > Is this text from the ELisp manual still correct?
>> > Sometimes key sequences are represented as strings. When a string is
>> > a key sequence, string elements in the range 128 to 255 represent meta
>> > characters (which are large integers) rather than character
>> > codes in the range 128 to 255.
>>
>> Almost: it's only true if the string is unibyte.
> That's not what I see:
> (multibyte-char-to-unibyte ?\M-a)
> => wrong-type-argument characterp 134217825
Why do you think this is related to the text you quoted?
> What am I missing?
The text only talks about what happens if you do
(define-key map "\M-a" 'foo)
Note that "\M-a" is a unibyte string whose first byte is 225.
Stefan