Function: treemacs--compare-tag-paths

treemacs--compare-tag-paths is a byte-compiled function defined in treemacs-tag-follow-mode.el.

Signature

(treemacs--compare-tag-paths P1 P2)

Documentation

Compare two tag paths P1 & P2 by the position of the tags they lead to.

Used to sort tag paths according to the order their tags appear in.

P1: Tag-Path P2: Tag-Path

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-tag-follow-mode.el
(define-inline treemacs--compare-tag-paths (p1 p2)
  "Compare two tag paths P1 & P2 by the position of the tags they lead to.
Used to sort tag paths according to the order their tags appear in.

P1: Tag-Path
P2: Tag-Path"
  (declare (pure t) (side-effect-free t))
  (inline-letevals (p1 p2)
    (inline-quote
     (< (-> ,p1 (cdar) (marker-position))
        (-> ,p2 (cdar) (marker-position))))))