From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50733: 28.0.1; project-find-regexp can block Emacs for a long time Date: Fri, 24 Sep 2021 09:34:49 +0300 Message-ID: <83k0j6trau.fsf@gnu.org> References: <03aa81b5-6077-c35c-1a5f-ec4d867b59ac@yandex.ru> <63300a34-e487-02d1-c182-2b84438654d7@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50733@debbugs.gnu.org, mardani29@yahoo.es To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 24 08:37:30 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 1mTepu-0005Dv-9g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 08:37:30 +0200 Original-Received: from localhost ([::1]:40424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTeps-0006M8-Tn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 02:37:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTeoU-00054b-Ne for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 02:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTeoU-00082z-FX for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 02:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTeoU-0000zJ-2Y for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 02:36: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: Fri, 24 Sep 2021 06:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50733 X-GNU-PR-Package: emacs Original-Received: via spool by 50733-submit@debbugs.gnu.org id=B50733.16324653153728 (code B ref 50733); Fri, 24 Sep 2021 06:36:02 +0000 Original-Received: (at 50733) by debbugs.gnu.org; 24 Sep 2021 06:35:15 +0000 Original-Received: from localhost ([127.0.0.1]:56509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTenZ-0000xl-CT for submit@debbugs.gnu.org; Fri, 24 Sep 2021 02:35:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTenW-0000xE-UG for 50733@debbugs.gnu.org; Fri, 24 Sep 2021 02:35:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45126) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTenR-000773-C4; Fri, 24 Sep 2021 02:34:57 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2901 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTenQ-0005km-AS; Fri, 24 Sep 2021 02:34:57 -0400 In-Reply-To: <63300a34-e487-02d1-c182-2b84438654d7@yandex.ru> (message from Dmitry Gutov on Fri, 24 Sep 2021 01:40:58 +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:215262 Archived-At: > Cc: 50733@debbugs.gnu.org > From: Dmitry Gutov > Date: Fri, 24 Sep 2021 01:40:58 +0300 > > Perhaps on a platform like macOS we should consider bundling some > up-to-date search program, be it GNU Grep or Ripgrep. > > Eli, have there ever been a similar proposal under discussion? IIRC > having to install external tools has been an issue on MS Windows as well > for a long time. We give recommendations, but Grep has never been > distributed together with Emacs. Any particular reason? > > For comparison, VS Code bundles ripgrep. Or at least its macOS releases do. Bundling an external program is problematic, but it can be done, of course, provided that the license is right. The problem is, we don't provide macOS binaries, and we cannot rely on the fact that the Windows binaries distribution will have its maintainer forever: we already had periods of time without such a person. We can recommend installing such tools, of course. Btw, I don't understand why we focus on general-purpose text-searching tools for these features. Why not focus on packages like ID Utils instead, they are so much faster. Daniel, could you time the same search in that large tree when xref-search-program is 'gid'? (You'd need to run 'mkid' first, to create the ID database, but that is one-time, and is very fast.) As I told many times, I think this is the future: program language sensitive tools that use a precomputed DB.