Commit 67613d31 authored by Ted Zlatanov's avatar Ted Zlatanov Committed by Katsumi Yamaoka

auth-source.el (auth-source-netrc-create): Show the default in the prompt when...

auth-source.el (auth-source-netrc-create): Show the default in the prompt when prompting for token creation.
parent d251f04b
2011-03-13 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-netrc-create): Show the default in the
prompt when prompting for token creation.
2011-03-12 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-format-prompt): Always convert the value
......
......@@ -1100,6 +1100,10 @@ See `auth-source-search' for details on SPEC."
;; special case prompt for passwords
(read-passwd prompt))
((null data)
(when default
(setq
prompt
(concat prompt (format "(default %s) " default))))
(read-string prompt nil nil default))
(t (or data default))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment