From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: RE: cannot understand Elisp manual node Glyphs Date: Thu, 8 Feb 2007 08:38:38 -0800 (PST) Message-ID: <40881.128.165.123.18.1170952718.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1170952783 11963 80.91.229.12 (8 Feb 2007 16:39:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Feb 2007 16:39:43 +0000 (UTC) Cc: Emacs-Devel To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 08 17:39:36 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 1HFCJ0-0007qS-PG for ged-emacs-devel@m.gmane.org; Thu, 08 Feb 2007 17:39:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFCJ0-0006iL-8X for ged-emacs-devel@m.gmane.org; Thu, 08 Feb 2007 11:39:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HFCIG-0005rS-3x for emacs-devel@gnu.org; Thu, 08 Feb 2007 11:38:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HFCIC-0005ov-Px for emacs-devel@gnu.org; Thu, 08 Feb 2007 11:38:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFCIC-0005os-LH for emacs-devel@gnu.org; Thu, 08 Feb 2007 11:38:40 -0500 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HFCIC-0006cJ-5E for emacs-devel@gnu.org; Thu, 08 Feb 2007 11:38:40 -0500 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l18Gccdd017582 for ; Thu, 8 Feb 2007 09:38:39 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l18GccAe013666; Thu, 8 Feb 2007 09:38:38 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l18GccOI011031; Thu, 8 Feb 2007 09:38:38 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l18GccPv011028; Thu, 8 Feb 2007 08:38:38 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Thu, 8 Feb 2007 08:38:38 -0800 (PST) In-Reply-To: User-Agent: SquirrelMail/1.4.8-2.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 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:66124 Archived-At: >> For what it's worth, I offer >> (defun string-to-glyphs (str &optional face) >> "Return a glyph vector representing string STR with face FACE." >> (vconcat (mapcar (lambda (c) (make-glyph-with-face c face)) str))) > > Just what I was going to do. But I agree that we might as well have such a > function. > (However, the case where FACE is nil needs to be treated also.) I did handle that case; see my modified version of Kim's make-glyph-with-face function which I included in the same message. Of course, since then he's made an equivalent modification, renamed the function, and packaged the whole thing as a manual and code patch. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.