From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4341: 23.1; M-x locate runs synchronously Date: Thu, 10 Sep 2009 04:17:14 +0300 Organization: JURTA Message-ID: <87y6onr35h.fsf@mail.jurta.org> References: Reply-To: Juri Linkov , 4341@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252548865 26182 80.91.229.12 (10 Sep 2009 02:14:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 02:14:25 +0000 (UTC) Cc: 4341@emacsbugs.donarmstrong.com To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 10 04:14:17 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlZAv-0006Nj-9A for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Sep 2009 04:14:17 +0200 Original-Received: from localhost ([127.0.0.1]:36364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlZAu-0003lz-Lh for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2009 22:14:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlZAX-0003ab-KO for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 22:13:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlZAS-0003YG-Ar for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 22:13:52 -0400 Original-Received: from [199.232.76.173] (port=41797 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlZAS-0003Y3-29 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 22:13:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34439) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MlZ3t-0002B8-WE for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 22:07:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8A26x3c031110; Wed, 9 Sep 2009 19:06:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8A257QT030798; Wed, 9 Sep 2009 19:05:07 -0700 Resent-Date: Wed, 9 Sep 2009 19:05:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 10 Sep 2009 02:05:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4341 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4341-submit@emacsbugs.donarmstrong.com id=B4341.125254784229167 (code B ref 4341); Thu, 10 Sep 2009 02:05:07 +0000 Original-Received: (at 4341) by emacsbugs.donarmstrong.com; 10 Sep 2009 01:57:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.starman.ee (smtp-out1.starman.ee [85.253.0.3]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8A1vLEo029104 for <4341@emacsbugs.donarmstrong.com>; Wed, 9 Sep 2009 18:57:22 -0700 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.30.70.cable.starman.ee [82.131.30.70]) by mx1.starman.ee (Postfix) with ESMTP id 062FC3F436B; Thu, 10 Sep 2009 04:57:14 +0300 (EEST) In-Reply-To: (Tom Tromey's message of "Fri, 04 Sep 2009 13:15:50 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 09 Sep 2009 22:13:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30906 Archived-At: > Today I ran M-x locate. > This took a little while -- long enough to bother me that Emacs was > locked up for the entire time it was running. > > 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'. -- Juri Linkov http://www.jurta.org/emacs/