diff options
| author | Jim Blandy | 1993-02-22 14:43:44 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-02-22 14:43:44 +0000 |
| commit | cb5df6ae17fd30e30b1e872f2c5a13c872ca59ee (patch) | |
| tree | b061bf04896ab6faf9f40221058441a239d4a55c /src | |
| parent | 074577b8ff2c961718f2a0839a75542553762368 (diff) | |
| download | emacs-cb5df6ae17fd30e30b1e872f2c5a13c872ca59ee.tar.gz emacs-cb5df6ae17fd30e30b1e872f2c5a13c872ca59ee.zip | |
* keyboard.c (init_keyboard): Recognize HAVE_TERMIOS as well as
HAVE_TERMIO.
* keyboard.c (echo_char): Apply XINT to c before passing it to
push_key_description.
* keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
* lread.c (Feval_buffer): Same.
* window.c (Fscroll_other_window): Same.
* keyboard.c (command_loop_1): Apply XINT to c before passing it
to internal_self_insert and direct_output_for_insert.
* keyboard.c (make_lispy_movement): Rename the variable `part'
declared in the block handling scrollbar movement to `part_sym',
to avoid potential conflicts with the argument named `part'.
Apparently the semantics of expressions like this are unclear.
* keyboard.c (Fread_key_sequence): Backslash the newlines in this
docstring.
* textprop.c (Fget_text_property): Same.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 64 |
1 files changed, 31 insertions, 33 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 404bbb30d02..42afeb3f0d0 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -452,7 +452,7 @@ echo_char (c) | |||
| 452 | if (ptr - echobuf > sizeof echobuf - 6) | 452 | if (ptr - echobuf > sizeof echobuf - 6) |
| 453 | return; | 453 | return; |
| 454 | 454 | ||
| 455 | ptr = push_key_description (c, ptr); | 455 | ptr = push_key_description (XINT (c), ptr); |
| 456 | } | 456 | } |
| 457 | else if (XTYPE (c) == Lisp_Symbol) | 457 | else if (XTYPE (c) == Lisp_Symbol) |
| 458 | { | 458 | { |
| @@ -581,8 +581,7 @@ recursive_edit_1 () | |||
| 581 | if (EQ (val, Qt)) | 581 | if (EQ (val, Qt)) |
| 582 | Fsignal (Qquit, Qnil); | 582 | Fsignal (Qquit, Qnil); |
| 583 | 583 | ||
| 584 | unbind_to (count); | 584 | return unbind_to (count, Qnil); |
| 585 | return Qnil; | ||
| 586 | } | 585 | } |
| 587 | 586 | ||
| 588 | /* When an auto-save happens, record the "time", and don't do again soon. */ | 587 | /* When an auto-save happens, record the "time", and don't do again soon. */ |
| @@ -863,7 +862,7 @@ command_loop_1 () | |||
| 863 | int count = specpdl_ptr - specpdl; | 862 | int count = specpdl_ptr - specpdl; |
| 864 | specbind (Qinhibit_quit, Qt); | 863 | specbind (Qinhibit_quit, Qt); |
| 865 | Fsit_for (make_number (2), Qnil, Qnil); | 864 | Fsit_for (make_number (2), Qnil, Qnil); |
| 866 | unbind_to (count); | 865 | unbind_to (count, Qnil); |
| 867 | 866 | ||
| 868 | echo_area_glyphs = 0; | 867 | echo_area_glyphs = 0; |
| 869 | no_direct = 1; | 868 | no_direct = 1; |
| @@ -1003,7 +1002,7 @@ command_loop_1 () | |||
| 1003 | || !EQ (current_buffer->selective_display, Qnil) | 1002 | || !EQ (current_buffer->selective_display, Qnil) |
| 1004 | || detect_input_pending () | 1003 | || detect_input_pending () |
| 1005 | || !NILP (Vexecuting_macro); | 1004 | || !NILP (Vexecuting_macro); |
| 1006 | if (internal_self_insert (c, 0)) | 1005 | if (internal_self_insert (XINT (c), 0)) |
| 1007 | { | 1006 | { |
| 1008 | lose = 1; | 1007 | lose = 1; |
| 1009 | nonundocount = 0; | 1008 | nonundocount = 0; |
| @@ -1015,7 +1014,7 @@ command_loop_1 () | |||
| 1015 | = window_display_table (XWINDOW (selected_window)); | 1014 | = window_display_table (XWINDOW (selected_window)); |
| 1016 | 1015 | ||
| 1017 | if (dp == 0 || XTYPE (dp->contents[c]) != Lisp_String) | 1016 | if (dp == 0 || XTYPE (dp->contents[c]) != Lisp_String) |
| 1018 | no_redisplay = direct_output_for_insert (c); | 1017 | no_redisplay = direct_output_for_insert (XINT (c)); |
| 1019 | else if (XSTRING (dp->contents[c])->size | 1018 | else if (XSTRING (dp->contents[c])->size |
| 1020 | == sizeof (GLYPH)) | 1019 | == sizeof (GLYPH)) |
| 1021 | no_redisplay = | 1020 | no_redisplay = |
| @@ -2029,14 +2028,14 @@ make_lispy_movement (frame, bar_window, part, x, y, time) | |||
| 2029 | /* Is it a scrollbar movement? */ | 2028 | /* Is it a scrollbar movement? */ |
| 2030 | if (frame && ! NILP (bar_window)) | 2029 | if (frame && ! NILP (bar_window)) |
| 2031 | { | 2030 | { |
| 2032 | Lisp_Object part = *scrollbar_parts[(int) part]; | 2031 | Lisp_Object part_sym = *scrollbar_parts[(int) part]; |
| 2033 | 2032 | ||
| 2034 | return Fcons (Qscrollbar_movement, | 2033 | return Fcons (Qscrollbar_movement, |
| 2035 | (Fcons (Fcons (bar_window, | 2034 | (Fcons (Fcons (bar_window, |
| 2036 | Fcons (Qvertical_scrollbar, | 2035 | Fcons (Qvertical_scrollbar, |
| 2037 | Fcons (Fcons (x, y), | 2036 | Fcons (Fcons (x, y), |
| 2038 | Fcons (make_number (time), | 2037 | Fcons (make_number (time), |
| 2039 | Fcons (part, | 2038 | Fcons (part_sym, |
| 2040 | Qnil))))), | 2039 | Qnil))))), |
| 2041 | Qnil))); | 2040 | Qnil))); |
| 2042 | } | 2041 | } |
| @@ -3466,30 +3465,29 @@ First arg PROMPT is a prompt string. If nil, do not prompt specially.\n\ | |||
| 3466 | Second (optional) arg CONTINUE-ECHO, if non-nil, means this key echos\n\ | 3465 | Second (optional) arg CONTINUE-ECHO, if non-nil, means this key echos\n\ |
| 3467 | as a continuation of the previous key.\n\ | 3466 | as a continuation of the previous key.\n\ |
| 3468 | \n\ | 3467 | \n\ |
| 3469 | 3468 | A C-g typed while in this function is treated like any other character,\n\ | |
| 3470 | A C-g typed while in this function is treated like any other character, | 3469 | and `quit-flag' is not set.\n\ |
| 3471 | and `quit-flag' is not set. | 3470 | \n\ |
| 3472 | 3471 | If the key sequence starts with a mouse click, then the sequence is read\n\ | |
| 3473 | If the key sequence starts with a mouse click, then the sequence is read | 3472 | using the keymaps of the buffer of the window clicked in, not the buffer\n\ |
| 3474 | using the keymaps of the buffer of the window clicked in, not the buffer | 3473 | of the selected window as normal.\n\ |
| 3475 | of the selected window as normal. | 3474 | \n\ |
| 3476 | 3475 | `read-key-sequence' drops unbound button-down events, since you normally\n\ | |
| 3477 | `read-key-sequence' drops unbound button-down events, since you normally | 3476 | only care about the click or drag events which follow them. If a drag\n\ |
| 3478 | only care about the click or drag events which follow them. If a drag | 3477 | event is unbound, but the corresponding click event would be bound,\n\ |
| 3479 | event is unbound, but the corresponding click event would be bound, | 3478 | `read-key-sequence' turns the drag event into a click event at the\n\ |
| 3480 | `read-key-sequence' turns the drag event into a click event at the | 3479 | drag's starting position. This means that you don't have to distinguish\n\ |
| 3481 | drag's starting position. This means that you don't have to distinguish | 3480 | between click and drag events unless you want to.\n\ |
| 3482 | between click and drag events unless you want to. | 3481 | \n\ |
| 3483 | 3482 | `read-key-sequence' prefixes mouse events on mode lines, the vertical\n\ | |
| 3484 | `read-key-sequence' prefixes mouse events on mode lines, the vertical | 3483 | lines separating windows, and scrollbars with imaginary keys\n\ |
| 3485 | lines separating windows, and scrollbars with imaginary keys | 3484 | `mode-line', `vertical-line', and `vertical-scrollbar'.\n\ |
| 3486 | `mode-line', `vertical-line', and `vertical-scrollbar'. | 3485 | \n\ |
| 3487 | 3486 | If the user switches frames in the middle of a key sequence, the\n\ | |
| 3488 | If the user switches frames in the middle of a key sequence, the | 3487 | frame-switch event is put off until after the current key sequence.\n\ |
| 3489 | frame-switch event is put off until after the current key sequence. | 3488 | \n\ |
| 3490 | 3489 | `read-key-sequence' checks `function-key-map' for function key\n\ | |
| 3491 | `read-key-sequence' checks `function-key-map' for function key | 3490 | sequences, where they wouldn't conflict with ordinary bindings. See\n\ |
| 3492 | sequences, where they wouldn't conflict with ordinary bindings. See | ||
| 3493 | `function-key-map' for more details.") | 3491 | `function-key-map' for more details.") |
| 3494 | (prompt, continue_echo) | 3492 | (prompt, continue_echo) |
| 3495 | Lisp_Object prompt, continue_echo; | 3493 | Lisp_Object prompt, continue_echo; |
| @@ -4085,7 +4083,7 @@ init_keyboard () | |||
| 4085 | if (!noninteractive) | 4083 | if (!noninteractive) |
| 4086 | { | 4084 | { |
| 4087 | signal (SIGINT, interrupt_signal); | 4085 | signal (SIGINT, interrupt_signal); |
| 4088 | #ifdef HAVE_TERMIO | 4086 | #if defined (HAVE_TERMIO) || defined (HAVE_TERMIOS) |
| 4089 | /* For systems with SysV TERMIO, C-g is set up for both SIGINT and | 4087 | /* For systems with SysV TERMIO, C-g is set up for both SIGINT and |
| 4090 | SIGQUIT and we can't tell which one it will give us. */ | 4088 | SIGQUIT and we can't tell which one it will give us. */ |
| 4091 | signal (SIGQUIT, interrupt_signal); | 4089 | signal (SIGQUIT, interrupt_signal); |