From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: M-x shell, run 'emacs --help', get colorized output... why? Date: Tue, 18 Jan 2011 11:20:33 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295342494 32412 80.91.229.12 (18 Jan 2011 09:21:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2011 09:21:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 18 10:21:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pf7kk-0000Xl-7K for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jan 2011 10:21:26 +0100 Original-Received: from localhost ([127.0.0.1]:60916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pf7kj-0002QF-EN for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jan 2011 04:21:25 -0500 Original-Received: from [140.186.70.92] (port=54683 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pf7k9-0002Q9-Uf for help-gnu-emacs@gnu.org; Tue, 18 Jan 2011 04:20:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pf7k8-0007cy-SA for help-gnu-emacs@gnu.org; Tue, 18 Jan 2011 04:20:49 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:49949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pf7k8-0007cr-Ml for help-gnu-emacs@gnu.org; Tue, 18 Jan 2011 04:20:48 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pf7k5-00005N-U9 for help-gnu-emacs@gnu.org; Tue, 18 Jan 2011 10:20:45 +0100 Original-Received: from 91.193.68.214 ([91.193.68.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jan 2011 10:20:45 +0100 Original-Received: from gavenko by 91.193.68.214 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jan 2011 10:20:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91.193.68.214 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Spam-Report: 5.4 points; * -0.0 SPF_PASS SPF: sender matches SPF record * 4.0 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 4.0 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL * [91.193.68.214 listed in zen.spamhaus.org] Xref: news.gmane.org gmane.emacs.help:78529 Archived-At: On 17.01.2011 4:11, Steven Thomas wrote: > I notice that emacs shell-mode colorizes certain strings in the output > of a command you run. For example most (though not all) words starting > with - or -- get colorized. You can see this if you run emacs --help. I > don't see this goofy colorization in term mode or eshell mode. > > Can anyone explain what the deal is? A cursory look at the code in > shell.el didn't reveal anything, but I'm sure that somewhere emacs must > be deciding to add colors to the output. term-mode and eshell-mode are mush different from shell-mode. I can not help you. Its settings are non common. I also use (ansi-color-for-comint-mode-on) for 'shell-mode'. This allow correctly see 'ls --color' or 'grep --color' output.