Query for password, although there are no existing auth sources.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 26 Sep 2010 12:26:18 +0000 (14:26 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 26 Sep 2010 12:26:18 +0000 (14:26 +0200)
lisp/auth-source.el

index a0be0ca..6f4a4ac 100644 (file)
@@ -430,8 +430,9 @@ MODE can be \"login\" or \"password\"."
          (and found (return found)))
 
        ;; We haven't found something, so we will create it interactively.
-       (when (and (not found) choices create-missing)
-         (setq found (apply 'auth-source-create mode (car choices) search)))
+       (when (and (not found) create-missing)
+         (setq found (apply 'auth-source-create
+                            mode (car auth-sources) search)))
 
        ;; Cache the result.
        (when found