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: Mon, 29 Jun 2015 18:15:19 +0300 Message-ID: <83wpym4kc8.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> <83381b7vez.fsf@gnu.org> <559044BD.4030703@yandex.ru> <83fv5b60j0.fsf@gnu.org> <55911873.2050403@yandex.ru> <837fqm60bh.fsf@gnu.org> <55915B3A.5070406@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435590986 20909 80.91.229.3 (29 Jun 2015 15:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 15:16:26 +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 Mon Jun 29 17:16:16 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 1Z9an9-0004fB-TV for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 17:16:16 +0200 Original-Received: from localhost ([::1]:42700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9an9-0002vX-Aq for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 11:16:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9an2-0002pb-Eh for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 11:16:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9amx-000494-BA for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 11:16:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9amx-00048o-3e for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 11:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9amw-000879-GA for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 11:16: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: Mon, 29 Jun 2015 15:16: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.143559095831177 (code B ref 20728); Mon, 29 Jun 2015 15:16:02 +0000 Original-Received: (at 20728) by debbugs.gnu.org; 29 Jun 2015 15:15:58 +0000 Original-Received: from localhost ([127.0.0.1]:33110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9amr-00086m-QE for submit@debbugs.gnu.org; Mon, 29 Jun 2015 11:15:58 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63607) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9amo-00086X-IA for 20728@debbugs.gnu.org; Mon, 29 Jun 2015 11:15:55 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NQP00300OV4DF00@a-mtaout22.012.net.il> for 20728@debbugs.gnu.org; Mon, 29 Jun 2015 18:15:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQP003QXP1G2I70@a-mtaout22.012.net.il>; Mon, 29 Jun 2015 18:15:17 +0300 (IDT) In-reply-to: <55915B3A.5070406@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:104493 Archived-At: > Cc: 20728@debbugs.gnu.org > From: Dmitry Gutov > Date: Mon, 29 Jun 2015 17:50:34 +0300 > > On 06/29/2015 05:44 PM, Eli Zaretskii wrote: > > >> This doesn't answer my question, by the way. Would you like me to try to > >> rephrase it? > > > > Do you still want to see it answered? > > I'm assuming this is a rhetoric question. I assumed so was yours. > So: the value `auto' behaves as `nil' on Windows, so it's unreliable if > a given command supports highlighting of the matches. No, 'auto' does NOT behave as 'nil' on Windows, not in general. It only behaves as 'nil' when Grep is invoked as an async subprocess, because Windows uses pipes, not ptys, to do that. Any system where 'process-connection-type' is 'nil' will exhibit this behavior. Moreover, even on systems that do support ptys, Emacs will use pipes if "all ptys are busy" (citing the ELisp manual). > Why don't we write each command's implementation as if we're targeting > Windows? That would mean never using the value `auto', and yes, > explicitly binding grep-highlight-matches to nil in every command that > doesn't want `always'. We could, I just don't know if we want to. But I don't object to such a change.