From: Eli Zaretskii <eliz@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: raw-byte and char-table
Date: Tue, 24 Aug 2010 06:06:11 +0300 [thread overview]
Message-ID: <83eidoogkc.fsf@gnu.org> (raw)
In-Reply-To: <tl7pqx84xxg.fsf@m17n.org>
> From: Kenichi Handa <handa@m17n.org>
> 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.
next prev parent reply other threads:[~2010-08-24 3:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 1:11 raw-byte and char-table Kenichi Handa
2010-08-24 3:06 ` Eli Zaretskii [this message]
2010-08-24 4:29 ` Kenichi Handa
2010-08-24 17:08 ` Eli Zaretskii
2010-08-25 4:05 ` Kenichi Handa
2010-08-26 0:01 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2010-08-26 2:58 MON KEY
2010-08-26 3:34 ` Kenichi Handa
2010-08-26 5:30 ` MON KEY
2010-08-26 6:48 ` Kenichi Handa
2010-08-26 7:09 ` Miles Bader
2010-08-27 3:30 ` MON KEY
2010-08-27 3:45 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83eidoogkc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).