From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: Make button face appear magenta on a Linux console Date: Mon, 23 Apr 2007 15:37:59 +0200 Message-ID: References: <17963.10249.442685.981345@farnswood.snap.net.nz> <17963.18329.45718.917935@farnswood.snap.net.nz> <17963.52196.25461.484909@farnswood.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1177335592 7558 80.91.229.12 (23 Apr 2007 13:39:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 13:39:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 15:39:46 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 1Hfylc-0008Or-Hz for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 15:39:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hfyr1-0001ud-9B for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 09:45:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hfyqx-0001uO-EJ for emacs-devel@gnu.org; Mon, 23 Apr 2007 09:45:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hfyqw-0001tC-Ii for emacs-devel@gnu.org; Mon, 23 Apr 2007 09:45:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hfyqw-0001su-Cq for emacs-devel@gnu.org; Mon, 23 Apr 2007 09:45:14 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HfylX-0008FR-02 for emacs-devel@gnu.org; Mon, 23 Apr 2007 09:39:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hfykw-0002L3-9T for emacs-devel@gnu.org; Mon, 23 Apr 2007 15:39:02 +0200 Original-Received: from gamma02.me.chalmers.se ([129.16.50.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Apr 2007 15:39:02 +0200 Original-Received: from bojohan+news by gamma02.me.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Apr 2007 15:39:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gamma02.me.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:aVruip7V6YUJgpdmx3NaqSbA7fo= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:69851 Archived-At: Eli Zaretskii writes: > What we need is a way to form conditionals inside defface forms that > look at display capabilities, so that we could, for example, define > an alternative for the underline attribute on displays that don't > support underline. You mean like (info "(elisp)Defining Faces") `supports' Whether or not the frame can display the face attributes given in VALUE... (*note Face Attributes::). See the documentation for the function `display-supports-face-attributes-p' for more information on exactly how this testing is done. *Note Display Face Attribute Testing::. ? The `underline' face is defined like this in faces.el (defface underline '((((supports :underline t)) :underline t) (((supports :weight bold)) :weight bold) (t :underline t)) "Basic underlined face." :group 'basic-faces) And on my console the `underline' face is indeed bold. -- Johan Bockgård