From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Indexed search with grep-like output Date: Sun, 2 Jan 2011 04:13:23 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1293938039 8154 80.91.229.12 (2 Jan 2011 03:13:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 03:13:59 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 02 04:13:53 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZEOE-0003NL-DY for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 04:13:50 +0100 Original-Received: from localhost ([127.0.0.1]:45657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZEOD-0008GN-MY for ged-emacs-devel@m.gmane.org; Sat, 01 Jan 2011 22:13:49 -0500 Original-Received: from [140.186.70.92] (port=45093 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZEO9-0008G8-Ah for emacs-devel@gnu.org; Sat, 01 Jan 2011 22:13:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZEO8-0001Ke-1c for emacs-devel@gnu.org; Sat, 01 Jan 2011 22:13:45 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:48632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZEO7-0001KU-Pj for emacs-devel@gnu.org; Sat, 01 Jan 2011 22:13:44 -0500 Original-Received: by eyh6 with SMTP id 6so2580698eyh.0 for ; Sat, 01 Jan 2011 19:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=vJ011GunregQYYbm2lwfniKdT9e9+uVX3fLv/EJBgPY=; b=hIEwA6uW1dmKr5LKBQjQUHETFyctYyyJMqrtbdAf8725Pq7+EKkTlYaRhg84OUPM+L JVIChWh21SaK+FVGR7ESB2J62LoYLOxQGXZdyBBDrqsSRQ4EsbRahgpVQ8/m0qS4LcdR b98Bwrsqsv5cv+RlYIzs1xQyfBNqnIYeg1sSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=TmUFDB5RCE5xgOA9tyXIKPxPwUw5itqKLk3nFaGKA5EB6FyQrYJpEaPOMGv3109EmY flxUfEVAJ7aFvKv8lXKVjUGCC45gx0ofpmo0QIxNiH4gSrj43y0tFVQ1wI6DQg6eZdMm 6fZsf8exP1NU7xfzB1Osecq//4unjHljA1DQ8= Original-Received: by 10.213.112.146 with SMTP id w18mr14675403ebp.84.1293938023082; Sat, 01 Jan 2011 19:13:43 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 19:13:23 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134147 Archived-At: On Sun, Jan 2, 2011 at 3:59 AM, Stefan Monnier wrote: >> What I am saying is we could probably do it the other way round: Use >> the same backend for the functionality of locate, id-util and in >> addition free text search. > > I have no idea what that means, but I'll assume we agree: have a command > that can run a variety of external tools like `locate', or GNU id, or > Beagle, or ... Sure, we are just saying it a bit different. To be clear, here is an example: - An Emacs command like "locate" which is meant to use a backend with an index could use several backends for that. idxsearch.el could provide a backend for it and so could the unix command "locate". When idxsearch.el is used it can (hopefully) use different indexing search engines. Currently, in the first version, it supports only Windows Desktop Search (because that is what I have here), but I hope someone else can tweak the ruby file idxsearch.rb for other indexing search engines, for example Lucene. Note: At the moment I tossed away the "locate" functionality in idxsearch.el, but it will be there again soon. The idea of an indexed "id" search could be thought of similar. > If you really mean to provide various commands that all end up running > one particular external tool, then I don't understand why you'd want > that, since AFAICT there is no standard "external search tool" (there > may exist such a thing on some platforms, but we'd want those commands > to work on all platforms, so they'll necessarily need to support various > backends). Not one particular external tool, but one particular type of externa tool, i.e. an indexed text search engine for the desktop (or computer). I guess they all are similar enough to fit here. (But that is a guess, some ideas used in implementation really surprises me in that they lack useful things that easily could have been provided.)