Function: treemacs-current-button

treemacs-current-button is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs-current-button)

Documentation

Get the button in the current line.

Returns nil when point is between projects.

Aliases

treemacs-node-at-point

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs-current-button ()
  "Get the button in the current line.
Returns nil when point is between projects."
  (declare (side-effect-free error-free))
  (inline-quote
   (-some->
    (text-property-not-all (line-beginning-position) (line-end-position) 'button nil)
    (copy-marker t))))