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 16:06:16 +0300 Message-ID: <83zgs2rulz.fsf@gnu.org> References: <03aa81b5-6077-c35c-1a5f-ec4d867b59ac@yandex.ru> <63300a34-e487-02d1-c182-2b84438654d7@yandex.ru> <83k0j6trau.fsf@gnu.org> <5679c01b-51d0-903d-039a-8102f64fdb37@yandex.ru> <8335putc4z.fsf@gnu.org> <4c2be3c4-52f5-00c2-9c31-eafa0df5bfd9@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9254"; 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 15:07:21 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 1mTkvB-0002ER-HD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 15:07:21 +0200 Original-Received: from localhost ([::1]:59550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTkvA-0008HZ-3k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 09:07:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTkut-0007kg-34 for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 09:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTkus-0006tT-RJ for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTkus-00047O-Ie for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 09:07: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 13:07: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.163248878915765 (code B ref 50733); Fri, 24 Sep 2021 13:07:02 +0000 Original-Received: (at 50733) by debbugs.gnu.org; 24 Sep 2021 13:06:29 +0000 Original-Received: from localhost ([127.0.0.1]:56924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTkuL-00046C-5S for submit@debbugs.gnu.org; Fri, 24 Sep 2021 09:06:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTkuJ-00045s-G3 for 50733@debbugs.gnu.org; Fri, 24 Sep 2021 09:06:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51736) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTkuE-0006ZE-5S; Fri, 24 Sep 2021 09:06:22 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3390 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 1mTkuD-0004Fj-PL; Fri, 24 Sep 2021 09:06:22 -0400 In-Reply-To: <4c2be3c4-52f5-00c2-9c31-eafa0df5bfd9@yandex.ru> (message from Dmitry Gutov on Fri, 24 Sep 2021 15:22:39 +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:215290 Archived-At: > Cc: mardani29@yahoo.es, 50733@debbugs.gnu.org > From: Dmitry Gutov > Date: Fri, 24 Sep 2021 15:22:39 +0300 > > On 24.09.2021 15:02, Eli Zaretskii wrote: > > > You don't need to convince me, I have all of those installed, and > > couldn't do without them. The difficulties are practical, not > > principal. > > Bundling extra tools affects the size of the distribution, for example. > I figured that's something you might have an opinion on. I doubt that the size of the distribution matters much these days. Especially since tools like Grep usually have very small sizes of the binary distribution. > >> What is the concern about the presence of the current maintainer? Would > >> we do something different if he leaves? We'd probably need to find > >> another maintainer, no? > > > > Yes, and the question is: will we succeed, and how quickly? We > > already had a period of time without one, which means having no one is > > not a theoretical danger. > > I'm not sure how that affects our opinion on bundling, though. It might mean that bundling won't happen for mundane reasons. > > Just "gid -r ". But if this could run in an arbitrary directory, > > there should also be a "-f .../ID" argument, telling it where to find > > the ID database (usually, in the project's root). > > Anyway, it seems the most pressing problem is not the performance of the > external tool (ripgrep is quite fast, for example). But our > post-processing of the results, when there are a lot of them. Yes. > id-tools (or alternatives) could help avoid the "fetch all project > files" step, though. At the cost of extra manual management, which I > personally don't like much. Why is that a problem? We have midnight.el which could be part of the solution. > > Anyway, maybe we need a separate command, or a different (but similar) > > tool, one that indexes the tokens in the project files instead of > > scanning all of the files each time anew. > > "Tokens" implies searching only for identifiers, no? For ID Utils, yes (although in text files those are words). For some other similar tool it could be something else.