]> git.eshelyaron.com Git - emacs.git/commit
Add `auth-info-password' and use it instead of ad hoc code
authorSam Steingold <sds@gnu.org>
Thu, 6 Jan 2022 19:42:10 +0000 (14:42 -0500)
committerSam Steingold <sds@gnu.org>
Fri, 7 Jan 2022 19:48:59 +0000 (14:48 -0500)
commitad5cf84fa737d26ed12e75e09e5f079df0efe5f6
tree0d437cdfc791c9742850118edfc8927a7992b76f
parent19c6cad1821eb896b2ddd0f6eab030f0880ea254
Add `auth-info-password' and use it instead of ad hoc code

* lisp/auth-source.el (auth-info-password):
  Extract from `auth-source-pick-first-password'.
(auth-source-pick-first-password, auth-source-secrets-create)
(auth-source-user-and-password): Use `auth-info-password'.
* lisp/erc/erc-services.el (erc-nickserv-get-password):
  Use `auth-source-pick-first-password'.
* lisp/erc/erc.el (erc-open, erc-server-join-channel): Likewise.
* lisp/gnus/mail-source.el (mail-source-set-1): Add a comment.
* lisp/gnus/nnimap.el (nnimap-credentials): Use `auth-info-password'.
* lisp/gnus/nntp.el (nntp-send-authinfo): Likewise.
* lisp/mail/rmail.el (rmail-get-remote-password): Likewise.
* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Likewise.
* lisp/net/sieve-manage.el (sieve-sasl-auth): Likewise.
* lisp/net/tramp.el (tramp-read-passwd): Likewise.
* lisp/net/rcirc.el (rcirc): Likewise (fixes a bug: the possibility
  that password might be a function was not handled).
lisp/auth-source.el
lisp/erc/erc-services.el
lisp/erc/erc.el
lisp/gnus/mail-source.el
lisp/gnus/nnimap.el
lisp/gnus/nntp.el
lisp/mail/rmail.el
lisp/mail/smtpmail.el
lisp/net/rcirc.el
lisp/net/sieve-manage.el
lisp/net/tramp.el