diff options
| -rw-r--r-- | lisp/subr.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 39a9caa3106..81f774bdc68 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1329,7 +1329,8 @@ Optional DEFAULT is a default password to use instead of empty input." | |||
| 1329 | (while | 1329 | (while |
| 1330 | (progn | 1330 | (progn |
| 1331 | (let ((str (read-from-minibuffer prompt nil nil nil nil | 1331 | (let ((str (read-from-minibuffer prompt nil nil nil nil |
| 1332 | (number-to-string default)))) | 1332 | (and default |
| 1333 | (number-to-string default))))) | ||
| 1333 | (setq n (cond | 1334 | (setq n (cond |
| 1334 | ((zerop (length str)) default) | 1335 | ((zerop (length str)) default) |
| 1335 | ((stringp str) (read str))))) | 1336 | ((stringp str) (read str))))) |