emacs-devel
[Top][All Lists]
Advanced

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

Re: raw-byte and char-table


From: Eli Zaretskii
Subject: Re: raw-byte and char-table
Date: Tue, 24 Aug 2010 06:06:11 +0300

> From: Kenichi Handa <address@hidden>
> Date: Tue, 24 Aug 2010 10:11:23 +0900
> 
> A char-table is a table indexed by a character code.  So,
> it's 0xA0th element is a value for a character U+00A0.
> Then, how to set/get a value for raw-byte 0xA0?  Currently,
> this is the way to do that:
> 
>   (aref CHAR-TABLE (unibyte-char-to-multibyte #xA0))
>   (aset CHAR-TABLE (unibyte-char-to-multibyte #xA0) VALUE)

One could also use the codepoint of the corresponding eight-bit
character directly, no?  I mean, unibyte-char-to-multibyte is just the
way of getting that codepoint, right?

> But, this is not documented.  Should we document it?

Yes, IMO.

> Should we change the above code and all other codes setting
> 0x80th..0xA0th elements of a display table?

Yes.  IMO, we should consistently use the codepoints of eight-bit
characters in all char-tables.



reply via email to

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