Function: projectile-register-backend

projectile-register-backend is a byte-compiled function defined in projectile.el.

Signature

(projectile-register-backend REGISTRY-SYMBOL NAME &rest PLIST)

Documentation

Register backend NAME (a symbol) into REGISTRY-SYMBOL's alist.

REGISTRY-SYMBOL names a variable holding an alist of (NAME . PLIST) descriptors; an existing entry for NAME is replaced. PLIST properties are family-specific, but :description (a string) and :available (a zero-argument predicate, or nil for "always available") are understood by the resolution helpers below.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;; Project search
;;
;; `projectile-search' runs a text search over the project using a pluggable
;; backend.  Backends live in `projectile-search-backends' and are selected via
;; `projectile-search-backend'; register your own (deadgrep, consult-ripgrep,
;; ...) with `projectile-register-search-backend'.  The registry helpers below
;; are deliberately family-agnostic so the same mechanism can drive other
;; command families later on.

;;;; Generic backend registry

(defun projectile-register-backend (registry-symbol name &rest plist)
  "Register backend NAME (a symbol) into REGISTRY-SYMBOL's alist.
REGISTRY-SYMBOL names a variable holding an alist of (NAME . PLIST)
descriptors; an existing entry for NAME is replaced.  PLIST properties
are family-specific, but `:description' (a string) and `:available' (a
zero-argument predicate, or nil for \"always available\") are understood
by the resolution helpers below."
  (set registry-symbol
       (cons (cons name plist)
             (assq-delete-all name (symbol-value registry-symbol)))))