diff options
| author | Sean Whitton | 2025-03-12 10:09:09 +0800 |
|---|---|---|
| committer | Sean Whitton | 2025-03-12 10:09:09 +0800 |
| commit | 99852fb867e4d7d2090cbb82ff12d86d2a6ed9cc (patch) | |
| tree | 7d597de0644e89ee082f7d4c324a250d19cf4e88 /src | |
| parent | 85b147d32100d8da89366a19ab77f996fe011043 (diff) | |
| parent | 894b0e3a2fe064690eecda546f3b577886638140 (diff) | |
| download | emacs-99852fb867e4d7d2090cbb82ff12d86d2a6ed9cc.tar.gz emacs-99852fb867e4d7d2090cbb82ff12d86d2a6ed9cc.zip | |
Merge from origin/emacs-30
894b0e3a2fe ; Adapt comment in tramp.el
cc87717fa07 Add keyword placeholder to tramp.el
7d0d61d8549 Rewrite ERT manual introduction
b2f124f2a88 ; cperl-mode.el: Don't misinterpret exec_fcn as keyword exec
59d1aac49df Document return values of the various read-* functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/coding.c | 5 | ||||
| -rw-r--r-- | src/lread.c | 6 | ||||
| -rw-r--r-- | src/minibuf.c | 4 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/coding.c b/src/coding.c index 4f7cf23e96e..b0bd5d3a9ab 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -8625,7 +8625,8 @@ about coding-system objects. */) | |||
| 8625 | 8625 | ||
| 8626 | DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, | 8626 | DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, |
| 8627 | Sread_non_nil_coding_system, 1, 1, 0, | 8627 | Sread_non_nil_coding_system, 1, 1, 0, |
| 8628 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. */) | 8628 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. |
| 8629 | Return the symbol of the coding-system. */) | ||
| 8629 | (Lisp_Object prompt) | 8630 | (Lisp_Object prompt) |
| 8630 | { | 8631 | { |
| 8631 | Lisp_Object val; | 8632 | Lisp_Object val; |
| @@ -8641,6 +8642,8 @@ DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, | |||
| 8641 | DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0, | 8642 | DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0, |
| 8642 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. | 8643 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. |
| 8643 | If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. | 8644 | If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. |
| 8645 | Return the coding-system's symbol, or nil if both the user input and | ||
| 8646 | DEFAULT-CODING-SYSTEM are empty or null. | ||
| 8644 | Ignores case when completing coding systems (all Emacs coding systems | 8647 | Ignores case when completing coding systems (all Emacs coding systems |
| 8645 | are lower-case). */) | 8648 | are lower-case). */) |
| 8646 | (Lisp_Object prompt, Lisp_Object default_coding_system) | 8649 | (Lisp_Object prompt, Lisp_Object default_coding_system) |
diff --git a/src/lread.c b/src/lread.c index d45860fd470..add8deb3954 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -855,7 +855,7 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 855 | 855 | ||
| 856 | DEFUN ("read-char", Fread_char, Sread_char, 0, 3, 0, | 856 | DEFUN ("read-char", Fread_char, Sread_char, 0, 3, 0, |
| 857 | doc: /* Read a character event from the command input (keyboard or macro). | 857 | doc: /* Read a character event from the command input (keyboard or macro). |
| 858 | It is returned as a number. | 858 | Return the character as a number. |
| 859 | If the event has modifiers, they are resolved and reflected in the | 859 | If the event has modifiers, they are resolved and reflected in the |
| 860 | returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97). | 860 | returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97). |
| 861 | If some of the modifiers cannot be reflected in the character code, the | 861 | If some of the modifiers cannot be reflected in the character code, the |
| @@ -903,7 +903,7 @@ If `inhibit-interaction' is non-nil, this function will signal an | |||
| 903 | } | 903 | } |
| 904 | 904 | ||
| 905 | DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0, | 905 | DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0, |
| 906 | doc: /* Read an event object from the input stream. | 906 | doc: /* Read and return an event object from the input stream. |
| 907 | 907 | ||
| 908 | If you want to read non-character events, consider calling `read-key' | 908 | If you want to read non-character events, consider calling `read-key' |
| 909 | instead. `read-key' will decode events via `input-decode-map' that | 909 | instead. `read-key' will decode events via `input-decode-map' that |
| @@ -939,7 +939,7 @@ If `inhibit-interaction' is non-nil, this function will signal an | |||
| 939 | 939 | ||
| 940 | DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 3, 0, | 940 | DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 3, 0, |
| 941 | doc: /* Read a character event from the command input (keyboard or macro). | 941 | doc: /* Read a character event from the command input (keyboard or macro). |
| 942 | It is returned as a number. Non-character events are ignored. | 942 | Return the character as a number. Non-character events are ignored. |
| 943 | If the event has modifiers, they are resolved and reflected in the | 943 | If the event has modifiers, they are resolved and reflected in the |
| 944 | returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97). | 944 | returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97). |
| 945 | If some of the modifiers cannot be reflected in the character code, the | 945 | If some of the modifiers cannot be reflected in the character code, the |
diff --git a/src/minibuf.c b/src/minibuf.c index 720172a3aa4..b0d54bd51f0 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1296,7 +1296,7 @@ barf_if_interaction_inhibited (void) | |||
| 1296 | 1296 | ||
| 1297 | DEFUN ("read-from-minibuffer", Fread_from_minibuffer, | 1297 | DEFUN ("read-from-minibuffer", Fread_from_minibuffer, |
| 1298 | Sread_from_minibuffer, 1, 7, 0, | 1298 | Sread_from_minibuffer, 1, 7, 0, |
| 1299 | doc: /* Read a string from the minibuffer, prompting with string PROMPT. | 1299 | doc: /* Read and return a string from the minibuffer, prompting with string PROMPT. |
| 1300 | The optional second arg INITIAL-CONTENTS is an obsolete alternative to | 1300 | The optional second arg INITIAL-CONTENTS is an obsolete alternative to |
| 1301 | DEFAULT-VALUE. It normally should be nil in new code, except when | 1301 | DEFAULT-VALUE. It normally should be nil in new code, except when |
| 1302 | HIST is a cons. It is discussed in more detail below. | 1302 | HIST is a cons. It is discussed in more detail below. |
| @@ -1448,7 +1448,7 @@ inherits the current input method and the setting of | |||
| 1448 | } | 1448 | } |
| 1449 | 1449 | ||
| 1450 | DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, | 1450 | DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, |
| 1451 | doc: /* Read the name of a command and return as a symbol. | 1451 | doc: /* Read the name of a command and return it as a symbol. |
| 1452 | Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element | 1452 | Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element |
| 1453 | if it is a list. If DEFAULT-VALUE is omitted or nil, and the user enters | 1453 | if it is a list. If DEFAULT-VALUE is omitted or nil, and the user enters |
| 1454 | null input, return a symbol whose name is an empty string. */) | 1454 | null input, return a symbol whose name is an empty string. */) |