From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hugo Newsgroups: gmane.emacs.help Subject: Re: Build-completion using imenu search hits Date: Mon, 25 May 2009 09:14:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <13bc6545-754f-444c-adbc-a1fd6b004a8b@t21g2000yqi.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243269723 22217 80.91.229.12 (25 May 2009 16:42:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 16:42:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 25 18:41:57 2009 Return-path: Envelope-to: geh-help-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 1M8dFM-0005yI-N2 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2009 18:41:56 +0200 Original-Received: from localhost ([127.0.0.1]:34258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8dFL-0008I7-TR for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2009 12:41:55 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e21g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 189.27.162.174 Original-X-Trace: posting.google.com 1243268065 24960 127.0.0.1 (25 May 2009 16:14:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 25 May 2009 16:14:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e21g2000yqb.googlegroups.com; posting-host=189.27.162.174; posting-account=7GrjgQoAAAD6slWURausdJnhFDkmQYC8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 stargate.datacom:3128 (squid/2.6.STABLE5) Original-Xref: news.stanford.edu gnu.emacs.help:169472 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64704 Archived-At: On 25 maio, 11:44, Nordl=F6w wrote: > How can I programmatically access the hits from the search done by > imenu using for example > > (defconst bjam-imenu-generic-expression > =A0 `( > =A0 =A0 ("Executables" ,(concat "^\\(exe\\)" "[[:space:]\n]+" "\\([A-Za- > z0-9_/.]+\\)" "[[:space:]\n]+" ":") 2) > =A0 =A0 ("Libraries" ,(concat "^\\(lib\\)" "[[:space:]\n]+" "\\([A-Za- > z0-9_/.]+\\)" "[[:space:]\n]+" ":") 2) > =A0 =A0 ("Projects" ,(concat "^\\(project\\)" "[[:space:]\n]+" "\\([A-Za- > z0-9_/.]+\\)" "[[:space:]\n]+" ":") 2) > > =A0 =A0 ;;http://www.boost.org/doc/libs/1_38_0/doc/html/bbv2/tasks.html#b= bv2.re... > =A0 =A0 ("Precompiled C Headers" "^c-pch[[:space:]\n]+\\([A-Za-z0-9_/.]+\= \) > [[:space:]\n]+:" 1) > =A0 =A0 ("Precompiled C++ Headers" "^cpp-pch[[:space:]\n]+\\([A-Za-z0-9_/= .] > +\\)[[:space:]\n]+:" 1) > > =A0 =A0 ("Rules" "^rule[[:space:]\n]+\\([A-Za-z0-9_]+\\)" 1) > =A0 =A0 ("Actions" "^actions[[:space:]\n]+\\([A-Za-z0-9_]+\\)" 1) > =A0 =A0 ) > =A0 "Imenu generic expression for BJam mode. =A0See `imenu-generic- > expression'.") > ;; Use: (nth 1 (assoc "Executables" bjam-imenu-generic-expression)) > > in bjam-mode.el. I wan't to use this to provide build/clean target > completion from the menu. > > Thanks in advance, > Per Nordl=F6w Search for imeny on this Anything config: http://www.emacswiki.org/emacs/anything-config.el Cheers Hugo