Function: hmouse-emacs-at-modeline-buffer-id-p

hmouse-emacs-at-modeline-buffer-id-p is a byte-compiled function defined in hui-window.el.

Signature

(hmouse-emacs-at-modeline-buffer-id-p)

Documentation

Non-nil means mouse is in the buffer name part of the current window's modeline.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun hmouse-emacs-at-modeline-buffer-id-p ()
  "Non-nil means mouse is in the buffer name part of the current window's modeline."
  (let* ((coords (hmouse-window-coordinates)) ;; in characters
	 (x-coord (caadr coords))
	 (mode-line-string (and (integerp x-coord) (>= x-coord 0) (format-mode-line mode-line-format)))
	 (keymap (and mode-line-string
		      (<= x-coord (1- (length mode-line-string)))
		      (plist-get (text-properties-at x-coord mode-line-string) 'local-map))))
    (when keymap
      (eq (lookup-key keymap [mode-line mouse-1]) 'mode-line-previous-buffer))))