]> git.eshelyaron.com Git - emacs.git/commitdiff
auth-source.el (auth-source-netrc-create): Show the default in the prompt when prompt...
authorTeodor Zlatanov <tzz@lifelogs.com>
Sun, 13 Mar 2011 20:50:07 +0000 (20:50 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 13 Mar 2011 20:50:07 +0000 (20:50 +0000)
lisp/gnus/ChangeLog
lisp/gnus/auth-source.el

index ec12faada982036a811492df8c82a5be6ad05cf5..af0bd1519c7ab24a919241e7e094d67fc499efe8 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0fb153ad09b7a51f3ec27c8d325a3f525d6c7e85..52f2b92e933e92c1ce6cb60ce4fc27f2607bffd2 100644 (file)
@@ -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))))