From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4341: 23.1; M-x locate runs synchronously Date: Sun, 08 Nov 2020 21:47:51 +0200 Organization: LINKOV.NET Message-ID: <87v9efwuqw.fsf@mail.linkov.net> References: <87y6onr35h.fsf@mail.jurta.org> <87d00u2wyo.fsf@web.de> <87a6vyz0k9.fsf@mail.linkov.net> <87pn4tv0fz.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28381"; 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: Tom Tromey , 4341@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 08 20:49:43 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 1kbqh4-0007JS-VM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 20:49:42 +0100 Original-Received: from localhost ([::1]:56712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbqh4-0005Ql-04 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 14:49:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbqgS-0004a2-97 for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 14:49:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbqgQ-0002Ib-Pt for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 14:49:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbqgQ-0001nQ-OZ for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 14:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Nov 2020 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4341 X-GNU-PR-Package: emacs Original-Received: via spool by 4341-submit@debbugs.gnu.org id=B4341.16048649036843 (code B ref 4341); Sun, 08 Nov 2020 19:49:02 +0000 Original-Received: (at 4341) by debbugs.gnu.org; 8 Nov 2020 19:48:23 +0000 Original-Received: from localhost ([127.0.0.1]:33093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbqfn-0001mI-Fc for submit@debbugs.gnu.org; Sun, 08 Nov 2020 14:48:23 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:54363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbqfl-0001lp-Qe for 4341@debbugs.gnu.org; Sun, 08 Nov 2020 14:48:22 -0500 X-Originating-IP: 91.129.97.46 Original-Received: from mail.gandi.net (m91-129-97-46.cust.tele2.ee [91.129.97.46]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id BB9F51C0002; Sun, 8 Nov 2020 19:48:13 +0000 (UTC) In-Reply-To: <87pn4tv0fz.fsf@web.de> (Michael Heerdegen's message of "Wed, 04 Nov 2020 12:14:08 +0100") 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:192901 Archived-At: >> Is it possible to avoid using "ls"? If ls formatting is not needed, >> then the output buffer will look like a Dired buffer with enabled >> 'dired-hide-details-mode' that shows only file names. > > I guess it is possible, I have no clue. It's what we do now. > > A downside is that developers would have to keep this in mind when > working on dired, otherwise things may work only partially or break. > For example, if you (in current Emacs master) mark files in a *locate* > output buffer, they get marked and you can act on them, but marked files > are not highlighted. > > OTOH, if we leave the corner case of non-existing files aside for now - > when we do call ls (what would be the downsides?), we would get a fully > functional dired support out of the box. > > Privately, I have adviced `locate' to insert the list of found files > into a new dired buffer (by calling `dired' with the explicit list of > files), and so far I find it better. That is actually already all I can > contribute so far. Maybe this would be an improvement. But sorry, I can't help in testing: while slow `M-x locate' used to be a problem in the past, nowadays it finishes within 1 sec, so I simply won't notice the difference :-)