Function: imenu--mouse-menu

imenu--mouse-menu is a byte-compiled function defined in imenu.el.gz.

Signature

(imenu--mouse-menu INDEX-ALIST EVENT &optional TITLE)

Documentation

Let the user select from a buffer index from a mouse menu.

INDEX-ALIST is the buffer index and EVENT is a mouse event.

Returns t for rescan and otherwise an element or subelement of INDEX-ALIST.

Source Code

;; Defined in /usr/src/emacs/lisp/imenu.el.gz
(defun imenu--mouse-menu (index-alist event &optional title)
  "Let the user select from a buffer index from a mouse menu.

INDEX-ALIST is the buffer index and EVENT is a mouse event.

Returns t for rescan and otherwise an element or subelement of INDEX-ALIST."
  (setq index-alist (imenu--split-submenus index-alist))
  (let* ((menu (imenu--split-menu index-alist (or title (buffer-name))))
	 (map (imenu--create-keymap (car menu)
                                    (cdr (if (and (null (cddr menu))
                                                  (stringp (caadr menu))
                                                  (consp (cdadr menu)))
                                             (cadr menu)
                                           menu)))))
    (popup-menu map event)))