"Barry A. Warsaw" <bwarsaw(a)cnri.reston.va.us> writes:
Sorry, the useful function probably ought to be something like the
following. I'm sure Hrvoje can sanitize this ;-)
-Barry
-------------------- snip snip --------------------
(defun imenu-popup-menu (event)
"Wrapper for mouse button bindings for imenu."
(interactive "e")
(let* ((answer (imenu--mouse-menu (imenu--make-index-alist) event))
(name (car answer))
(position (cdr answer)))
(if (< 0 position)
(imenu-default-goto-function name position)
(imenu--cleanup)
(setq imenu--index-alist nil))))
"Barry A. Warsaw" <bwarsaw(a)cnri.reston.va.us> writes:
This seems like a useful function:
(defun imenu-popper (event)
"Wrapper for mouse button bindings for imenu."
(interactive "e")
(imenu--mouse-menu (imenu--make-index-alist) event))
What am I to do with these functions? Add them to imenu.el? Are they
in FSF version?
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
"A Real Programmer's code can awe with its fiendish brilliance, even
as its crockishness appalls."