1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

Allow a function for the :secret in a plstore

* lisp/auth-source.el (auth-source-plstore-search): If the :secret
value is a function, call it on plist to obtain the real password.
This commit is contained in:
Andrew G Cohen 2020-08-27 13:14:26 +08:00
parent f8082a5cca
commit 90ce042154

View File

@ -2073,7 +2073,9 @@ entries for git.gnus.org:
(setcar
(cdr secret)
(let ((v (car (cdr secret))))
(lambda () v))))
(if (functionp v)
(lambda () (funcall v plist))
(lambda () v)))))
plist))
items))
;; ensure each item has each key in `returned-keys'