all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Build-completion using imenu search hits
@ 2009-05-25 14:44 Nordlöw
  2009-05-25 16:14 ` hugo
  2009-05-25 17:08 ` Drew Adams
  0 siblings, 2 replies; 3+ messages in thread
From: Nordlöw @ 2009-05-25 14:44 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-25 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25 14:44 Build-completion using imenu search hits Nordlöw
2009-05-25 16:14 ` hugo
2009-05-25 17:08 ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.