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 03:22:24 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293934990 31929 80.91.229.12 (2 Jan 2011 02:23:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 02:23:10 +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 03:23:05 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 1PZDaz-000579-7m for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 03:23:05 +0100 Original-Received: from localhost ([127.0.0.1]:34254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZDaw-0006gN-0H for ged-emacs-devel@m.gmane.org; Sat, 01 Jan 2011 21:22:54 -0500 Original-Received: from [140.186.70.92] (port=42097 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZDap-0006eE-QQ for emacs-devel@gnu.org; Sat, 01 Jan 2011 21:22:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZDao-0000Dm-Py for emacs-devel@gnu.org; Sat, 01 Jan 2011 21:22:47 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:42992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZDao-0000DX-Kr for emacs-devel@gnu.org; Sat, 01 Jan 2011 21:22:46 -0500 Original-Received: by eyh6 with SMTP id 6so2576056eyh.0 for ; Sat, 01 Jan 2011 18:22:44 -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 :content-transfer-encoding; bh=sHlmOzPHaj4UeVENBMlj3VZP2AHYMFw2aTEAxaJ0EV8=; b=GVgSKFiGkmyOaVVN63IdzGr/0T3lUKxZpl8x4xDFVxec7pLOpOM7lR6SxccTxKDFgW B/lmowl1KPEQVYN6WR8/QyPrljj4C6GMaNjSSrVUy8cEUpEPW/oxUQ1CSgnafN788j6W Dt1qlelsjmzCUdICtjn14dFt2eRkeNy2Zu2pw= 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:content-transfer-encoding; b=kjal1I9wSH9Cjk+zZU7D0yzAcUCAEQKMdcJCLj+cbUXUZgnEMmEV7u5we1IWxNcDn+ kBFJMNRaTWoTVOjfCjEDK9K3ldTxxe2FEmB/xb9co7UNxBuhgMcy/hyipTY5mQ1vKxoN +eQV7+0RGdDdviLTUvSIOY7NILcXk/x3LupV4= Original-Received: by 10.213.112.146 with SMTP id w18mr14656514ebp.84.1293934964778; Sat, 01 Jan 2011 18:22:44 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 18:22:24 -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:134144 Archived-At: On Sun, Jan 2, 2011 at 3:09 AM, Stefan Monnier w= rote: >> I have just added a file util/idxsearch.el to nXhtml that searches via >> an index and gives a grep-like output. > [...] >> Do we want this kind indexed search in Emacs? > > I think we already have something along these lines with M-x locate, and > there are others for specific backends (like id-utils). =C2=A0I'm not sur= e to > what extent the UI can be shared between the various search engines, but > it would be good to try and come up with one (or a small set) of > commands that can dispatch to any/various backends. =C2=A0Then id-utils.e= l > could simply provide the GNU id backend for that command. 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. With just a little bit tweaking it is there in idxsearch.el in nXhtml. (Though it requires an indexed search engine (which should be there already in most cases I believe) and ruby.)