From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: emacs -q -nw --color=never Date: Mon, 22 Sep 2003 18:48:13 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <2914-Mon22Sep2003184812+0300-eliz@elta.co.il> References: <200309211848.h8LImLn02488@raven.dms.auburn.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1064246304 30350 80.91.224.253 (22 Sep 2003 15:58:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2003 15:58:24 +0000 (UTC) Cc: teirllm@dms.auburn.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Sep 22 17:58:22 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1T4w-0004Y5-00 for ; Mon, 22 Sep 2003 17:58:22 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1TAo-0002mb-00 for ; Mon, 22 Sep 2003 18:04:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1T4j-0000yj-6u for emacs-devel@quimby.gnus.org; Mon, 22 Sep 2003 11:58:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A1T4V-0000xA-4j for emacs-devel@gnu.org; Mon, 22 Sep 2003 11:57:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A1SzS-0007LH-R6 for emacs-devel@gnu.org; Mon, 22 Sep 2003 11:52:43 -0400 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1SzR-0007KE-NL for emacs-devel@gnu.org; Mon, 22 Sep 2003 11:52:42 -0400 Original-Received: from zaretski (pns03-197-174.inter.net.il [80.230.197.174]) by legolas.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id AJG88094; Mon, 22 Sep 2003 18:51:58 +0300 (IDT) Original-To: emacs-devel@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Richard Stallman on Mon, 22 Sep 2003 05:05:10 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16553 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16553 > From: Richard Stallman > Date: Mon, 22 Sep 2003 05:05:10 -0400 > > It sounds like a bug to me. Judging from the manual, --color=never is > supposed to completely prevent Emacs from displaying colors, even if a > Lisp program specifies colors. That's true, although a Lisp program should never specify colors unless the display supports them; it should instead specify faces, and faces are computed based on color capabilities. But Info does work like this: it specifies faces, not explicit colors. > It would appear to be completely broken. Can you debug it? I did debug this a bit. AFAICS, this happens because this code in line 2130 of term.c: NATNUMP (color_mode) evaluates to zero (i.e. false) when the value of color_mode is -1. The value of -1 is correct: that's the association of `never' in tty-color-mode-alist, and set_tty_color_mode, where this code belongs, is called with its second argument `val' being the symbol `never'. Sorry, I don't have enough time to figure out why NATNUMP doesn't do what it was supposed to do here. FWIW, "cvs annotate" says that this code didn't change since when I first wrote it, so perhaps it's my original sin, although I'm quite sure I tested `never' at the time.