Use `auth-source-read-char-choice' instead of `read-char'.
authorTed Zlatanov <tzz@lifelogs.com>
Wed, 9 Mar 2011 11:01:17 +0000 (05:01 -0600)
committerTed Zlatanov <tzz@lifelogs.com>
Wed, 9 Mar 2011 11:01:17 +0000 (05:01 -0600)
commitbb1ecd951a7b6bc23d73941533a6da1838f606cc
tree5653baee18905ef0ab35aa4b8e534c9de4602625
parent39fc4d785e06335f65451ba04e30b59e910379be
Use `auth-source-read-char-choice' instead of `read-char'.

* auth-source.el (auth-source-read-char-choice): New function to read a
character choice using `dropdown-list', `read-char-choice', or
`read-char'.  It appends "[a/b/c] " to the prompt if the choices were
'(?a ?b ?c).  The `dropdown-list' support is disabled for now.
(auth-source-netrc-saver): Use it.
lisp/ChangeLog
lisp/auth-source.el