From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#49836: Support ripgrep in semantic-symref-tool-grep Date: Sun, 19 Sep 2021 02:53:10 +0300 Message-ID: References: <34778BC0-8D97-4266-8B1F-9D1839E858B5@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35710"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: Lars Ingebrigtsen , 49836@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 01:54:13 2021 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 1mRk9s-00097e-Q9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 01:54:12 +0200 Original-Received: from localhost ([::1]:44928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRk9q-0004ME-K2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 19:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRk9i-0004M2-G1 for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 19:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRk9i-0006Rp-8k for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 19:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRk9i-0001Kq-68 for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 19:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Sep 2021 23:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49836-submit@debbugs.gnu.org id=B49836.16320092065088 (code B ref 49836); Sat, 18 Sep 2021 23:54:02 +0000 Original-Received: (at 49836) by debbugs.gnu.org; 18 Sep 2021 23:53:26 +0000 Original-Received: from localhost ([127.0.0.1]:37161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRk97-0001Jz-QB for submit@debbugs.gnu.org; Sat, 18 Sep 2021 19:53:26 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:41482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRk92-0001Jh-5e for 49836@debbugs.gnu.org; Sat, 18 Sep 2021 19:53:23 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id w29so21620680wra.8 for <49836@debbugs.gnu.org>; Sat, 18 Sep 2021 16:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=W7lydbnKokUjvrha4nEJdHAVyGaHjEy4O26gDQAO7jU=; b=anQMJv7RAOWd8GYqS+3OkCNplSu7SL1COAdepC9EC5jvjjSfVJwALuV4wIYJoC4noj Ph4QcmcUKaj86x2hZxBN15bkd7/wTC/NTzyAAZ3/Y6Pk3NpgTHUp6dJUku47Zyy59Rub aR/VoY+a9Uz7Czdqln2LPHon3Pr4sJo81AsCpl750thnWsQBbdqAr1PCO+TPT+QGUPNj vjp6gRVXnZ5+8rrgTIQG1efj1IFKdBc6ZmO+LL3Nyznci6t/c+IXY1ir2mgOTdArOYXY cY2gPdbQ4JexjuYa9lngIw9YrMN7D1kJ0yReDANbsk3TS2X+dRMCVUMHjQfudmampGWq YgoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=W7lydbnKokUjvrha4nEJdHAVyGaHjEy4O26gDQAO7jU=; b=ZenLLMk4rn6J/GvPSlM5A+0eE7BKhg1f3PJ39aJFnZeFKyYtYbV/BNWr4VKQme7+SW t0VkpgqouVRutS8YbDaKgjisjuM+73LfFCIAPhYjqN4u4Rc3sx0XP4qM2uX229ogjgXW taBbQgYtPKgXV6MjnCIojFjm/nCQhqUbrNFERz2LepiI5oPGmFs1Yqr+yBoIqn6evAac p+hQE5YB9VKL76sr4xSLwMV1MytMXeOCp48nLf/QK81jJBtKtjV919UhqnByxGEbpAXZ 0sbcH2aj64nLaQC9obSooJ6TQKj0i+fW99IT1IrXXzXD6OYJ1y2hFedXzXeGZ0TVLAto Qg+w== X-Gm-Message-State: AOAM532ttD3rnY3v1ayM7i2FJc6dPtAGmW6YCqHcLg1RgRq6HkcPqIHJ k4BTqH6BdkdCg1/SWWO30O8= X-Google-Smtp-Source: ABdhPJzlQjG+VJV0NNT2csnSZVkl0MF9C4+RHu3LSIIvObNyBzQX/p9kCagusDNehOzGmB/6szf4nw== X-Received: by 2002:adf:fcca:: with SMTP id f10mr20216933wrs.304.1632009194301; Sat, 18 Sep 2021 16:53:14 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p1sm10527119wmi.30.2021.09.18.16.53.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Sep 2021 16:53:13 -0700 (PDT) In-Reply-To: <34778BC0-8D97-4266-8B1F-9D1839E858B5@acm.org> Content-Language: en-US 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:214667 Archived-At: On 18.09.2021 16:53, Mattias Engdegård wrote: > Attached is a straw-man patch that is not production-quality but illustrates some of the concepts I'd like to see: > > * ripgrep supported for M-? > * ripgrep auto-detected and used by default if available > * treat ripgrep as a search method of its own and not just a different grep program > * corollary: selection of search method should be made symbolically and not by supplying shell command strings Perhaps we should split off the auto-detection feature and consider the patch without it first. If people don't mind adding yet another grep-or-ripgrep custom variable, this can be a reasonable change. After landing that we could discuss the auto-detection approach, on local and remote machines, and whether we could manage to do it only once per host.