From: Kenichi Handa <handa@m17n.org>
To: emacs-devel@gnu.org
Subject: raw-byte and char-table
Date: Tue, 24 Aug 2010 10:11:23 +0900 [thread overview]
Message-ID: <tl7pqx84xxg.fsf@m17n.org> (raw)
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)
But, this is not documented. Should we document it?
A display-table is a char-table. But, the current code uses
0xA0th element of a display-table for both U+00A0 and
raw-byte 0xA0. For instance, in get_next_display_element of
xdisp.c:
5744 if (it->dp
5745 && (dv = DISP_CHAR_VECTOR (it->dp, it->c),
5746 VECTORP (dv)))
Here, it->c may be 0xA0 comming from a unibyte buffer/string.
Should we change the above code and all other codes setting
0x80th..0xA0th elements of a display table?
---
Kenichi Handa
handa@m17n.org
next reply other threads:[~2010-08-24 1:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 1:11 Kenichi Handa [this message]
2010-08-24 3:06 ` raw-byte and char-table Eli Zaretskii
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=tl7pqx84xxg.fsf@m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.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).