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
Richard M. Stallman
779b34dfaa
(syms_of_keyboard): Doc fix.
1997-06-02 05:05:47 +00:00
Richard M. Stallman
3fdfceb3aa
(read_key_sequence): Change some locals to `int'.
1997-06-02 00:47:07 +00:00
Richard M. Stallman
413650839b
(command_loop_1): Pass 1 as new arg to sit_for.
...
(read_char): Likewise, pass 0 for it.
1997-05-27 04:59:47 +00:00
Richard M. Stallman
4abfba1faa
Fix previous change.
1997-05-20 04:03:24 +00:00
Richard M. Stallman
c43b1734fe
(num_nonmacro_input_events):
...
Renamed from num_nonmacro_input_chars.
(syms_of_keyboard): Rename Lisp variable.
1997-05-19 02:45:30 +00:00
Richard M. Stallman
fa90970d22
(Vtty_erase_char): Variable defined
...
(syms_of_keyboard): Set up Lisp variable.
Also set up `num-nonmacro-input-chars' to report actual keystrokes.
1997-05-19 02:35:09 +00:00
Richard M. Stallman
8959979418
(command_loop_1): Use an int for last_command_char.
1997-05-10 21:48:30 +00:00
Richard M. Stallman
5b467a5234
(Fexecute_extended_command): Pass new arg to Fcompleting_read.
1997-05-10 03:24:32 +00:00
Richard M. Stallman
d925fb392a
(Qtimer_event): Variable deleted.
...
(Qtimer_event_handler): New variable.
(syms_of_keyboard): Don't initialize Qtimer_event.
Do initialize Qtimer_event_handler.
(read_char): Don't check for timer event.
(swallow_events): Don't handle timer events.
(timer_check): Likewise.
(make_lispy_event): Likewise.
1997-05-08 05:51:48 +00:00
Richard M. Stallman
f571ae0df2
(read_key_sequence): New argument FIX_CURRENT_BUFFER.
...
Restore the current buffer from selected window on occasion.
All callers changed.
1997-04-11 08:21:38 +00:00
Richard M. Stallman
04f215f0cc
(make_lispy_event): Use iso_lispy_function_keys for
...
XK_ISO_* keys found in XFree86.
(ISO_FUNCTION_KEY_OFFSET): New macro.
(iso_lispy_function_keys): New table.
1997-03-22 23:58:58 +00:00