From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: cannot understand Elisp manual node Glyphs Date: Wed, 7 Feb 2007 06:54:55 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1170860213 7339 80.91.229.12 (7 Feb 2007 14:56:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2007 14:56:53 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 07 15:56:43 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 1HEoDy-0007vs-I5 for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2007 15:56:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEoDx-00036H-WB for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2007 09:56:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HEoDo-00036C-JE for emacs-devel@gnu.org; Wed, 07 Feb 2007 09:56:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HEoDm-00035P-Mk for emacs-devel@gnu.org; Wed, 07 Feb 2007 09:56:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEoDm-00035M-Hv for emacs-devel@gnu.org; Wed, 07 Feb 2007 09:56:30 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HEoDl-0007n6-SV for emacs-devel@gnu.org; Wed, 07 Feb 2007 09:56:30 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l17Eu474031899 for ; Wed, 7 Feb 2007 08:56:05 -0600 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l17DOr5R015178 for ; Wed, 7 Feb 2007 07:56:04 -0700 Original-Received: from dhcp-amer-csvpn-gw1-141-144-65-20.vpn.oracle.com by rcsmt251.oracle.com with ESMTP id 2428673581170860104; Wed, 07 Feb 2007 07:55:04 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: Importance: Normal X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 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:66064 Archived-At: > > It seems to say that the glyphs that I am using, and should be > > using, have "simple glyph codes". It does not say what a glyph > > "code" is, BTW. > > > > It also says that a simple glyph code specifies both a > > character and a face. The character is the code mod 524288; the > > face number is the code / 524288. > > I also find this part highly dubious - mainly by exposing internal > representation details. > > > So how do I use that information, to apply a face to my vector > > of glyphs? Maybe that's not the right way to say it. How can I > > have the glyph vector that I use to display ^L appear in a > > particular face? > > These functions are handy: ... > > There seems to be a wide gulf between the kind of info that is > > available in this node (glyph codes, face numbers) and practical > > use of that information. > > I imagine that I'm not too far from my quest, but I haven't a > > clue where to head. Thanks for those functions Kim. I'll take a look. Offhand, I'm still not sure how to do what I want. How can I set a character in the display table to be displayed with a vector of glyphs that have a given face? Do I create a propertized string, convert it to a vector, and use that as the glyph vector, or what? > I know this is not "the right time", but IMO adding these functions > could significantly improve both code and documentation. I think so too. > I guess we wouldn't even need to describe what face numbers are > (actually, we don't -- there's no index entry for it). > > So my proposal is to add thosed functions, to: > > a) simplify the documentation (and code) > b) hide the technical details of glyph faces, and > c) allow us to change the implementation later without breaking code: Sounds good to me.