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: Fri, 07 Sep 2007 14:11:35 +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 X-Trace: sea.gmane.org 1189141958 31509 80.91.229.12 (7 Sep 2007 05:12:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 05:12:38 +0000 (UTC) Cc: rgm@gnu.org, zslevin@gmail.com, rms@gnu.org, rudalics@gmx.at, emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 07:12:37 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 1ITW8s-00062w-TL for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 07:12:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITW8q-00037u-EE for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 01:12:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITW8m-00034W-4s for emacs-devel@gnu.org; Fri, 07 Sep 2007 01:12:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITW8j-0002y3-4Y for emacs-devel@gnu.org; Fri, 07 Sep 2007 01:12:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITW8i-0002xh-TJ for emacs-devel@gnu.org; Fri, 07 Sep 2007 01:12:20 -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 1ITW8Z-0001oD-7n; Fri, 07 Sep 2007 01:12:12 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id l875BnEE017854; Fri, 7 Sep 2007 14:11:49 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id l875BnZB007653; Fri, 7 Sep 2007 14:11:49 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id l875BZ1l015243; Fri, 7 Sep 2007 14:11:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1ITW7z-0004de-2Q; Fri, 07 Sep 2007 14:11:35 +0900 Sent-via: storm@cua.dk (Kim F. Storm) Sent-via: rms@gnu.org, rgm@gnu.org, emacs-devel@gnu.org, zslevin@gmail.com, rudalics@gmx.at In-reply-to: <87bqch1nhz.fsf@kfs-lx.testafd.dk> (storm@cua.dk) 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:78073 Archived-At: In article <87bqch1nhz.fsf@kfs-lx.testafd.dk>, storm@cua.dk (Kim F. Storm) writes: > Richard Stallman writes: > > > Can someone reproduce the OP's behavior with Emacs 22 ? > > > > Neither with Emacs 22 nor the current CVS trunk. > > > > If we cannot make it fail, we can cross it off the list. > > Would you please? > The problem is related to the way we encode face numbers in > glyph codes (as an integer). > The number of bits left over in a glyph code for the face number > is vastly reduced on the unicode-2 branch, so as soon as we > merge that to the trunk, the problem will certainly be > visible on trunk. > The solution is to find some other way to merge a face with a > char-code to make a glyph code. We have discussed this some > time ago. > One suggestion was to use a cons (CHAR . FACE_ID). I started to study the glyph related codes, and ran into the function create-glyph (disp-table.el). It is a strange function,q and I don't understand how to utilize it. Could someone please explain it? --- Kenichi Handa handa@m17n.org