]> code.delx.au - gnu-emacs/commitdiff
Remove compat code from auth-source
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Feb 2016 05:28:26 +0000 (16:28 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Feb 2016 05:28:26 +0000 (16:28 +1100)
* lisp/gnus/auth-source.el (auth-source-read-char-choice):
Remove compat code.

lisp/gnus/auth-source.el

index 32b39b924f9c4184b6dc6ee584351fb80dc68922..b9341f5ce8ebbdec1477f1f7164dcba65e8f6c66 100644 (file)
@@ -372,11 +372,7 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
            k)
 
       (while (not (memq k choices))
-        (setq k (cond
-                 ((fboundp 'read-char-choice)
-                  (read-char-choice full-prompt choices))
-                 (t (message "%s" full-prompt)
-                    (setq k (read-char))))))
+        (setq k (read-char-choice full-prompt choices)))
       k)))
 
 ;; (auth-source-pick nil :host "any" :port 'imap :user "joe")