From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41766: Make it possible to change regexp to identify and highlight grep matches via customization Date: Thu, 11 Jun 2020 02:10:53 +0300 Organization: LINKOV.NET Message-ID: <87pna6ldoi.fsf@mail.linkov.net> References: <87h7vkihci.fsf@tcd.ie> <833674710g.fsf@gnu.org> <87bllqoag3.fsf@mail.linkov.net> <85a777f6-cf5e-9a05-7156-35a295713b89@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="86738"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: "Basil L. Contovounesios" , "41766@debbugs.gnu.org" <41766@debbugs.gnu.org>, Simon Lang To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 11 01:22:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjA2u-000MTH-Pd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 01:22:12 +0200 Original-Received: from localhost ([::1]:55734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjA2t-0001w4-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jun 2020 19:22:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjA1m-0000l1-T2 for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2020 19:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjA1m-00060K-Ik for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2020 19:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjA1m-000113-Fq for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2020 19:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jun 2020 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41766 X-GNU-PR-Package: emacs Original-Received: via spool by 41766-submit@debbugs.gnu.org id=B41766.15918312513842 (code B ref 41766); Wed, 10 Jun 2020 23:21:02 +0000 Original-Received: (at 41766) by debbugs.gnu.org; 10 Jun 2020 23:20:51 +0000 Original-Received: from localhost ([127.0.0.1]:35602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjA1a-0000zu-U9 for submit@debbugs.gnu.org; Wed, 10 Jun 2020 19:20:51 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:40253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjA1Y-0000zV-Tp for 41766@debbugs.gnu.org; Wed, 10 Jun 2020 19:20:49 -0400 Original-Received: from mail.gandi.net (m91-129-108-6.cust.tele2.ee [91.129.108.6]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 3F682100006; Wed, 10 Jun 2020 23:20:40 +0000 (UTC) In-Reply-To: <85a777f6-cf5e-9a05-7156-35a295713b89@yandex.ru> (Dmitry Gutov's message of "Thu, 11 Jun 2020 01:14:20 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181841 Archived-At: >> In the long run what should be customizable is not escape sequences, >> but a choice of the grep program with a list of such options: >> "GNU grep" >> "ripgrep" >> ... > > That could simply be done by adding :tag to each option value, right? Indeed, the same way as it's already used in (defcustom grep-find-use-xargs nil "How to invoke find and grep. If `exec', use `find -exec {} ;'. If `exec-plus' use `find -exec {} +'. If `gnu', use `find -print0' and `xargs -0'. If `gnu-sort', use `find -print0', `sort -z' and `xargs -0'. Any other value means to use `find -print' and `xargs'. This variable's value takes effect when `grep-compute-defaults' is called." :type '(choice (const :tag "find -exec {} ;" exec) (const :tag "find -exec {} +" exec-plus) (const :tag "find -print0 | xargs -0" gnu) (const :tag "find -print0 | sort -z | xargs -0'" gnu-sort) string (const :tag "Not Set" nil)) :set #'grep-apply-setting :version "27.1")