aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-12-22 06:06:48 +0000
committerKenichi Handa1998-12-22 06:06:48 +0000
commitfc351d2f65a539eb1f061ad1e9e104c67b822651 (patch)
treed8e2bbd760a6196858eb288fee18a9f65fcd4edf /src
parente6e114f23121e6e0305c32b8ee4b3eedde186c9f (diff)
downloademacs-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.c33
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\
512If the optional argument PROMPT is non-nil, display that as a prompt.\n\ 512If the optional argument PROMPT is non-nil, display that as a prompt.\n\
513If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ 513If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\
514disable input method processing for this character.") 514input method is turned on in the current buffer, that input method\n\
515 (prompt, suppress_input_method) 515is 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
523DEFUN ("read-event", Fread_event, Sread_event, 0, 2, 0, 524DEFUN ("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\
525If the optional argument PROMPT is non-nil, display that as a prompt.\n\ 526If the optional argument PROMPT is non-nil, display that as a prompt.\n\
526If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ 527If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\
527disable input method processing for this character.") 528input method is turned on in the current buffer, that input method\n\
528 (prompt, suppress_input_method) 529is 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
536DEFUN ("read-char-exclusive", Fread_char_exclusive, Sread_char_exclusive, 0, 2, 0, 538DEFUN ("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,
538It is returned as a number. Non-character events are ignored.\n\ 540It is returned as a number. Non-character events are ignored.\n\
539\n\ 541\n\
540If the optional argument PROMPT is non-nil, display that as a prompt.\n\ 542If the optional argument PROMPT is non-nil, display that as a prompt.\n\
541If the optional argument SUPPRESS-INPUT-METHOD is non-nil,\n\ 543If the optional argument INHERIT-INPUT-METHOD is non-nil and some\n\
542disable input method processing for this character.") 544input method is turned on in the current buffer, that input method\n\
543 (prompt, suppress_input_method) 545is 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
551DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, 554DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0,