From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov 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: Thu, 4 Jun 2015 18:18:55 +0300 Message-ID: <55706C5F.6070903@yandex.ru> References: <86bngws6il.fsf@yandex.ru> <83eglsqjkr.fsf@gnu.org> <5570132A.9060109@yandex.ru> <838ubzqzz5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433431237 29509 80.91.229.3 (4 Jun 2015 15:20:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 15:20:37 +0000 (UTC) Cc: 20728@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 04 17:20:23 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 1Z0WwI-00034L-Id for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 17:20:14 +0200 Original-Received: from localhost ([::1]:42890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0WwH-0000UV-TV for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 11:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0WwE-0000UL-1Z for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 11:20:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Ww9-0006Sw-SC for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 11:20:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Ww9-0006Rf-Pl for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 11:20:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0Ww8-0000x2-VP for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 11:20:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jun 2015 15:20:04 +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.14334311453584 (code B ref 20728); Thu, 04 Jun 2015 15:20:04 +0000 Original-Received: (at 20728) by debbugs.gnu.org; 4 Jun 2015 15:19:05 +0000 Original-Received: from localhost ([127.0.0.1]:40682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0WvB-0000vk-DG for submit@debbugs.gnu.org; Thu, 04 Jun 2015 11:19:05 -0400 Original-Received: from mail-wi0-f176.google.com ([209.85.212.176]:35998) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0Wv8-0000v8-VJ for 20728@debbugs.gnu.org; Thu, 04 Jun 2015 11:19:03 -0400 Original-Received: by wibdq8 with SMTP id dq8so128451322wib.1 for <20728@debbugs.gnu.org>; Thu, 04 Jun 2015 08:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=9k4FhgPecO5xPCWMFzk8Df/uUa53y+0tI6aOIWCKLnw=; b=pbtlYuLy0yAmaXMUXYz3SdBRytQrbb9mOceBNP2Is9G9d+mJuZYUyTpWR0lEWj2JHE tmsJY+XiX/I1BNljjpfEKkrHOiIuKxwtw43A4MXfSIT0SOTiSmGTwSeQokXRUkpjF94Z 3Wk4HuDUihRXV4gPxDWs3WBisk2v+smu5zFvxLo2l5C/ZtrRLJGv2ISaFA7y2u2vdvcI wYyWHuO0D1tFp+Lr8O/hsPzksimNbmyXmYtA8lCXdHqbJAF8CUhwaHuUSkW+iaB9Fnwl aIHLyBIW7mG5nSp/jpqTDUgoSZc6RwCl59bvsoptdqzPLYUqz5B1rfPB093tVa6DSGLp VO1w== X-Received: by 10.194.133.73 with SMTP id pa9mr73033625wjb.148.1433431137360; Thu, 04 Jun 2015 08:18:57 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id ew10sm31700390wic.22.2015.06.04.08.18.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 08:18:57 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <838ubzqzz5.fsf@gnu.org> 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:103563 Archived-At: On 06/04/2015 06:01 PM, Eli Zaretskii wrote: > Why not allow users of grep.el bind grep-highlight-matches to > whatever, including nil, and make grep.el obey that? That would be the effect. rgrep (and zrgrep) call grep-expand-template to create the command to invoke. > Using a template > for such a simple job sounds like over-engineering to me. I can > understand why the template is used in find-grep and related commands: > the 'find' or 'xargs' command line is somewhat tricky. find-grep is what this issue is about. > But there's no > such problem with 'grep', so I'm unsure why we want to use a template > there, let alone have a placeholder for that switch in the template. The behavior of M-x grep is beyond my concern. But how would you implement automatic support for that variable in it, if not using a template?