From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: bug of display-table & make-glyph-code Date: Wed, 05 Sep 2007 11:15:52 +0200 Message-ID: <87bqch1nhz.fsf@kfs-lx.testafd.dk> References: <200708271732.22306.zslevin@gmail.com> <46DD9F41.8090700@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188983781 825 80.91.229.12 (5 Sep 2007 09:16:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 09:16:21 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org, zslevin@gmail.com, rudalics@gmx.at To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 11:16:20 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 1ISqze-0003Yh-51 for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 11:16:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISqzc-0007J1-Gp for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 05:16:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISqzX-0007Iw-Nn for emacs-devel@gnu.org; Wed, 05 Sep 2007 05:16:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISqzW-0007Ik-IP for emacs-devel@gnu.org; Wed, 05 Sep 2007 05:16:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISqzW-0007Ih-Aj for emacs-devel@gnu.org; Wed, 05 Sep 2007 05:16:06 -0400 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ISqzV-0002QY-Ne for emacs-devel@gnu.org; Wed, 05 Sep 2007 05:16:06 -0400 Original-Received: (qmail 91357 invoked from network); 5 Sep 2007 09:15:54 -0000 Original-Received: from unknown (HELO kfs-lx.testafd.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 5 Sep 2007 09:15:54 -0000 In-Reply-To: (Richard Stallman's message of "Wed\, 05 Sep 2007 02\:16\:16 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: FreeBSD 4.6-4.9 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:77842 Archived-At: 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). Hiding such details was the main rationale for introducting the make-glyph-code function in 22.1 -- Kim F. Storm http://www.cua.dk