From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: composing faces Date: Fri, 17 Nov 2006 21:32:05 +0100 Organization: Organization?!? Message-ID: <85zmapak6y.fsf@lola.goethe.zz> References: <87zmapdh6w.fsf@pereiro.luannocracy.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1163796070 6290 80.91.229.2 (17 Nov 2006 20:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2006 20:41:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 17 21:41:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GlAWE-0000iU-UZ for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2006 21:41:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlAWE-00058d-Dp for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2006 15:41:02 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:Dsx9YDghpVksWHlOeQTEOI+as8s= Original-Lines: 22 Original-NNTP-Posting-Date: 17 Nov 2006 21:32:17 CET Original-NNTP-Posting-Host: 0be603c4.newsspool2.arcor-online.net Original-X-Trace: DXC=b^onSb^?S[LlU`@c^jLCbJA9EHlD; 3YcB4Fo<]lROoRAFl8W>\BH3YBYX0AjcoXncJCV`H8_`hhQD^9QSCVg3dOFlR6NaICB?FB Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:143167 Original-To: help-gnu-emacs@gnu.org 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:38784 Archived-At: Perry Smith writes: > On Nov 17, 2006, at 1:08 PM, David Abrahams wrote: > > > > Is there a way to define a new face that's exactly like some other > face, except for certain changes?  For example, I'd like to build a > face that's exactly font-lock-variable-name-face, except that it's > always italic. > > > (copy-face 'font-lock-variable-name-face 'my-new-face) > (set-face-attribute 'my-new-face nil :italic t) I think that one should get by without copying, using something like (defface my-new-face ((:default :inherit font-lock-variable-name-face :italic t))) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum