Fix auth-info-password
* lisp/auth-source.el (auth-info-password): :secret can be a cascaded function.
This commit is contained in:
parent
778f8c793d
commit
59261e6f4f
1 changed files with 3 additions and 3 deletions
|
@ -874,9 +874,9 @@ while \(:host t) would find all host entries."
|
|||
(defun auth-info-password (auth-info)
|
||||
"Return the :secret password from the AUTH-INFO."
|
||||
(let ((secret (plist-get auth-info :secret)))
|
||||
(if (functionp secret)
|
||||
(funcall secret)
|
||||
secret)))
|
||||
(while (functionp secret)
|
||||
(setq secret (funcall secret)))
|
||||
secret))
|
||||
|
||||
(defun auth-source-pick-first-password (&rest spec)
|
||||
"Pick the first secret found by applying `auth-source-search' to SPEC."
|
||||
|
|
Loading…
Add table
Reference in a new issue