aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index db0307b1a6e..6f950839533 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -994,7 +994,7 @@ command_loop_1 ()
994#endif /* 0 */ 994#endif /* 0 */
995 995
996 /* Read next key sequence; i gets its length. */ 996 /* Read next key sequence; i gets its length. */
997 i = read_key_sequence (keybuf, (sizeof keybuf / sizeof (keybuf[0])), 0); 997 i = read_key_sequence (keybuf, (sizeof keybuf / sizeof (keybuf[0])), Qnil);
998 998
999 ++num_input_keys; 999 ++num_input_keys;
1000 1000
@@ -3715,7 +3715,7 @@ static int
3715read_key_sequence (keybuf, bufsize, prompt) 3715read_key_sequence (keybuf, bufsize, prompt)
3716 Lisp_Object *keybuf; 3716 Lisp_Object *keybuf;
3717 int bufsize; 3717 int bufsize;
3718 char *prompt; 3718 Lisp_Object prompt;
3719{ 3719{
3720 int count = specpdl_ptr - specpdl; 3720 int count = specpdl_ptr - specpdl;
3721 3721
@@ -3802,8 +3802,8 @@ read_key_sequence (keybuf, bufsize, prompt)
3802 3802
3803 if (INTERACTIVE) 3803 if (INTERACTIVE)
3804 { 3804 {
3805 if (prompt) 3805 if (!NILP (prompt))
3806 echo_prompt (prompt); 3806 echo_prompt (XSTRING (prompt)->data);
3807 else if (cursor_in_echo_area) 3807 else if (cursor_in_echo_area)
3808 /* This doesn't put in a dash if the echo buffer is empty, so 3808 /* This doesn't put in a dash if the echo buffer is empty, so
3809 you don't always see a dash hanging out in the minibuffer. */ 3809 you don't always see a dash hanging out in the minibuffer. */
@@ -3823,7 +3823,7 @@ read_key_sequence (keybuf, bufsize, prompt)
3823 3823
3824 /* Read the first char of the sequence specially, before setting 3824 /* Read the first char of the sequence specially, before setting
3825 up any keymaps, in case a filter runs and switches buffers on us. */ 3825 up any keymaps, in case a filter runs and switches buffers on us. */
3826 first_event = read_char (!prompt, 0, submaps, last_nonmenu_event, 3826 first_event = read_char (NILP (prompt), 0, submaps, last_nonmenu_event,
3827 &junk); 3827 &junk);
3828#endif /* GOBBLE_FIRST_EVENT */ 3828#endif /* GOBBLE_FIRST_EVENT */
3829 3829
@@ -3935,7 +3935,7 @@ read_key_sequence (keybuf, bufsize, prompt)
3935 { 3935 {
3936 struct buffer *buf = current_buffer; 3936 struct buffer *buf = current_buffer;
3937 3937
3938 key = read_char (!prompt, nmaps, submaps, last_nonmenu_event, 3938 key = read_char (NILP (prompt), nmaps, submaps, last_nonmenu_event,
3939 &used_mouse_menu); 3939 &used_mouse_menu);
3940 3940
3941 /* read_char returns t when it shows a menu and the user rejects it. 3941 /* read_char returns t when it shows a menu and the user rejects it.
@@ -4252,7 +4252,7 @@ read_key_sequence (keybuf, bufsize, prompt)
4252 tem = fkey_next; 4252 tem = fkey_next;
4253 4253
4254 GCPRO3 (fkey_map, keytran_map, delayed_switch_frame); 4254 GCPRO3 (fkey_map, keytran_map, delayed_switch_frame);
4255 fkey_next = call0 (fkey_next); 4255 fkey_next = call1 (fkey_next, prompt);
4256 UNGCPRO; 4256 UNGCPRO;
4257 /* If the function returned something invalid, 4257 /* If the function returned something invalid,
4258 barf--don't ignore it. 4258 barf--don't ignore it.
@@ -4345,7 +4345,7 @@ read_key_sequence (keybuf, bufsize, prompt)
4345 tem = keytran_next; 4345 tem = keytran_next;
4346 4346
4347 GCPRO3 (keytran_map, keytran_map, delayed_switch_frame); 4347 GCPRO3 (keytran_map, keytran_map, delayed_switch_frame);
4348 keytran_next = call0 (keytran_next); 4348 keytran_next = call1 (keytran_next, prompt);
4349 UNGCPRO; 4349 UNGCPRO;
4350 /* If the function returned something invalid, 4350 /* If the function returned something invalid,
4351 barf--don't ignore it. 4351 barf--don't ignore it.
@@ -4485,8 +4485,7 @@ DEFUN ("read-key-sequence", Fread_key_sequence, Sread_key_sequence, 1, 2, 0,
4485 if (NILP (continue_echo)) 4485 if (NILP (continue_echo))
4486 this_command_key_count = 0; 4486 this_command_key_count = 0;
4487 4487
4488 i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])), 4488 i = read_key_sequence (keybuf, (sizeof keybuf/sizeof (keybuf[0])), prompt);
4489 NILP (prompt) ? 0 : XSTRING (prompt)->data);
4490 4489
4491 if (i == -1) 4490 if (i == -1)
4492 { 4491 {