Function: auth-source-search-spec

auth-source-search-spec is a macro defined in auth-source.el.gz.

Signature

(auth-source-search-spec SPEC)

Documentation

Build a search spec without the ignored keys.

If a search key is nil or t (match anything), skip it.

Source Code

;; Defined in /usr/src/emacs/lisp/auth-source.el.gz
(defmacro auth-source-search-spec (spec)
  "Build a search spec without the ignored keys.
If a search key is nil or t (match anything), skip it."
  `(apply #'append (mapcar
    (lambda (k)
      (when-let* ((v (plist-get ,spec k))
                 (_ (not (eq t v))))
        (list k (auth-source-ensure-strings v))))
    (auth-source-search-keys ,spec))))