From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: display-supports-face-attributes-p bug? Date: Thu, 09 Jun 2005 10:40:39 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118330412 29215 80.91.229.2 (9 Jun 2005 15:20:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2005 15:20:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 09 17:20:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgOfm-0001Wz-Ci for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 17:10:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgOmi-0000Iu-DA for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 11:17:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DgOgq-00041e-OC for emacs-devel@gnu.org; Thu, 09 Jun 2005 11:11:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DgOYM-0001QB-O4 for emacs-devel@gnu.org; Thu, 09 Jun 2005 11:02:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgOYD-0001Be-DO for emacs-devel@gnu.org; Thu, 09 Jun 2005 11:02:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DgODI-00022N-91 for emacs-devel@gnu.org; Thu, 09 Jun 2005 10:40:56 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DgOD1-0002Z3-VQ; Thu, 09 Jun 2005 10:40:40 -0400 Original-To: James Cloos In-reply-to: (message from James Cloos on Wed, 08 Jun 2005 14:16:44 -0400) 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:38441 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38441 The console supports the escape codes for half-brite and underline, but uses a different colour rather than different glyphs. When I do M-x list-faces-display, the output for `underline' seems to be identical to the default. Using: env TERM=xterm emacs -nw they both work as expected. When I try that, the underline face comes out as bold. I would guess that the difference in behavior is due to a difference in the terminfo specs. The terminfo specs for type `linux' may be erroneous. Could someone check that? However, given that Emacs can ask for the same result as "bold", it would probably be better for display-supports-face-attributes-p to honestly report that this terminal does not really support underlining. It should return nil for both `linux' and `xterm'. If we want to preserve the current behavior of the face `underline' for type `xterm' (and maybe extend it to type `linux'), it could specify bold for terminals that support bold but not underline.