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: Sat, 27 Sep 2003 14:18:05 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <7494-Sat27Sep2003141804+0300-eliz@elta.co.il> References: <200309211848.h8LImLn02488@raven.dms.auburn.edu> <2914-Mon22Sep2003184812+0300-eliz@elta.co.il> <7137-Wed24Sep2003203552+0300-eliz@elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1064661934 8399 80.91.224.253 (27 Sep 2003 11:25:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2003 11:25:34 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Sep 27 13:25:32 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 1A3DCe-00078W-00 for ; Sat, 27 Sep 2003 13:25:32 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3DCe-0001r8-00 for ; Sat, 27 Sep 2003 13:25:32 +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 1A3DC7-0001qR-30 for emacs-devel@quimby.gnus.org; Sat, 27 Sep 2003 07:24:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A3DA5-0001OM-Vr for emacs-devel@gnu.org; Sat, 27 Sep 2003 07:22:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A3DA1-0001Kx-Bm for emacs-devel@gnu.org; Sat, 27 Sep 2003 07:22:50 -0400 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3D9P-00010K-Gj; Sat, 27 Sep 2003 07:22:11 -0400 Original-Received: from zaretski ([80.230.149.110]) by gollum.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id BMV57160; Sat, 27 Sep 2003 14:20:55 +0300 (IDT) Original-To: rms@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 Thu, 25 Sep 2003 19:20:12 -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:16696 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16696 > From: Richard Stallman > Date: Thu, 25 Sep 2003 19:20:12 -0400 > X-PRIVAWALL-ID: 0002556710ac > X-OriginalArrivalTime: 26 Sep 2003 00:23:17.0468 (UTC) FILETIME=[61D4F1C0:01C383C4] > > > /* Canonicalize negative numbers to -1. */ > > if (mode < 0) > > mode = -1; > > I don't really object, but what problem would that solve? The value > of `mode' is not supposed to be negative unless it's -1. > > That's the point--a user could specify -2 or -1000. > It may as well do something predictable. The current code does something predictable as well: any number that is not a positive number of colors and not -1 means the same as zero, i.e. switch to the default number of colors, the one specified by the terminal's termcap/terminfo entry. (The code that does that is in tty_setup_colors.) Thus, emacs -nw --color=2000 and emacs -nw --color=-2000 produce the same result. What you suggest will change that. Do you think that negative arguments are ``special'' in the sense that they imply that the feature is to be turned off? (I should also add that the user is not supposed to use numbers as arguments to the --color option, except if she specifies the number of supported colors, like --colors=8 or --colors=256. That is, I never meant for them to say --colors=-1 or --colors=0, since the expected effect of --colors=0 might be to turn off the colors, which is not what happens. Similarly, --colors=-2000 was not something I expected users to say.)