diff options
| author | Richard M. Stallman | 1998-08-18 11:06:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-08-18 11:06:30 +0000 |
| commit | 7a983715c8799d68773caa7b760b89a6d584a28f (patch) | |
| tree | 7de5bac256b3837f76eef65a753a1876500a2268 /src | |
| parent | c2b705904d5cdf7640021fd98d4184d24d200787 (diff) | |
| download | emacs-7a983715c8799d68773caa7b760b89a6d584a28f.tar.gz emacs-7a983715c8799d68773caa7b760b89a6d584a28f.zip | |
(Fcall_interactively): Pass new args to Fread_event
and Fread_char. Let Fread_char do the prompting.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callint.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/callint.c b/src/callint.c index c3591c8acb6..59b207c3a1d 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -498,11 +498,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.") | |||
| 498 | break; | 498 | break; |
| 499 | 499 | ||
| 500 | case 'c': /* Character */ | 500 | case 'c': /* Character */ |
| 501 | /* Use message_with_string rather than message1_nolog here, | 501 | args[i] = Fread_char (build_string (callint_message), Qnil); |
| 502 | so that nothing bad happens if callint_message is changed | ||
| 503 | within Fread_char (by a timer, for example). */ | ||
| 504 | message_with_string ("%s", build_string (callint_message), 0); | ||
| 505 | args[i] = Fread_char (); | ||
| 506 | message1_nolog ((char *) 0); | 502 | message1_nolog ((char *) 0); |
| 507 | /* Passing args[i] directly stimulates compiler bug */ | 503 | /* Passing args[i] directly stimulates compiler bug */ |
| 508 | teml = args[i]; | 504 | teml = args[i]; |
| @@ -566,7 +562,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.") | |||
| 566 | teml = Fget (teml, intern ("event-symbol-elements")); | 562 | teml = Fget (teml, intern ("event-symbol-elements")); |
| 567 | tem2 = Fmemq (intern ("down"), teml); | 563 | tem2 = Fmemq (intern ("down"), teml); |
| 568 | if (! NILP (tem2)) | 564 | if (! NILP (tem2)) |
| 569 | Fread_event (); | 565 | Fread_event (Qnil, Qnil); |
| 570 | } | 566 | } |
| 571 | } | 567 | } |
| 572 | break; | 568 | break; |
| @@ -593,7 +589,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.") | |||
| 593 | teml = Fget (teml, intern ("event-symbol-elements")); | 589 | teml = Fget (teml, intern ("event-symbol-elements")); |
| 594 | tem2 = Fmemq (intern ("down"), teml); | 590 | tem2 = Fmemq (intern ("down"), teml); |
| 595 | if (! NILP (tem2)) | 591 | if (! NILP (tem2)) |
| 596 | Fread_event (); | 592 | Fread_event (Qnil, Qnil); |
| 597 | } | 593 | } |
| 598 | } | 594 | } |
| 599 | break; | 595 | break; |