unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: hugo <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Build-completion using imenu search hits
Date: Mon, 25 May 2009 09:14:25 -0700 (PDT)	[thread overview]
Message-ID: <fba974ab-c091-4518-bdb9-57cb4fb179d3@e21g2000yqb.googlegroups.com> (raw)
In-Reply-To: 13bc6545-754f-444c-adbc-a1fd6b004a8b@t21g2000yqi.googlegroups.com

On 25 maio, 11:44, Nordlöw <per.nord...@gmail.com> wrote:
> 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.re...
>     ("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öw

Search for imeny on this Anything config:

http://www.emacswiki.org/emacs/anything-config.el

Cheers
Hugo


  reply	other threads:[~2009-05-25 16:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-25 14:44 Build-completion using imenu search hits Nordlöw
2009-05-25 16:14 ` hugo [this message]
2009-05-25 17:08 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fba974ab-c091-4518-bdb9-57cb4fb179d3@e21g2000yqb.googlegroups.com \
    --to=hugows@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).