GNU bug report logs - #20728
25.0.50; grep and grep-find templates should have a place holder for the --color argument

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Wed, 3 Jun 2015 23:44:01 UTC

Severity: normal

Found in version 25.0.50

Fixed in version 25.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #124 received at 20728 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 20728 <at> debbugs.gnu.org
Subject: Re: bug#20728: 25.0.50;
 grep and grep-find templates should have a place holder for the
 --color argument
Date: Sun, 28 Jun 2015 17:35:32 +0300
> Cc: 20728 <at> debbugs.gnu.org
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Sun, 28 Jun 2015 11:05:52 +0300
> 
> On 06/28/2015 05:42 AM, Eli Zaretskii wrote:
> 
> > Isn't it the other way around: Windows wants 'always' (except when it
> > doesn't, see below), while others want 'auto'?
> 
> When will `always' not work for the others?

I answered that below:

> > As to when you won't want 'always': it's when Grep is invoked as part
> > pf a pipeline, where it's not the last part, or when the Lisp program
> > that invokes it wants to interpret the results, as opposed to showing
> > them to the user.

> I'd want `nil' in that case, right?

In which case?  And what do you mean by 'nil' in this context?  We are
talking about the value of the --color= Grep option, don't we?

> And I'd have to specify it explicitly anyway, if I want
> compatibility with Windows.

You lost me.

> So, why do we use `auto'?

My guess would be: because it mostly does what we want, AUTOmatically:
it produces SGR color sequences when Grep is run as a subprocess via a
pty, and does not produce them when Grep's output is a pipe.




This bug report was last modified 10 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.