diff options
| author | Eli Zaretskii | 2019-04-11 17:00:44 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-04-11 17:00:44 +0300 |
| commit | 85829363f728c410e33ffdc3839202977b2115cc (patch) | |
| tree | 7f6c50991427f46b9fbd789f5daf6ae3eba11ecc /src | |
| parent | dc81c051ec9412238c5c3485cf075089205dfb35 (diff) | |
| download | emacs-85829363f728c410e33ffdc3839202977b2115cc.tar.gz emacs-85829363f728c410e33ffdc3839202977b2115cc.zip | |
Improve documentation of 'read-command'
* src/minibuf.c (Fread_command): Document the return value
when DEFAULT-VALUE is nil and the user enters nothing.
* doc/lispref/minibuf.texi (High-Level Completion): Document
the printed representation of a symbol whose name is empty.
(Bug#3522)
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 6964f350ffe..a33ddf40a1c 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1054,7 +1054,8 @@ the current input method and the setting of`enable-multibyte-characters'. */) | |||
| 1054 | DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, | 1054 | DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, |
| 1055 | doc: /* Read the name of a command and return as a symbol. | 1055 | doc: /* Read the name of a command and return as a symbol. |
| 1056 | Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element | 1056 | Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element |
| 1057 | if it is a list. */) | 1057 | if it is a list. If DEFAULT-VALUE is omitted or nil, and the user enters |
| 1058 | null input, return a symbol whose name is an empty string. */) | ||
| 1058 | (Lisp_Object prompt, Lisp_Object default_value) | 1059 | (Lisp_Object prompt, Lisp_Object default_value) |
| 1059 | { | 1060 | { |
| 1060 | Lisp_Object name, default_string; | 1061 | Lisp_Object name, default_string; |