From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: bug of display-table & make-glyph-code Date: Mon, 10 Sep 2007 11:43:32 +0900 Message-ID: References: <200708271732.22306.zslevin@gmail.com> <46DD9F41.8090700@gmx.at> <87bqch1nhz.fsf@kfs-lx.testafd.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1189395711 26791 80.91.229.12 (10 Sep 2007 03:41:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 03:41:51 +0000 (UTC) Cc: eliz@gnu.org, zslevin@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 13:41:38 2007 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.50) id 1IUgkJ-0000D6-F6 for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 12:44:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUZFv-0000RQ-Vu for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2007 22:44:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUZFm-0000Fq-Nk for emacs-devel@gnu.org; Sun, 09 Sep 2007 22:43:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUZFk-0000Cq-Le for emacs-devel@gnu.org; Sun, 09 Sep 2007 22:43:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUZFk-0000Cd-Gx for emacs-devel@gnu.org; Sun, 09 Sep 2007 22:43:56 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUZFW-0003LI-N2; Sun, 09 Sep 2007 22:43:45 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l8A2hXn0002798; Mon, 10 Sep 2007 11:43:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l8A2hWZr010100; Mon, 10 Sep 2007 11:43:32 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id l8A2hWci014979; Mon, 10 Sep 2007 11:43:32 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1IUZFM-0002ZR-4x; Mon, 10 Sep 2007 11:43:32 +0900 In-reply-to: (message from Richard Stallman on Sat, 08 Sep 2007 03:00:48 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.0 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Detected-Kernel: Solaris 8 (1) 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:78406 Archived-At: In article , Richard Stallman writes: > But, then, it seems that the design is broken (or got broken > because of introduction of multibyte characters). It grows > glyph-table one by one. So, at some point a glyph code is > simply a character code, but after several calls of > create-glyph, that same glyph code becomes an index into > glyph-table, and is displayed differently. > Those codes are meaningless as characters. They start at 256. > Meaningful Mule characters codes are much larger. The current problem is with emacs-unicode-2, and in it, 256 is a valid Unicode character codes for U+0100 (LATIN CAPITAL LETTER A WITH MACRON). > If you were to define thousands of glyph codes, you might get into the > range of meaningful Mule characters. Then indeed things would break. > So there is a bug, in that this could happen. But it is not the case > that all use of create-glyph is broken. > I am not sure whether create-glyph is very useful nowadays. > Maybe it is obsolete, due to Mule. Who still ses it > and why does he use it? I want to know that too. --- Kenichi Handa handa@m17n.org