Function: auth-source-pick-first-password
auth-source-pick-first-password is a byte-compiled function defined in
auth-source.el.gz.
Signature
(auth-source-pick-first-password &rest SPEC)
Documentation
Pick the first secret found from applying SPEC to auth-source-search.
Source Code
;; Defined in /usr/src/emacs/lisp/auth-source.el.gz
(defun auth-source-pick-first-password (&rest spec)
"Pick the first secret found from applying SPEC to `auth-source-search'."
(let* ((result (nth 0 (apply #'auth-source-search (plist-put spec :max 1))))
(secret (plist-get result :secret)))
(if (functionp secret)
(funcall secret)
secret)))