diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-09-03 22:29:06 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-09-03 22:29:06 +0000 |
commit | 1b96d0bc9fd746a230a4e292e320ff1d2e19984d (patch) | |
tree | 08c950d9ffec5d5d3053bbd5622f1464ca7efa8b /lisp | |
parent | aa65079de0a336187f28d1c9b1f4e63b8fd46809 (diff) | |
download | emacs-1b96d0bc9fd746a230a4e292e320ff1d2e19984d.tar.gz |
(read-language-name): Use a default, not an initial input.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/international/mule-cmds.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index dee700d5268..96a02749123 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -313,15 +313,15 @@ ALIST is an alist of KEY and INFO. See the documentation of (set-language-info language-name (car (car alist)) (cdr (car alist))) (setq alist (cdr alist)))) -(defun read-language-name (key prompt &optional initial-input) +(defun read-language-name (key prompt &optional default) "Read language name which has information for KEY, prompting with PROMPT. +DEFAULT is the default choice of language. It returns a string as language name." (let* ((completion-ignore-case t) (name (completing-read prompt language-info-alist (function (lambda (elm) (assq key elm))) - t - initial-input))) + t nil nil default))) (if (and (> (length name) 0) (get-language-info name key)) name))) |