aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2011-02-18 23:15:24 +0000
committerKatsumi Yamaoka2011-02-18 23:15:24 +0000
commit0d873e93b77d39afd834e80c9f05c3aeeadacee8 (patch)
tree6e312ec1982dd7462b5fe3cd1d4207efc75352e3
parentabd20d91abead79a6a40be445b5926515fbfd5a8 (diff)
downloademacs-0d873e93b77d39afd834e80c9f05c3aeeadacee8.tar.gz
emacs-0d873e93b77d39afd834e80c9f05c3aeeadacee8.zip
auth-source.el (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.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/auth-source.el18
2 files changed, 14 insertions, 8 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index b40c6b7d60f..af25ecae6ba 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -2,6 +2,10 @@
2 2
3 * auth-source.el (auth-source-search): Don't try to create credentials 3 * auth-source.el (auth-source-search): Don't try to create credentials
4 if the caller doesn't want that. 4 if the caller doesn't want that.
5 (auth-source-search): If we don't find a match, don't bug out on
6 non-bound variables.
7 (auth-source-search): Only ask a single backend to create the
8 credentials.
5 9
6 * nnimap.el (nnimap-log-command): Add a newline to the inhibited 10 * nnimap.el (nnimap-log-command): Add a newline to the inhibited
7 logging. 11 logging.
diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el
index 4fdf521b1a9..c2f57abb917 100644
--- a/lisp/gnus/auth-source.el
+++ b/lisp/gnus/auth-source.el
@@ -544,14 +544,16 @@ must call it to obtain the actual value."
544 ;; create the entries. 544 ;; create the entries.
545 (when (and create 545 (when (and create
546 (not matches)) 546 (not matches))
547 (let ((match (apply 547 (dolist (backend filtered-backends)
548 (slot-value backend 'search-function) 548 (unless matches
549 :backend backend 549 (let ((match (apply
550 :create create 550 (slot-value backend 'search-function)
551 :delete delete 551 :backend backend
552 spec))) 552 :create create
553 (when match 553 :delete delete
554 (push (list backend match) matches)))) 554 spec)))
555 (when match
556 (push (list backend match) matches))))))
555 557
556 (setq backend (caar matches) 558 (setq backend (caar matches)
557 found-here (cadar matches)) 559 found-here (cadar matches))