all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Thomas <sthomas314@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: M-x shell, run 'emacs --help', get colorized output... why?
Date: Fri, 21 Jan 2011 17:48:02 -0800	[thread overview]
Message-ID: <AANLkTimk0_Cu+61_JcN7R9DuT+3gpfJf_USSB99Vs92W@mail.gmail.com> (raw)
In-Reply-To: <AANLkTik4nM7dg0LWP3RuMG5wynZ2Tt2Q=e3Q8v_8TU7M@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

It turns out shell.el is deliberately doing this, as I expected. The regexps
they use for the matching are in shell-font-lock-keywords. They don't work
that well (e.g. matching "--whatever" in the middle of a line, but not at
the beginning) and I find the colors distracting, so I just disabled the
coloring with (setq shell-font-lock-keywords nil).

On Sun, Jan 16, 2011 at 6:11 PM, Steven Thomas <sthomas314@gmail.com> 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.
>

[-- Attachment #2: Type: text/html, Size: 1255 bytes --]

  parent reply	other threads:[~2011-01-22  1:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-17  2:11 M-x shell, run 'emacs --help', get colorized output... why? Steven Thomas
2011-01-18  9:20 ` Oleksandr Gavenko
2011-01-22  1:48 ` Steven Thomas [this message]
2011-02-06 20:59   ` PJ Weisberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimk0_Cu+61_JcN7R9DuT+3gpfJf_USSB99Vs92W@mail.gmail.com \
    --to=sthomas314@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.