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 /doc | |
| 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 'doc')
| -rw-r--r-- | doc/lispref/minibuf.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 796be07ef14..3a2a9d82e97 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -1327,7 +1327,8 @@ is a string, @code{read-command} interns it before returning it. | |||
| 1327 | If it is a list, @code{read-command} interns the first element of this list. | 1327 | If it is a list, @code{read-command} interns the first element of this list. |
| 1328 | If @var{default} is @code{nil}, that means no default has been | 1328 | If @var{default} is @code{nil}, that means no default has been |
| 1329 | specified; then if the user enters null input, the return value is | 1329 | specified; then if the user enters null input, the return value is |
| 1330 | @code{(intern "")}, that is, a symbol whose name is an empty string. | 1330 | @code{(intern "")}, that is, a symbol whose name is an empty string, |
| 1331 | and whose printed representation is @code{##} (@pxref{Symbol Type}). | ||
| 1331 | 1332 | ||
| 1332 | @example | 1333 | @example |
| 1333 | (read-command "Command name? ") | 1334 | (read-command "Command name? ") |