From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Make button face appear magenta on a Linux console Date: Mon, 23 Apr 2007 11:40:25 +0300 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1177317655 8539 80.91.229.12 (23 Apr 2007 08:40:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 08:40:55 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 10:40:48 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 1Hfu6J-0001nz-8q for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 10:40:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfuBf-0001qO-Pa for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 04:46:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfuBV-0001pI-L8 for emacs-devel@gnu.org; Mon, 23 Apr 2007 04:46:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HfuBT-0001oH-In for emacs-devel@gnu.org; Mon, 23 Apr 2007 04:46:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfuBT-0001nt-3h for emacs-devel@gnu.org; Mon, 23 Apr 2007 04:46:07 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hfu65-0008Le-3G for emacs-devel@gnu.org; Mon, 23 Apr 2007 04:40:33 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-148-102.inter.net.il [80.230.148.102]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GOW15082 (AUTH halo1); Mon, 23 Apr 2007 11:40:26 +0300 (IDT) In-reply-to: <17963.52196.25461.484909@farnswood.snap.net.nz> (message from Nick Roberts on Mon, 23 Apr 2007 08:56:04 +1200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:69840 Archived-At: > From: Nick Roberts > Date: Mon, 23 Apr 2007 08:56:04 +1200 > Cc: emacs-devel@gnu.org > > If I do "man ls" in the xterm without underlining, words that are meant to be > displayed with an underline are displayed with a magenta foreground (likewise > bold is displayed as blue). > > If a console can't do this, then presumably Emacs could by specifying the > button face as magenta. We lack infrastructure for such features. 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. What we have now allows to form conditionals on _some_ of the capabilities, in a patchy and ad-hoc way: we can ask about color and grayscale support, about the number of available distinct colors, and about the value of window-system, but that's it. (I hope it is clear that such changes are for after the release. As a matter of fact, even changing the default faces should not be done now.)