aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSean Whitton2025-03-12 10:09:09 +0800
committerSean Whitton2025-03-12 10:09:09 +0800
commit99852fb867e4d7d2090cbb82ff12d86d2a6ed9cc (patch)
tree7d597de0644e89ee082f7d4c324a250d19cf4e88 /src
parent85b147d32100d8da89366a19ab77f996fe011043 (diff)
parent894b0e3a2fe064690eecda546f3b577886638140 (diff)
downloademacs-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.c5
-rw-r--r--src/lread.c6
-rw-r--r--src/minibuf.c4
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
8626DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, 8626DEFUN ("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.
8629Return 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,
8641DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0, 8642DEFUN ("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.
8643If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. 8644If the user enters null input, return second argument DEFAULT-CODING-SYSTEM.
8645Return the coding-system's symbol, or nil if both the user input and
8646DEFAULT-CODING-SYSTEM are empty or null.
8644Ignores case when completing coding systems (all Emacs coding systems 8647Ignores case when completing coding systems (all Emacs coding systems
8645are lower-case). */) 8648are 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
856DEFUN ("read-char", Fread_char, Sread_char, 0, 3, 0, 856DEFUN ("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).
858It is returned as a number. 858Return the character as a number.
859If the event has modifiers, they are resolved and reflected in the 859If the event has modifiers, they are resolved and reflected in the
860returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97). 860returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97).
861If some of the modifiers cannot be reflected in the character code, the 861If 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
905DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0, 905DEFUN ("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
908If you want to read non-character events, consider calling `read-key' 908If you want to read non-character events, consider calling `read-key'
909instead. `read-key' will decode events via `input-decode-map' that 909instead. `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
940DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 3, 0, 940DEFUN ("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).
942It is returned as a number. Non-character events are ignored. 942Return the character as a number. Non-character events are ignored.
943If the event has modifiers, they are resolved and reflected in the 943If the event has modifiers, they are resolved and reflected in the
944returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97). 944returned character code if possible (e.g. C-SPC yields 0 and C-a yields 97).
945If some of the modifiers cannot be reflected in the character code, the 945If 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
1297DEFUN ("read-from-minibuffer", Fread_from_minibuffer, 1297DEFUN ("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.
1300The optional second arg INITIAL-CONTENTS is an obsolete alternative to 1300The 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
1450DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, 1450DEFUN ("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.
1452Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element 1452Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
1453if it is a list. If DEFAULT-VALUE is omitted or nil, and the user enters 1453if it is a list. If DEFAULT-VALUE is omitted or nil, and the user enters
1454null input, return a symbol whose name is an empty string. */) 1454null input, return a symbol whose name is an empty string. */)