Function: smart-imenu-item-at-p
smart-imenu-item-at-p is a byte-compiled function defined in
hui-mouse.el.
Signature
(smart-imenu-item-at-p &optional VARIABLE-FLAG)
Documentation
Return marker position for identifier at point in current buffer's imenu.
If no identifier at point is in the current buffer's imenu, return nil. With optional VARIABLE-FLAG non-nil, matches to variable definitions only.
Does nothing unless imenu has been loaded and an index has been
created for the current buffer. When return value is non-nil, also
sets hkey-value to (identifier . identifier-definition-buffer-position).
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-imenu-item-at-p (&optional variable-flag)
"Return marker position for identifier at point in current buffer's imenu.
If no identifier at point is in the current buffer's imenu, return nil.
With optional VARIABLE-FLAG non-nil, matches to variable definitions only.
Does nothing unless imenu has been loaded and an index has been
created for the current buffer. When return value is non-nil, also
sets `hkey-value' to (identifier . identifier-definition-buffer-position)."
(and (featurep 'imenu) imenu--index-alist
(setq hkey-value (smart-imenu-item-p hkey-value variable-flag))
(setq hkey-value (cons (hargs:find-tag-default) hkey-value))
(cdr hkey-value)))