1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-04 13:03:09 -08:00
Commit graph

499 commits

Author SHA1 Message Date
Richard M. Stallman
07ba902ebf (parse_menu_item): Avoid initialization for Lisp_Object.
(command_loop): Likewise.
1998-10-14 12:59:30 +00:00
Richard M. Stallman
82e6e5afd8 (Fclear_this_command_keys): New function.
(syms_of_keyboard): defsubr it.
1998-10-13 03:46:13 +00:00
Richard M. Stallman
9ac425d169 (parse_menu_item): For top level of menu bar,
accept ordinary commands, and treat them just like a keymap.
1998-10-12 06:13:00 +00:00
Karl Heuer
a94a433590 (command_loop_1): When switching to selected window's bfr,
first exit if selected frame is dead (no live frames remain).
(read_key_sequence): Likewise.
1998-09-10 15:47:53 +00:00
Andreas Schwab
a8b1366533 (input-method-previous-message): Doc fix. 1998-08-24 10:11:57 +00:00
Richard M. Stallman
b638f32846 (read_char): If not reading a key sequence (MAPS is nil),
bind input-method-exit-on-first-char and input-method-use-echo-area
to t.
(read_char): If PREV_EVENT is non-nil, don't run the input method.
(read_key_sequence): Do not bind input-method-function.
1998-08-18 11:12:25 +00:00
Richard M. Stallman
6e5742a05b (Freset_this_command_lengths): Return nil.
(read_char): [All these changes are in the input method code.]
Process and clear before_command_restore_flag before the input method.
Save and restore ok_to_echo_at_next_pause and
current_kboard->echo_after_prompt.
Save, copy and empty this_command_keys, if it is not empty.
Clear the echo area before the input method.
Then in all cases restore this_command_keys, and reenable echoing
if it was enabled before.
1998-08-17 07:04:41 +00:00
Richard M. Stallman
e43d17d398 (read_char): Don't decrement this_command_key_count when saving it. 1998-08-10 07:22:21 +00:00
Richard M. Stallman
d5eecefb55 (Vthis_command): Renamed from this_command.
(real_this_command): New variable, but not a Lisp variable;
updated like Vthis_command, but never altered by Lisp programs.
(command_loop_1): Use real_this_command to set Vreal_last_command.

(read_char): When input method returns no chars, call cancel_echoing.
Restore the previous echo area message and this_command_keys, too.

(Vinput_method_previous_message): New variable.
(syms_of_keyboard): Set up lisp variable.
(Qinput_method_exit_on_first_char, Qinput_method_use_echo_area): New variables.
(syms_of_keyboard): Initialize them.
(Fread_key_sequence): New arg COMMAND_LOOP.
Bind those variables.
1998-08-08 03:13:39 +00:00
Richard M. Stallman
426939cc8b (Fexecute_extended_command):
Don't delay before displaying the suggestion message
if the command did not display anything in the echo area.
1998-07-27 05:37:42 +00:00
Richard M. Stallman
7d18f9ae99 (Qinput_method_function): New variable.
(syms_of_keyboard): Init and staticpro it.
(read_key_sequence): Bind input-method-function,
and set it to nil after reading the first event.
(raw_keybuf, raw_keybuf_count): New variables, to record
raw input events as they are read with read_char.
(GROW_RAW_KEYBUF): New macro.
(Fthis_single_command_raw_keys): New function.
(syms_of_keyboard): defsubr it.

(read_char): Call the input method if appropriate.
Change logic for distinguishing rereads from new events;
use local var `reread'.  Take events from
Vunread_input_method_events and Vunread_post_input_method_events.
(Vunread_input_method_events, Vunread_post_input_method_events)
(Vinput_method_function): New variable.
(syms_of_keyboard): Set up Lisp vars.
(command_loop_1): Check Vunread_input_method_events and
Vunread_post_input_method_events along with Vunread_command_events.
1998-07-26 23:03:58 +00:00
Richard M. Stallman
68c46464e6 (command_loop): Reset executing_macro after
command_loop_2 has returned, in case a throw to exit or top-level
was executed as part of a keyboard macro.
1998-06-23 03:09:24 +00:00
Karl Heuer
44e553a3fc (menu_item_eval_property): Bind Qinhibit_redisplay. 1998-06-22 17:34:59 +00:00
Richard M. Stallman
c5c5a6f8d1 (parse_menu_item): Put a quote around DEF
to pass it as an argument to the filter function.
1998-06-13 05:27:47 +00:00
Richard M. Stallman
75045dcbff (cmd_error): Init Vlast_prefix_arg.
(init_kboard, command_loop_1): Init Vlast_prefix_arg.
(Fcommand_execute): Set Vlast_prefix_arg to prefix arg used.

(command_loop_1): Set Vreal_last_command with Vlast_command.
(init_kboard): Init Vreal_last_command field.
(syms_of_keyboard): Set up Lisp var real-last-command.

(lispy_function_keys): Add kanji...eisu-toggle.
1998-06-07 22:37:36 +00:00
Karl Heuer
ac52ebd5d8 (syms_of_keyboard): Doc fix for suggest-key-bindings. 1998-06-02 15:49:47 +00:00
Richard M. Stallman
aaf3523422 (command_loop_1): In shortcuts for forward-char etc,,
use FETCH_CHAR not FETCH_BYTE.
1998-05-28 18:10:20 +00:00
Richard M. Stallman
adc1d5c873 (read_char): If redisplay is preempted,
try swallow_events; if that clears input_pending,
finish the redisplay.

(parse_menu_item): Removed unnecessary gcproing.
Fix a test of inmenubar.
1998-05-16 18:30:52 +00:00
Richard M. Stallman
fd3613d785 (parse_menu_item): Argument inmenubar < 0 now means
parsing a keyboard menu item.
(read_char_minibuf_menu_prompt): Use `parse_menu_item' to understand
new menu item format.
1998-05-12 21:33:59 +00:00
Richard M. Stallman
a24dc617a8 (Qdrag_n_drop, drag_n_drop_syms, lispy_drag_n_drop_names): New variables.
(make_lispy_event): Handle drag_n_drop events.
(syms_of_keyboard): Initialize new symbols.
1998-05-01 04:51:51 +00:00
Richard M. Stallman
74c1de234c (parse_menu_item): Support keywords :keys and
:key-sequence.  Some changes to provide GC-protection. Some
cosmetic changes.
(syms_of_keyboard): Define new symbols `:keys' and `:key-sequence'.
1998-04-26 22:34:53 +00:00
Richard M. Stallman
f438538138 (Fcommand_execute): Truncate command-history here. 1998-04-23 21:25:55 +00:00
Andreas Schwab
d52a7a9263 (parse_menu_item): Don't GCPRO non-lisp variables. 1998-04-14 13:01:59 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Richard M. Stallman
fc932ac6c7 Use STRING_BYTES and SET_STRING_BYTES. 1998-03-21 07:06:14 +00:00
Richard M. Stallman
e8886a1d99 Include puresize.h for CHECK_IMPURE.
(parse_menu_item): New function.
(menu_item_eval_property_1, menu_item_eval_property) New suroutines.
(menu_bar_one_keymap): Moved some code to menu_bar_item.
(menu_bar_item): Rewritten to use parse_menu_item.
(menu_bar_item_1): Function deleted.
(QCenable, QCvisible, QChelp, QCfilter, QCbutton, QCtoggle, QCradio):
(Qmenu_alias): New variables.
(syms_of_keyboard): Initialize them, and item_properties.
1998-03-21 05:49:49 +00:00
Richard M. Stallman
e39da3d777 Include syntax.h.
(interrupt_signal): Save and restore gl_state
around an immediate quit, in case debugger returns.
1998-03-02 20:02:33 +00:00
Richard M. Stallman
84ee604803 (command_loop_1): Run post-command-hook before,
not after, clearing this-command-keys and updating last-command.
1998-01-27 01:45:58 +00:00
Richard M. Stallman
2e9dc12527 (command_loop_1): Use unibyte_char_to_multibyte. 1998-01-21 21:57:24 +00:00
Richard M. Stallman
301738ed7b (echo_now): Use message2_nolog, not message1_nolog.
(Fexecute_extended_command): Likewise.
(read_char_minibuf_menu_prompt): Use message2_nolog, not message1.
(parse_modifiers): Use size_byte.
(echo_char): Use size_byte.
(parse_modifiers_uncached): Likewise.
(record_char): Likewise.
(parse_solitary_modifier): Likewise.
(read_char): Use Faref on Vkeyboard_translate_table
if it is a string.
(apply_modifiers_uncached): New arg base_len_byte.  Calls changed.
(read_char_minibuf_menu_prompt):
(read_key_sequence): Access buffer's downcase_table with XCHAR_TABLE.
(Fexecute_extended_command): Use Faref to access FUNCTION.
Use size_byte of BINDING.
(stuff_buffered_input): Use size_byte of STUFFSTRING.
1998-01-09 23:14:38 +00:00
Richard M. Stallman
8458ede666 (command_loop_1): Use PT_BYTE when calling FETCH_BYTE.
Instead of Fforward_point, just add.
1998-01-01 02:39:04 +00:00
Richard M. Stallman
a59b172a76 (Fexecute_extended_command):
Save message_enable_multibyte and pass it to message2_nolog.
1997-12-21 02:19:17 +00:00
Richard M. Stallman
30c6e0629b (Fexecute_extended_command):
Save and restore message_enable_multibyte.
1997-12-21 02:12:03 +00:00
Kenichi Handa
ee11256720 (Fexecute_extended_command): Fix previous change. 1997-12-08 06:58:14 +00:00
Andreas Schwab
91a0da0266 (Fsuspend_emacs): Cast init_sys_modes when calling
record_unwind_protect.
1997-11-28 14:48:28 +00:00
Kenichi Handa
9c3a251405 (Fexecute_extended_command): Give Voverriding_local_map as the
first arg to Faref.
1997-11-27 11:38:17 +00:00
Kenichi Handa
07a592697d (echo_now, record_auto_save, cmd_error_internal,
start_polling, stop_polling, bind_polling_period,
timer_start_idle, timer_stop_idle, gobble_input,
record_asynch_buffer_change, clear_input_pending,
stuff_buffered_input, clear_waiting_for_input,
quit_throw_to_read_char): Declare these as void.
(Fsuspend_emacs): Delete unnecessary extern declaration for
init_sys_mode.
1997-11-27 11:26:45 +00:00
Karl Heuer
3ababa6033 (Fexecute_extended_command): Fix message wording.
Don't print a message for a binding for mouse-movement.
1997-11-17 02:15:35 +00:00
Richard M. Stallman
e3ee748781 (command_loop_1): Add nonascii_insert_offset
before calling direct_output_for_insert.
1997-09-17 00:53:33 +00:00
Geoff Voelker
07de30b9de (kbd_buffer_get_event) [WINDOWSNT]: Support
menu_bar_activate_event.
(set-input-mode) [DOS_NT]: Do not invoke reset and init sys modes.
(Qmouse_wheel) [WINDOWSNT]: New variable.
(discard_mouse_events): New function.
(mouse_wheel_syms) [WINDOWSNT]: New variable.
(lispy_mouse_wheel_names) [WINDOWSNT]: New variable.
(make_lispy_event) [WINDOWSNT]: Make mouse-wheel events.
(syms_of_keyboard) [WINDOWSNT]: Define Qmouse_wheel and
mouse_wheel_syms.
1997-09-03 00:31:17 +00:00
Kenichi Handa
4328577a4e (Fexecute_extended_command): Call Fread_from_minibuffer
with INHERIT-INPUT-METHOD nil.
1997-08-26 11:42:33 +00:00
Richard M. Stallman
ef6661f776 (read_char): Delete spurious UNGCPRO.
Add UNGCPRO before the longjmps to wrong_kboard_jmpbuf.
Initialize c before the GCPRO1.
1997-07-24 16:45:55 +00:00
Richard M. Stallman
7c3bc9441e (Fcommand_execute): gcpro c. 1997-07-20 17:46:17 +00:00
Richard M. Stallman
32454a9ff2 (make_lispy_event): Distinguish S-SPC from SPC. 1997-07-14 19:36:01 +00:00
Richard M. Stallman
2fb9049ef0 (read_char): Call timer_stop_idle unconditionally at non_reread. 1997-07-14 19:26:48 +00:00
Richard M. Stallman
c6a67acd8a (command_loop_1): Add missing message2 argument.
(menu_bar_items): Add missing get_keyelt argument.
(follow_key): Likewise.
(read_key_sequence): Likewise.
1997-07-12 06:42:03 +00:00
Richard M. Stallman
111c41385e (make_lispy_event): Check that ISO_FUNCTION_KEY_OFFSET is defined. 1997-07-01 06:30:13 +00:00
Richard M. Stallman
6e4e64a8e6 (read_char): Add a call to swallow_events
when deciding whether to redisplay.
(swallow_events): Add forward declaration.
1997-06-30 08:22:49 +00:00
Richard M. Stallman
498545661a (read_avail_input): Check for failure with EIO. 1997-06-23 02:39:44 +00:00
Richard M. Stallman
303b5b3f0f (kbd_buffer_get_event): When wait_reading_process_input
returns, check Vunread_command_events.
1997-06-13 00:46:33 +00:00