From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: raw-byte and char-table Date: Tue, 24 Aug 2010 06:06:11 +0300 Message-ID: <83eidoogkc.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1282619060 31931 80.91.229.12 (24 Aug 2010 03:04:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 03:04:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 24 05:04:19 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Onjo9-0001tj-TG for ged-emacs-devel@m.gmane.org; Tue, 24 Aug 2010 05:04:18 +0200 Original-Received: from localhost ([127.0.0.1]:34539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onjo9-0004Yr-Fv for ged-emacs-devel@m.gmane.org; Mon, 23 Aug 2010 23:04:17 -0400 Original-Received: from [140.186.70.92] (port=40845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onjo3-0004Yl-Fm for emacs-devel@gnu.org; Mon, 23 Aug 2010 23:04:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Onjo2-0006O8-0r for emacs-devel@gnu.org; Mon, 23 Aug 2010 23:04:11 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38975) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onjo1-0006Nq-Qf for emacs-devel@gnu.org; Mon, 23 Aug 2010 23:04:09 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L7M00C00Z4WR700@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 24 Aug 2010 06:04:06 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.192.23]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L7M00C1XZ6TBXF0@a-mtaout22.012.net.il>; Tue, 24 Aug 2010 06:04:06 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129104 Archived-At: > From: Kenichi Handa > 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.