From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Thomas Newsgroups: gmane.emacs.help Subject: M-x shell, run 'emacs --help', get colorized output... why? Date: Sun, 16 Jan 2011 18:11:04 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e65a07f0d91380049a014bd8 X-Trace: dough.gmane.org 1295279320 9893 80.91.229.12 (17 Jan 2011 15:48:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2011 15:48:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 17 16:48:36 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 1PerJr-0004Gu-7S for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2011 16:48:35 +0100 Original-Received: from localhost ([127.0.0.1]:34660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeqxZ-0000CR-JU for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2011 10:25:33 -0500 Original-Received: from [140.186.70.92] (port=33439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeeYm-0007i1-QZ for help-gnu-emacs@gnu.org; Sun, 16 Jan 2011 21:11:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeeYk-0004vT-Ic for help-gnu-emacs@gnu.org; Sun, 16 Jan 2011 21:11:07 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:52392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeeYk-0004vG-D9 for help-gnu-emacs@gnu.org; Sun, 16 Jan 2011 21:11:06 -0500 Original-Received: by wyj26 with SMTP id 26so4752413wyj.0 for ; Sun, 16 Jan 2011 18:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ScaaJVND26mmjYKTiYvwQGOM/oxkq0FrfCPXbnAKEXQ=; b=SVlusd59Pr+YbasIh3uo1wSCj4JHny/W7qxbnK4iF0JakLcvmC/EPYUJxwLNEKJlMq Zayu4POw/x0asR69br45OQpmmTLkhUfHxQV3zyWWV/ahFNlL9cvApCmYO5M6jpeP+AQ6 DJsUpLKGq+gWTew8TfjvyLa/HX2tVHXEWzUaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Nc/KWHd5tl2PeV7RfpWzxIn1U4h0KiEakdKvzSVTTo+PhxAZwh/0s+XfdBp74JDB54 771vLinpaBJGax8jnbP2ou2Sr6R9jpJ2X4kuawSD4pKxZ3WPkXiXfmI//TVa+pt9UjPt 1jq76+uCHKkf0ETfbU+ZTRlpwcXjXWycuL7fI= Original-Received: by 10.216.157.68 with SMTP id n46mr1884086wek.111.1295230265004; Sun, 16 Jan 2011 18:11:05 -0800 (PST) Original-Received: by 10.216.90.207 with HTTP; Sun, 16 Jan 2011 18:11:04 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 17 Jan 2011 10:24:37 -0500 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 Xref: news.gmane.org gmane.emacs.help:78511 Archived-At: --0016e65a07f0d91380049a014bd8 Content-Type: text/plain; charset=ISO-8859-1 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. --0016e65a07f0d91380049a014bd8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 - o= r -- get colorized. You can see this if you run emacs --help. I don't s= ee this goofy colorization in term mode or eshell mode.

Can anyone explain what the deal is? A cursory look at the c= ode in shell.el didn't reveal anything, but I'm sure that somewhere= emacs must be deciding to add colors to the output.
--0016e65a07f0d91380049a014bd8--