Function: hmouse-at-item-p
hmouse-at-item-p is a byte-compiled function defined in hui-window.el.
Signature
(hmouse-at-item-p START-WINDOW)
Documentation
Return t if point is on an item draggable by Hyperbole, otherwise nil.
Draggable items include Hyperbole buttons, Dired items, buffer/ibuffer menu items.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun hmouse-at-item-p (start-window)
"Return t if point is on an item draggable by Hyperbole, otherwise nil.
Draggable items include Hyperbole buttons, Dired items, buffer/ibuffer
menu items."
(let* ((buf (when (window-live-p start-window)
(window-buffer start-window)))
(mode (when buf
(buffer-local-value 'major-mode buf))))
(and buf (save-window-excursion
(select-window start-window)
;; Point must be on an item, not after one
(and (not (looking-at "\\s-*$"))
(or (memq mode (mapcar #'car hmouse-drag-item-mode-forms))
(hbut:at-p))))
t)))