From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug of display-table & make-glyph-code Date: Mon, 10 Sep 2007 01:50:25 -0400 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 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189405454 13807 80.91.229.12 (10 Sep 2007 06:24:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 06:24:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 16:24:01 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 1IUjek-0000X9-Jd for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 15:50:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUcAO-000270-7P for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 01:50:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUcAK-00026k-1F for emacs-devel@gnu.org; Mon, 10 Sep 2007 01:50:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUcAH-00026S-12 for emacs-devel@gnu.org; Mon, 10 Sep 2007 01:50:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUcAG-00026O-SV for emacs-devel@gnu.org; Mon, 10 Sep 2007 01:50:28 -0400 Original-Received: from tomts13.bellnexxia.net ([209.226.175.34] helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUcAG-00078i-9t for emacs-devel@gnu.org; Mon, 10 Sep 2007 01:50:28 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070910055025.CXUX13659.tomts13-srv.bellnexxia.net@pastel.home> for ; Mon, 10 Sep 2007 01:50:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4695A8076; Mon, 10 Sep 2007 01:50:24 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Mon\, 10 Sep 2007 13\:15\:19 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) 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:78415 Archived-At: >> 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. >> I asked Handa if he could please work on this >> in unicode-2. > I'll work on it. > I think we anyway need some backward imcompatible change, > and require rewriting of old codes that utilize glyph-table. > And, if so, it seems that deleting glyph-table (and > create-glyph) is the easiet solution. > Shall I go ahead along that line? Grepping Emacs's source code and Googling emacswiki shows the following uses of glyph-create: - in disp-table: standard-display-g1, standard-display-graphic, standard-display-underline. The last one is probably better off using make-glyph-code. I don't know how to mimck the other two using other features. But neither do I know why anybody would want to use those. It seems that using the utf-8 encoding in current xterms makes those hacks completely useless. `standard-display-g1' seems to only be used in obsolete/iso-swed.el (and maybe in W3). `standard-display-graphic' seems not to be used anywhere. - in some Gnus threading display hack which also would be better off using make-glyph-code (http://www.emacswiki.org/cgi-bin/emacs/GnusFormatting). So I think we can just drop this feature altogether. Stefan