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: Tue, 03 Nov 2020 21:45:42 +0200 Message-ID: <87a6vyz0k9.fsf@mail.linkov.net> References: <87y6onr35h.fsf@mail.jurta.org> <87d00u2wyo.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="5975"; 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 Tue Nov 03 20:49:51 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 1ka2JT-0001Tc-I9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 20:49:51 +0100 Original-Received: from localhost ([::1]:41638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka2JR-000210-9J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 14:49:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka2Ig-0001zL-D4 for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 14:49:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka2Ig-0000i6-2J for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 14:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ka2If-00065m-VL for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 14:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 19:49:01 +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.160443292523394 (code B ref 4341); Tue, 03 Nov 2020 19:49:01 +0000 Original-Received: (at 4341) by debbugs.gnu.org; 3 Nov 2020 19:48:45 +0000 Original-Received: from localhost ([127.0.0.1]:46508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka2IO-00065G-Qq for submit@debbugs.gnu.org; Tue, 03 Nov 2020 14:48:45 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:48379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka2IL-000650-Tt for 4341@debbugs.gnu.org; Tue, 03 Nov 2020 14:48:43 -0500 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 77E9A100006; Tue, 3 Nov 2020 19:48:33 +0000 (UTC) In-Reply-To: <87d00u2wyo.fsf@web.de> (Michael Heerdegen's message of "Tue, 03 Nov 2020 18:04:31 +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:192646 Archived-At: >> > I think it would be preferable to run locate in asynchronously. >> >> This would be possible when `locate' were more similar to `find-dired'. >> I don't mean its output should be formatted as files in dired. >> For that we could create a new command like `locate-dired'. >> But maybe internals of `find-dired' should be generalized to >> accept arbitrary commands. This would allow implementing >> `locate-dired', `rgrep-dired', `lgrep-dired', i.e. any command >> that searches files with their output formatted for dired >> like `find-name-dired', `find-grep-dired' and `find-dired'. > > That sounds nice. > > It's not trivial: find calls ls by itself. From processes Emacs can > receive anything, and it would have to decide by itself on the fly if > it's an ok file line and call "ls" to format the file line. "locate" > for example can report files that have been deleted in the meantime. 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.