From xemacs-m  Tue Mar  4 05:39:17 1997
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5])
	by xemacs.org (8.8.5/8.8.5) with SMTP id FAA16769
	for <xemacs-beta@xemacs.org>; Tue, 4 Mar 1997 05:39:16 -0600 (CST)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id DAA25571; Tue, 4 Mar 1997 03:38:41 -0800
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id DAA10655; Tue, 4 Mar 1997 03:38:38 -0800
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id DAA27854; Tue, 4 Mar 1997 03:38:38 -0800
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id DAA08586; Tue, 4 Mar 1997 03:38:34 -0800
Date: Tue, 4 Mar 1997 03:38:34 -0800
Message-Id: <199703041138.DAA08586@xemacs.eng.sun.com>
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Tore Olsen <toreo@colargol.idb.hist.no>
Cc: xemacs-beta@xemacs.org
Subject: Re: X-resource .bold-italic.attributeFont anyone?
In-Reply-To: <yngrahw3pe7.fsf@colargol.idb.hist.no>
References: <yngiv38dha3.fsf@colargol.idb.hist.no>
	<199703040111.RAA07332@xemacs.eng.sun.com>
	<yngrahw3pe7.fsf@colargol.idb.hist.no>
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII

>>>>> "Tore" == Tore Olsen <toreo@colargol.idb.hist.no> writes:

>> ;; similar for bold-italic.
>> (unless (face-differs-from-default-p 'bold-italic device)
>> (make-face-bold-italic 'bold-italic device)
>> ;; if we couldn't get a bold-italic version, try just bold.
>> (unless (face-differs-from-default-p 'bold-italic device)
>> (make-face-bold-italic 'bold-italic device)
Tore>                    ^^^^^^^^^^^

Tore> Shouldn't this be (make-face-bold 'bold-italic device) then, according
Tore> to the comments?

Doh.  Well done.  Why didn't I see that?  At least I didn't introduce it
- this one's been there a while.

Patch for Steve:

*** /tmp/geta16587	Tue Mar  4 03:35:45 1997
--- faces.el	Tue Mar  4 03:35:41 1997
***************
*** 1234,1240 ****
      (make-face-bold-italic 'bold-italic device)
      ;; if we couldn't get a bold-italic version, try just bold.
      (unless (face-differs-from-default-p 'bold-italic device)
!       (make-face-bold-italic 'bold-italic device)
        ;; if we couldn't get bold or bold-italic, then that's probably because
        ;; the default font is bold, so make the `bold-italic' face be unbold.
        (unless (face-differs-from-default-p 'bold-italic device)
--- 1234,1240 ----
      (make-face-bold-italic 'bold-italic device)
      ;; if we couldn't get a bold-italic version, try just bold.
      (unless (face-differs-from-default-p 'bold-italic device)
!       (make-face-bold 'bold-italic device)
        ;; if we couldn't get bold or bold-italic, then that's probably because
        ;; the default font is bold, so make the `bold-italic' face be unbold.
        (unless (face-differs-from-default-p 'bold-italic device)


>> Check if different specifications in $HOME/Emacs for bold-italic *do*
>> take effect.

Tore> I don't understand this. Could you try to explain, please?

You should be able to specify a *color* for bold-italic like this:

Emacs.bold-italic.attributeForeground:  HotPink

to foil the (face-differs-from-default-p) test.

Martin

