diff options
| author | Kenichi Handa | 1998-12-22 06:06:48 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-12-22 06:06:48 +0000 |
| commit | fc351d2f65a539eb1f061ad1e9e104c67b822651 (patch) | |
| tree | d8e2bbd760a6196858eb288fee18a9f65fcd4edf /src | |
| parent | e6e114f23121e6e0305c32b8ee4b3eedde186c9f (diff) | |
| download | emacs-fc351d2f65a539eb1f061ad1e9e104c67b822651.tar.gz emacs-fc351d2f65a539eb1f061ad1e9e104c67b822651.zip | |
(Fread_char): Change the meaning of the second argument.
(Fread_event): Likewise.
(Fread_char_exclusive): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/lread.c b/src/lread.c index 84072550440..f173205f94d 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -510,27 +510,29 @@ If you want to read non-character events, or ignore them, call\n\ | |||
| 510 | `read-event' or `read-char-exclusive' instead.\n\ | 510 | `read-event' or `read-char-exclusive' instead.\n\ |
| 511 | \n\ | 511 | \n\ |
| 512 | If the optional argument PROMPT is non-nil, display that as a prompt.\n\ | 512 | If the optional argument PROMPT is non-nil, display that as a prompt.\n\ |
| 513 | If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ | 513 | If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\ |
| 514 | disable input method processing for this character.") | 514 | input method is turned on in the current buffer, that input method\n\ |
| 515 | (prompt, suppress_input_method) | 515 | is used for reading a character.") |
| 516 | Lisp_Object prompt, suppress_input_method; | 516 | (prompt, inherit_input_method) |
| 517 | Lisp_Object prompt, inherit_input_method; | ||
| 517 | { | 518 | { |
| 518 | if (! NILP (prompt)) | 519 | if (! NILP (prompt)) |
| 519 | message_with_string ("%s", prompt, 0); | 520 | message_with_string ("%s", prompt, 0); |
| 520 | return read_filtered_event (1, 1, 1, NILP (suppress_input_method)); | 521 | return read_filtered_event (1, 1, 1, ! NILP (inherit_input_method)); |
| 521 | } | 522 | } |
| 522 | 523 | ||
| 523 | DEFUN ("read-event", Fread_event, Sread_event, 0, 2, 0, | 524 | DEFUN ("read-event", Fread_event, Sread_event, 0, 2, 0, |
| 524 | "Read an event object from the input stream.\n\ | 525 | "Read an event object from the input stream.\n\ |
| 525 | If the optional argument PROMPT is non-nil, display that as a prompt.\n\ | 526 | If the optional argument PROMPT is non-nil, display that as a prompt.\n\ |
| 526 | If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ | 527 | If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\ |
| 527 | disable input method processing for this character.") | 528 | input method is turned on in the current buffer, that input method\n\ |
| 528 | (prompt, suppress_input_method) | 529 | is used for reading a character.") |
| 529 | Lisp_Object prompt, suppress_input_method; | 530 | (prompt, inherit_input_method) |
| 531 | Lisp_Object prompt, inherit_input_method; | ||
| 530 | { | 532 | { |
| 531 | if (! NILP (prompt)) | 533 | if (! NILP (prompt)) |
| 532 | message_with_string ("%s", prompt, 0); | 534 | message_with_string ("%s", prompt, 0); |
| 533 | return read_filtered_event (0, 0, 0, NILP (suppress_input_method)); | 535 | return read_filtered_event (0, 0, 0, ! NILP (inherit_input_method)); |
| 534 | } | 536 | } |
| 535 | 537 | ||
| 536 | DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 2, 0, | 538 | DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 2, 0, |
| @@ -538,14 +540,15 @@ DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 2, | |||
| 538 | It is returned as a number. Non-character events are ignored.\n\ | 540 | It is returned as a number. Non-character events are ignored.\n\ |
| 539 | \n\ | 541 | \n\ |
| 540 | If the optional argument PROMPT is non-nil, display that as a prompt.\n\ | 542 | If the optional argument PROMPT is non-nil, display that as a prompt.\n\ |
| 541 | If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ | 543 | If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\ |
| 542 | disable input method processing for this character.") | 544 | input method is turned on in the current buffer, that input method\n\ |
| 543 | (prompt, suppress_input_method) | 545 | is used for reading a character.") |
| 544 | Lisp_Object prompt, suppress_input_method; | 546 | (prompt, inherit_input_method) |
| 547 | Lisp_Object prompt, inherit_input_method; | ||
| 545 | { | 548 | { |
| 546 | if (! NILP (prompt)) | 549 | if (! NILP (prompt)) |
| 547 | message_with_string ("%s", prompt, 0); | 550 | message_with_string ("%s", prompt, 0); |
| 548 | return read_filtered_event (1, 1, 0, NILP (suppress_input_method)); | 551 | return read_filtered_event (1, 1, 0, ! NILP (inherit_input_method)); |
| 549 | } | 552 | } |
| 550 | 553 | ||
| 551 | DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, | 554 | DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, |