From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: composing faces Date: Fri, 17 Nov 2006 14:16:43 -0600 Message-ID: References: <87zmapdh6w.fsf@pereiro.luannocracy.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============2002123268==" X-Trace: sea.gmane.org 1163794646 1570 80.91.229.2 (17 Nov 2006 20:17:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2006 20:17:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 17 21:17:21 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 1GlA9C-0004U3-R3 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2006 21:17:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlA9C-0005Y5-76 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2006 15:17:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlA8w-0005Xc-U1 for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 15:16:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlA8u-0005Wq-Kx for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 15:16:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlA8u-0005Wn-Fe for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 15:16:56 -0500 Original-Received: from [64.192.143.210] (helo=easeserver.easesoftware.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GlA8u-0007TA-5Q for help-gnu-emacs@gnu.org; Fri, 17 Nov 2006 15:16:56 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by easeserver.easesoftware.com (Postfix) with ESMTP id 6F88C52641B; Fri, 17 Nov 2006 14:16:48 -0600 (CST) Original-Received: from easeserver.easesoftware.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03255-02; Fri, 17 Nov 2006 14:16:44 -0600 (CST) Original-Received: from [64.192.143.210] (easeserver.easesoftware.com [64.192.143.210]) by easeserver.easesoftware.com (Postfix) with ESMTP id C91F95263EF; Fri, 17 Nov 2006 14:16:44 -0600 (CST) In-Reply-To: <87zmapdh6w.fsf@pereiro.luannocracy.com> Original-To: David Abrahams X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new at easesoftware.net 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:38781 Archived-At: --===============2002123268== Content-Type: multipart/alternative; boundary=Apple-Mail-29-803810147 --Apple-Mail-29-803810147 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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) HTH, Perry Smith ( pedz@easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems --Apple-Mail-29-803810147 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
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?=A0 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)


HTH,
Perry Smith = (=A0pedz@easesoftware.com = )
Ease Software, Inc. (=A0http://www.easesoftware.com = )

Low = cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems

=

= --Apple-Mail-29-803810147-- --===============2002123268== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============2002123268==--