(auth-source-search): Only ask a single backend to create the credentials.
* auth-source.el (auth-source-search): Don't try to create credentials
if the caller doesn't want that.
+ (auth-source-search): If we don't find a match, don't bug out on
+ non-bound variables.
+ (auth-source-search): Only ask a single backend to create the
+ credentials.
* nnimap.el (nnimap-log-command): Add a newline to the inhibited
logging.
;; create the entries.
(when (and create
(not matches))
- (let ((match (apply
- (slot-value backend 'search-function)
- :backend backend
- :create create
- :delete delete
- spec)))
- (when match
- (push (list backend match) matches))))
+ (dolist (backend filtered-backends)
+ (unless matches
+ (let ((match (apply
+ (slot-value backend 'search-function)
+ :backend backend
+ :create create
+ :delete delete
+ spec)))
+ (when match
+ (push (list backend match) matches))))))
(setq backend (caar matches)
found-here (cadar matches))