From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Nordl=F6w?= Newsgroups: gmane.emacs.help Subject: Build-completion using imenu search hits Date: Mon, 25 May 2009 07:44:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: <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 1243267809 16637 80.91.229.12 (25 May 2009 16:10:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 16:10:09 +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:10:02 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 1M8ckR-0000oG-Nd for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2009 18:10:00 +0200 Original-Received: from localhost ([127.0.0.1]:50872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8ckR-0003C1-4B for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2009 12:09:59 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t21g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 81.170.250.228 Original-X-Trace: posting.google.com 1243262663 8173 127.0.0.1 (25 May 2009 14:44:23 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 25 May 2009 14:44:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t21g2000yqi.googlegroups.com; posting-host=81.170.250.228; posting-account=ytJKAgoAAAA1tg4ScoRszebXiIldA5vg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1pre) Gecko/20090523 Ubuntu/9.04 (jaunty) Shiretoko/3.5pre, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169461 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:64694 Archived-At: How can I programmatically access the hits from the search done by imenu using for example (defconst bjam-imenu-generic-expression `( ("Executables" ,(concat "^\\(exe\\)" "[[:space:]\n]+" "\\([A-Za- z0-9_/.]+\\)" "[[:space:]\n]+" ":") 2) ("Libraries" ,(concat "^\\(lib\\)" "[[:space:]\n]+" "\\([A-Za- z0-9_/.]+\\)" "[[:space:]\n]+" ":") 2) ("Projects" ,(concat "^\\(project\\)" "[[:space:]\n]+" "\\([A-Za- z0-9_/.]+\\)" "[[:space:]\n]+" ":") 2) ;; http://www.boost.org/doc/libs/1_38_0/doc/html/bbv2/tasks.html#bbv2.r= eference.precompiled_headers ("Precompiled C Headers" "^c-pch[[:space:]\n]+\\([A-Za-z0-9_/.]+\\) [[:space:]\n]+:" 1) ("Precompiled C++ Headers" "^cpp-pch[[:space:]\n]+\\([A-Za-z0-9_/.] +\\)[[:space:]\n]+:" 1) ("Rules" "^rule[[:space:]\n]+\\([A-Za-z0-9_]+\\)" 1) ("Actions" "^actions[[:space:]\n]+\\([A-Za-z0-9_]+\\)" 1) ) "Imenu generic expression for BJam mode. See `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