From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Build-completion using imenu search hits
Date: Mon, 25 May 2009 07:44:22 -0700 (PDT) [thread overview]
Message-ID: <13bc6545-754f-444c-adbc-a1fd6b004a8b@t21g2000yqi.googlegroups.com> (raw)
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.reference.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öw
next reply other threads:[~2009-05-25 14:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 14:44 Nordlöw [this message]
2009-05-25 16:14 ` Build-completion using imenu search hits hugo
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=13bc6545-754f-444c-adbc-a1fd6b004a8b@t21g2000yqi.googlegroups.com \
--to=per.nordlow@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).