Mercurial > emacs
changeset 23933:d993b7332153
(Fread_char): Change the meaning of the second argument.
(Fread_event): Likewise.
(Fread_char_exclusive): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 22 Dec 1998 06:06:48 +0000 |
parents | 08e1d4876918 |
children | 93f40b344070 |
files | src/lread.c |
diffstat | 1 files changed, 18 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lread.c Tue Dec 22 06:06:48 1998 +0000 +++ b/src/lread.c Tue Dec 22 06:06:48 1998 +0000 @@ -510,27 +510,29 @@ `read-event' or `read-char-exclusive' instead.\n\ \n\ If the optional argument PROMPT is non-nil, display that as a prompt.\n\ -If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ -disable input method processing for this character.") - (prompt, suppress_input_method) - Lisp_Object prompt, suppress_input_method; +If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\ +input method is turned on in the current buffer, that input method\n\ +is used for reading a character.") + (prompt, inherit_input_method) + Lisp_Object prompt, inherit_input_method; { if (! NILP (prompt)) message_with_string ("%s", prompt, 0); - return read_filtered_event (1, 1, 1, NILP (suppress_input_method)); + return read_filtered_event (1, 1, 1, ! NILP (inherit_input_method)); } DEFUN ("read-event", Fread_event, Sread_event, 0, 2, 0, "Read an event object from the input stream.\n\ If the optional argument PROMPT is non-nil, display that as a prompt.\n\ -If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ -disable input method processing for this character.") - (prompt, suppress_input_method) - Lisp_Object prompt, suppress_input_method; +If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\ +input method is turned on in the current buffer, that input method\n\ +is used for reading a character.") + (prompt, inherit_input_method) + Lisp_Object prompt, inherit_input_method; { if (! NILP (prompt)) message_with_string ("%s", prompt, 0); - return read_filtered_event (0, 0, 0, NILP (suppress_input_method)); + return read_filtered_event (0, 0, 0, ! NILP (inherit_input_method)); } DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 2, 0, @@ -538,14 +540,15 @@ It is returned as a number. Non-character events are ignored.\n\ \n\ If the optional argument PROMPT is non-nil, display that as a prompt.\n\ -If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ -disable input method processing for this character.") - (prompt, suppress_input_method) - Lisp_Object prompt, suppress_input_method; +If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\ +input method is turned on in the current buffer, that input method\n\ +is used for reading a character.") + (prompt, inherit_input_method) + Lisp_Object prompt, inherit_input_method; { if (! NILP (prompt)) message_with_string ("%s", prompt, 0); - return read_filtered_event (1, 1, 0, NILP (suppress_input_method)); + return read_filtered_event (1, 1, 0, ! NILP (inherit_input_method)); } DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0,