From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Simon Lang Newsgroups: gmane.emacs.bugs Subject: bug#41766: Make it possible to change regexp to identify and highlight grep matches via customization Date: Sun, 14 Jun 2020 10:12:03 +0100 Message-ID: <44423F99-0143-4F4E-A4FC-D29B922A48A2@yellowfrog.io> References: <0e6ad4aefa2743f1b0d6ba4315a9e91b@VI1PR10MB2800.EURPRD10.PROD.OUTLOOK.COM> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Basil L. Contovounesios" , "41766@debbugs.gnu.org" <41766@debbugs.gnu.org>, Simon Lang , Dmitry Gutov To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 14 13:27:17 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 1jkQnD-000XEV-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jun 2020 13:27:15 +0200 Original-Received: from localhost ([::1]:47948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkQnC-00055X-2m for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jun 2020 07:27:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkQn1-000536-2w for bug-gnu-emacs@gnu.org; Sun, 14 Jun 2020 07:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkQn0-0005fL-Q5 for bug-gnu-emacs@gnu.org; Sun, 14 Jun 2020 07:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkQn0-0007Ug-Mn for bug-gnu-emacs@gnu.org; Sun, 14 Jun 2020 07:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Lang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jun 2020 11:27: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.159213397728717 (code B ref 41766); Sun, 14 Jun 2020 11:27:02 +0000 Original-Received: (at 41766) by debbugs.gnu.org; 14 Jun 2020 11:26:17 +0000 Original-Received: from localhost ([127.0.0.1]:42993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkQmG-0007T5-R3 for submit@debbugs.gnu.org; Sun, 14 Jun 2020 07:26:17 -0400 Original-Received: from mout-p-101.mailbox.org ([80.241.56.151]:30330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkOgd-00047J-4G for 41766@debbugs.gnu.org; Sun, 14 Jun 2020 05:12:20 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 49l7yN5SZyzKmgx; Sun, 14 Jun 2020 11:12:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id 84I_QMkfjM5P; Sun, 14 Jun 2020 11:12:09 +0200 (CEST) In-Reply-To: <0e6ad4aefa2743f1b0d6ba4315a9e91b@VI1PR10MB2800.EURPRD10.PROD.OUTLOOK.COM> X-Rspamd-Queue-Id: B5BDD1800 X-Rspamd-Score: -2.67 / 15.00 / 15.00 X-Mailman-Approved-At: Sun, 14 Jun 2020 07:26:15 -0400 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:181940 Archived-At: > Am 13.06.2020 um 23:59 schrieb Juri Linkov : >=20 > =EF=BB=BF >>=20 >> Maybe also a way to easily register new search tools? Otherwise one might= >> be locked into the available options again - and if there is a new tool t= he >> interface might be not that stable, so there is the danger that it breaks= >> until there is a new emacs release. >=20 > No problem, you can even dynamically add an option available only > when a grep program is installed: >=20 > (defcustom grep-program nil > "The default grep program for `grep-command' and `grep-find-command'. > This variable's value takes effect when `grep-compute-defaults' is called.= " > :type `(choice (const :tag "GNU grep" (purecopy "grep")) > ,@(if (executable-find "rg") '((const :tag "ripgrep" "rg")= )) > (string :tag "Other grep program") > (const :tag "Not Set" nil)) > :version "28.1") >=20 > Or for a completely new tool: >=20 > (nconc (get 'grep-program 'custom-type) '((const :tag "ripgrep" "rg"))) Maybe still fine to merge my patch now and look at this later? One would not= contradict the other, I would think?=20 @Eli: sorry I hope my revised patch was not buried below this other discussi= on now.=20 Thank you!=20 Simon=