diff options
| author | Eli Zaretskii | 2025-03-09 07:33:13 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2025-03-09 07:33:13 -0400 |
| commit | bcfa9692f05ccc61c6816da249ea540c3fee297a (patch) | |
| tree | 84bf51dbdb9fadef52191ea1c58379360a51fc47 /src | |
| parent | 6fb68f4310d808827b83da053fbc112b316b7757 (diff) | |
| parent | af8017b23f6d94266dd05dcd084c8d7656393db8 (diff) | |
| download | emacs-bcfa9692f05ccc61c6816da249ea540c3fee297a.tar.gz emacs-bcfa9692f05ccc61c6816da249ea540c3fee297a.zip | |
Merge from origin/emacs-30
af8017b23f6 Explicitly document read-string return value
cf03c2b6093 Improve docstrings of python.el import management
01bcc6961a6 ; Improve doc strings of Speedbar
bd9c76ab175 Avoid warnings about 'image-scaling-factor' in builds --w...
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 455d2f2b62d..720172a3aa4 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1406,20 +1406,28 @@ and some related functions, which use zero-indexing for POSITION. */) | |||
| 1406 | /* Functions that use the minibuffer to read various things. */ | 1406 | /* Functions that use the minibuffer to read various things. */ |
| 1407 | 1407 | ||
| 1408 | DEFUN ("read-string", Fread_string, Sread_string, 1, 5, 0, | 1408 | DEFUN ("read-string", Fread_string, Sread_string, 1, 5, 0, |
| 1409 | doc: /* Read a string from the minibuffer, prompting with string PROMPT. | 1409 | doc: /* Read and return a string from the minibuffer, prompting with PROMPT. |
| 1410 | If non-nil, second arg INITIAL-INPUT is a string to insert before reading. | 1410 | |
| 1411 | This argument has been superseded by DEFAULT-VALUE and should normally be nil | 1411 | PROMPT is a string, which should normally end with the string ": ". |
| 1412 | in new code. It behaves as INITIAL-CONTENTS in `read-from-minibuffer' (which | 1412 | |
| 1413 | see). | 1413 | If non-nil, second arg INITIAL-INPUT is a string to insert before |
| 1414 | The third arg HISTORY, if non-nil, specifies a history list | 1414 | reading. This argument has been superseded by DEFAULT-VALUE and should |
| 1415 | and optionally the initial position in the list. | 1415 | normally be nil in new code. It behaves as INITIAL-CONTENTS in |
| 1416 | `read-from-minibuffer' (which see). | ||
| 1417 | |||
| 1418 | The third arg HISTORY, if non-nil, specifies a history list and | ||
| 1419 | optionally the initial position in the list. | ||
| 1420 | |||
| 1416 | See `read-from-minibuffer' for details of HISTORY argument. | 1421 | See `read-from-minibuffer' for details of HISTORY argument. |
| 1417 | Fourth arg DEFAULT-VALUE is the default value or the list of default values. | 1422 | |
| 1418 | If non-nil, it is used for history commands, and as the value (or the first | 1423 | Fourth arg DEFAULT-VALUE is the default value or the list of default |
| 1419 | element of the list of default values) to return if the user enters the | 1424 | values. If non-nil, it is used for history commands, and as the value |
| 1420 | empty string. | 1425 | (or the first element of the list of default values) to return if the |
| 1421 | Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits | 1426 | user enters the empty string. |
| 1422 | the current input method and the setting of `enable-multibyte-characters'. */) | 1427 | |
| 1428 | Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer | ||
| 1429 | inherits the current input method and the setting of | ||
| 1430 | `enable-multibyte-characters'. */) | ||
| 1423 | (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method) | 1431 | (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method) |
| 1424 | { | 1432 | { |
| 1425 | Lisp_Object val; | 1433 | Lisp_Object val; |