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 00:03:46 +0100 Message-ID: References: <831v4wpcue.fsf@gnu.org> 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 1293923064 27710 80.91.229.12 (1 Jan 2011 23:04:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 23:04:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 02 00:04:19 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 1PZAUi-00087w-EY for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 00:04:19 +0100 Original-Received: from localhost ([127.0.0.1]:49618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZAUg-0007DW-Kk for ged-emacs-devel@m.gmane.org; Sat, 01 Jan 2011 18:04:14 -0500 Original-Received: from [140.186.70.92] (port=59649 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZAUa-0007Co-RT for emacs-devel@gnu.org; Sat, 01 Jan 2011 18:04:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZAUZ-0007G9-QD for emacs-devel@gnu.org; Sat, 01 Jan 2011 18:04:08 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:59318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZAUZ-0007G5-KH; Sat, 01 Jan 2011 18:04:07 -0500 Original-Received: by eyh6 with SMTP id 6so2557076eyh.0 for ; Sat, 01 Jan 2011 15:04:06 -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=ghdYWYtO7HnIlJnyAwDKCWzw7wJUoyJQ1B3Hcx2UAEo=; b=lUIGR7mUUf7Kjn3ljn/UWUUroZFN9QgGvWsJgrJUzChEMQZorn28XK8tBriA0TmSZ5 PfoI5YCb1AdpbuGCSHmwoNZ4R94ElC/NYqqYeW9BC8b3l3BsPn45GrUbMYM0/vgWile/ 3bfqkGdFPpTtc85EEMuDah+TCNf/2Q0O0QWUA= 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=U8wpmGfABDvWulp9tP09OwG4lu6DQ4S8X+nSTvzR8v4mFjn+T/kgpBSTUhm74WzkGR mCqm7GR5bAUg+IH82/xClTkwBi98hXfO8VPRf9V/gR3U3lbv2oDhm8BFlk0gQaei3PjC W6f+/N4MUBfHvoApPWbj7ebIyI84Df0w+fTsg= Original-Received: by 10.213.112.146 with SMTP id w18mr14573783ebp.84.1293923046686; Sat, 01 Jan 2011 15:04:06 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 15:03:46 -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:134137 Archived-At: On Sat, Jan 1, 2011 at 10:15 PM, Lennart Borgman wrote: > On Sat, Jan 1, 2011 at 9:51 PM, Eli Zaretskii wrote: >>> From: Lennart Borgman >>> Date: Sat, 1 Jan 2011 20:24:53 +0100 >>> >>> This kind of search is quite nice for quickly looking up things in for >>> example Emacs code >> >> The GNU Id-utils package already does that for searching identifiers >> in program source code. =C2=A0The package comes with id-utils.el, which >> implements the Emacs front-end for it, and produces grep-like output. > > > Nice. I have never seen it. > > However that does not use a modern indexed database that is > automatically incrementally updated. (I would propose extracting the > scanner part from it and using that for other databases, but that is > another project, nothing for Emacs.) > > And it does not handle text queries like those you are interested in > when you are using Org mode. Does id-util.el allow you to restrict your query to a directory tree?