From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: apply multiple faces using propertize Date: Sat, 04 Sep 2010 14:15:27 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291953770 2464 80.91.229.12 (10 Dec 2010 04:02:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:02:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 05:02:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQuBp-0006tT-5F for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 05:02:37 +0100 Original-Received: from localhost ([127.0.0.1]:48468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQuBo-00049R-Pi for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 23:02:36 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!news.mixmin.net!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 85.183.18.158 Original-X-Trace: quimby.gnus.org 1283602529 4345 85.183.18.158 (4 Sep 2010 12:15:29 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sat, 4 Sep 2010 12:15:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Original-Bytes: 1397 Original-Xref: usenet.stanford.edu gnu.emacs.help:181134 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:27 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77307 Archived-At: Stefan Monnier writes: >> Could some kind soul give me an example of stacking faces in elisp using >> "propertize" please e.g the system display will use the second face if >> the first is not defined? > > (propertize "foo" 'face '(face1 face2)) ? > > Stefan > Ah, very good thanks. In my case since the face name is dynamically generated it was of the form (propertize str 'face (list (genFace "base") (genFace "base" y)) 'gnus-face t) where genFace uses (intern) to convert a string name to its internal symbol. thanks a lot.