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: cannot understand Elisp manual node Glyphs Date: Mon, 5 Feb 2007 15:11:21 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1170717178 29376 80.91.229.12 (5 Feb 2007 23:12:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Feb 2007 23:12:58 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 06 00:12:51 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 1HED0z-0004lb-Ee for ged-emacs-devel@m.gmane.org; Tue, 06 Feb 2007 00:12:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HED0y-00024s-Ep for ged-emacs-devel@m.gmane.org; Mon, 05 Feb 2007 18:12:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HED0n-00024n-KO for emacs-devel@gnu.org; Mon, 05 Feb 2007 18:12:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HED0m-00024b-7n for emacs-devel@gnu.org; Mon, 05 Feb 2007 18:12:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HED0m-00024Y-46 for emacs-devel@gnu.org; Mon, 05 Feb 2007 18:12:36 -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 1HED0l-0006dp-Nl for emacs-devel@gnu.org; Mon, 05 Feb 2007 18:12:35 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l15NCXgP016613 for ; Mon, 5 Feb 2007 17:12:33 -0600 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l15IuGlN027796 for ; Mon, 5 Feb 2007 16:12:32 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by rcsmt250.oracle.com with ESMTP id 2424035921170717083; Mon, 05 Feb 2007 16:11:23 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 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:65972 Archived-At: I can't tell how much of this problem is me and how much is the text, but I don't understand this Elisp manual node. I use the following code, to display ^L using a vector of glyphs that says this: __________ Section (Printable Page) __________ (defcustom 1on1-^L-appearance-vector (vconcat (make-vector 10 ?_) " Section (Printable Page) " (make-vector 10 ?_)) "..." ...) (aset standard-display-table ?\014 1on1-^L-appearance-vector) That works fine. However, I'd like to also apply a face to the displayed glyphs. I figure that manual node Glyphs is trying to tell me, among other things, how to do that, but I can't figure it out. 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. 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? 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. Assistance appreciated. Perhaps we can improve the manual a bit in the process.