mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
auth.texi (Help for users): Use :port instead of :protocol for all auth-source docs.
auth-source.el (auth-source-netrc-parse): Use :port instead of :protocol and accept a missing user, host, or port as a wildcard match. (auth-source-netrc-search, auth-source-netrc-create) (auth-source-secrets-search, auth-source-secrets-create) (auth-source-user-or-password, auth-source-backend, auth-sources) (auth-source-backend-parse-parameters, auth-source-search): Use :port instead of :protocol. nnimap.el (nnimap-credentials): Pass a port default to `auth-source-search' in case an entry needs to be created. (nnimap-open-connection-1): Use :port instead of :protocol.
This commit is contained in:
parent
73057ba922
commit
35123c042e
5 changed files with 87 additions and 65 deletions
|
|
@ -105,8 +105,7 @@ It's known as @var{:host} in @code{auth-source-search} queries. You
|
|||
can also use @code{host}.
|
||||
|
||||
The @code{port} is the connection port or protocol. It's known as
|
||||
@var{:port} in @code{auth-source-search} queries. You can also use
|
||||
@code{protocol}.
|
||||
@var{:port} in @code{auth-source-search} queries.
|
||||
|
||||
The @code{user} is the user name. It's known as @var{:user} in
|
||||
@code{auth-source-search} queries. You can also use @code{login} and
|
||||
|
|
@ -155,8 +154,8 @@ particular host and protocol. While you can get fancy, the default
|
|||
and simplest configuration is:
|
||||
|
||||
@lisp
|
||||
;;; old default: required :host and :protocol, not needed anymore
|
||||
(setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
|
||||
;;; old default: required :host and :port, not needed anymore
|
||||
(setq auth-sources '((:source "~/.authinfo.gpg" :host t :port t)))
|
||||
;;; mostly equivalent (see below about fallbacks) but shorter:
|
||||
(setq auth-sources '((:source "~/.authinfo.gpg")))
|
||||
;;; even shorter and the @emph{default}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue