Function: projectile--test-at-point-rule

projectile--test-at-point-rule is a byte-compiled function defined in projectile.el.

Signature

(projectile--test-at-point-rule)

Documentation

Return the projectile-test-at-point-rules rule for the current buffer.

The buffer's major mode is matched against the rule keys with derived-mode-p. Return nil when no rule matches.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--test-at-point-rule ()
  "Return the `projectile-test-at-point-rules' rule for the current buffer.
The buffer's major mode is matched against the rule keys with
`derived-mode-p'.  Return nil when no rule matches."
  (cdr (seq-find (lambda (rule) (derived-mode-p (car rule)))
                 projectile-test-at-point-rules)))