From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <83381b7vez.fsf@gnu.org> References: <86bngws6il.fsf@yandex.ru> <83zj4fpjof.fsf@gnu.org> <557082F7.8020400@yandex.ru> <83wpzjpf6o.fsf@gnu.org> <55708EEA.6020400@yandex.ru> <83twunp9bf.fsf@gnu.org> <5570B30F.4090503@yandex.ru> <83oakuprpf.fsf@gnu.org> <55715DE3.6000405@yandex.ru> <83h9qmpm2s.fsf@gnu.org> <557166CE.4050906@yandex.ru> <83d21apkyg.fsf@gnu.org> <55717030.6010005@yandex.ru> <87a8wdhka7.fsf@mail.linkov.net> <5572C936.6070505@yandex.ru> <874mmkfq7q.fsf@mail.linkov.net> <5574C427.3070007@yandex.ru> <87fv608nl8.fsf@mail.linkov.net> <55787A1D.9080601@yandex.ru> <87wpzbaztk.fsf@mail.linkov.net> <55793756.9070505@yandex.ru> <87a8w53k8z.fsf@mail.linkov.net> <558F1186.50303@yandex.ru> <834mls7dvr.fsf@gnu.org> <558FAAE0.6020805@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435502183 9746 80.91.229.3 (28 Jun 2015 14:36:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 14:36:23 +0000 (UTC) Cc: 20728@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 16:36:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9Dgq-0002f0-TO for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 16:36:13 +0200 Original-Received: from localhost ([::1]:39134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dgq-0007FE-5x for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 10:36:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dgm-0007F8-F2 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9Dgh-0003vH-8d for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:36:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dgh-0003vD-4W for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9Dgg-0000ed-FY for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2015 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20728 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20728-submit@debbugs.gnu.org id=B20728.14355021432486 (code B ref 20728); Sun, 28 Jun 2015 14:36:02 +0000 Original-Received: (at 20728) by debbugs.gnu.org; 28 Jun 2015 14:35:43 +0000 Original-Received: from localhost ([127.0.0.1]:60498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9DgM-0000e1-64 for submit@debbugs.gnu.org; Sun, 28 Jun 2015 10:35:42 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:47911) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9DgI-0000dj-SL for 20728@debbugs.gnu.org; Sun, 28 Jun 2015 10:35:40 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NQN00A00RY4ZR00@mtaout24.012.net.il> for 20728@debbugs.gnu.org; Sun, 28 Jun 2015 17:26:57 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQN00P9CS4W1HC0@mtaout24.012.net.il>; Sun, 28 Jun 2015 17:26:57 +0300 (IDT) In-reply-to: <558FAAE0.6020805@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104433 Archived-At: > Cc: 20728@debbugs.gnu.org > From: Dmitry Gutov > 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.