1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00
Commit graph

9466 commits

Author SHA1 Message Date
Richard M. Stallman
ffa286a2aa (display_text_line): When handling HPOS < 0 after loop,
if compute_motion fails to advance at all, don't back it up.
1998-11-30 06:35:33 +00:00
Richard M. Stallman
f49770515b (Fsingle_key_description): Fix previous change. 1998-11-28 22:16:09 +00:00
Richard M. Stallman
f4e09ae710 (Fstring_as_unibyte, Fstring_as_multibyte):
Clear text properties in the new string.
1998-11-27 22:15:38 +00:00
Kenichi Handa
6f39b7c89b (Frequire): Update declaration. 1998-11-26 08:37:32 +00:00
Kenichi Handa
9b0ca86943 (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
if the charset is ascii.
(ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
1998-11-26 08:12:12 +00:00
Kenichi Handa
8ac5a9ccbe (non_ascii_char_to_string): If C has modifier bits,
make an appropriate one byte string.
(char_bytes): Handle the case that C is a single byte char or has
modifier bits.
1998-11-26 08:12:12 +00:00
Kenichi Handa
43229ac34b (CHAR_BYTES): If C has modifier bits, return 1. 1998-11-26 08:12:12 +00:00
Kenichi Handa
741263c22b (internal_self_insert): If C has modifier bits, insert
appropriate one byte char.
1998-11-26 08:12:12 +00:00
Richard M. Stallman
1741e72de6 (read_process_output): Call signal_after_change. 1998-11-25 01:26:56 +00:00
Richard M. Stallman
9ebc22d43e (syms_of_buffer): Doc fix. 1998-11-24 09:01:32 +00:00
Richard M. Stallman
307958d6cb (syms_of_keyboard): Doc fix. 1998-11-24 08:56:27 +00:00
Richard M. Stallman
69eca94c24 (Fmake_keymap): Doc fix. 1998-11-24 04:55:16 +00:00
Kenichi Handa
9a64297c67 (word_boundary_p): If C1 or C2 are composite
characters, test their first components.
1998-11-24 03:52:08 +00:00
Richard M. Stallman
e84ffeec07 (Fset_mouse_position): Doc fix. 1998-11-22 17:23:36 +00:00
Richard M. Stallman
47a18cef7c (Fsingle_key_description): Handle generic characters. 1998-11-19 04:30:14 +00:00
Richard M. Stallman
53d5acf5c1 (Frequire): New arg NOERROR. 1998-11-19 04:26:44 +00:00
Richard M. Stallman
ff83dbb19a (Qmouse_face): Replace definition with extern decl.
(syms_of_xfaces): Initialization deleted.
1998-11-18 01:40:17 +00:00
Richard M. Stallman
69bb837eb5 (Qmouse_face): Variable definition moved here.
(syms_of_textprop): Initialize it.
1998-11-18 01:38:14 +00:00
Richard M. Stallman
65a04b969d (temp_output_buffer_show): Around temp-buffer-show-hook,
don't do save-excursion, just restore selected window.

(window_loop): For UNSHOW_BUFFER, always do consider minibuffer windows.
1998-11-17 16:27:02 +00:00
Kenichi Handa
6185c1c05b (CHAR_TABLE_REF): Check if IDX is negative or not. 1998-11-16 06:26:27 +00:00
Kenichi Handa
da63a5fee1 (non_ascii_char_to_string): If C is negative, signal error. 1998-11-16 06:26:27 +00:00
Kenichi Handa
72b718d765 (SINGLE_BYTE_CHAR_P): Check if C is negative or not. 1998-11-16 06:26:27 +00:00
Kenichi Handa
9ced2cfe0a Initial revision 1998-11-16 06:26:03 +00:00
Kenichi Handa
9192a0270d Include charset.h. 1998-11-16 01:17:06 +00:00
Kenichi Handa
94c02a5e1a (abbrev.o): Depend on charset.h
(bytecode.o): Depend on charset.h.
1998-11-16 01:17:06 +00:00
Kenichi Handa
0b58a513d9 (SYNTAX_ENTRY_INT): For a composite character, check
the first component.
1998-11-16 01:17:06 +00:00
Karl Heuer
3ec46dba9a (LIBS_MACHINE): Delete redundant definition. 1998-11-13 23:27:33 +00:00
Karl Heuer
a00e91cd76 (XTread_socket): Fix previous change in case F == 0. 1998-11-12 01:57:30 +00:00
Karl Heuer
9f641ce742 Initial revision 1998-11-11 19:01:02 +00:00
Karl Heuer
6d9fac3ecd (BSD_PGRPS): Add #undef. 1998-11-11 18:58:45 +00:00
Karl Heuer
b12576db33 (BROKEN_FIONREAD): #undef commented out.
(INTERRUPT_INPUT): #define commented out.
1998-11-11 18:53:50 +00:00
Eli Zaretskii
4b2e75e6ad (MAX_ALLOCA): New macro.
(Fbase64_encode_region, Fbase64_encode_string,
Fbase64_decode_region, Fbase64_decode_string):  Don't allocate
more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
1998-11-11 11:12:09 +00:00
Kenichi Handa
ea12aa2bf9 (byte_combining_error): Error message improved. 1998-11-11 10:37:09 +00:00
Kenichi Handa
32278fd599 (char_valid_p): Handle a composite character correctly. 1998-11-11 10:31:24 +00:00
Kenichi Handa
9b4d1fe69d (str_cmpchar_id): Check the byte sequence for
composition more rigidly.
(Fcompose_string): Allow DEL to be composed.  Signal error if STR
contains an invalid multibyte sequence.
1998-11-11 03:36:15 +00:00
Kenichi Handa
861bf815f3 (x_list_fonts): Don't change the value of maxnames. 1998-11-11 03:36:15 +00:00
Geoff Voelker
ccc2d29c56 (Vw32_pass_optional_keys_to_system): Variable removed.
(Vw32_pass_lwindow_to_system):
(Vw32_pass_rwindow_to_system):
(Vw32_lwindow_modifier):
(Vw32_rwindow_modifier):
(Vw32_apps_modifier):
(Vw32_enable_num_lock):
(Vw32_enable_caps_lock):
(Vw32_scroll_lock_modifier): New variables.
(modifier_set): Return toggle state for Scroll Lock.
(w32_key_to_modifier): New function.  Returns chosen modifier bit
for given key.
(w32_get_modifiers): Returns modifier flags for
non-keyboard input events.
(construct_console_modifiers): Renamed from construct_modifiers;
recognize Windows and Apps keys as modifiers.
(w32_get_key_modifiers): New function.  Returns modifier flags for
keyboard input events.
(map_keypad_keys): Make non-static.  Use second arg as extended
flag.
(w32_grabbed_keys): New variable.
(HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
(register_hot_keys):
(unregister_hot_keys):
(lookup_vk_code):
(w32_parse_hot_key):
(Fw32_register_hot_key):
(Fw32_unregister_hot_key):
(Fw32_registered_hot_keys):
(Fw32_reconstruct_hot_key): New functions to support hotkeys.
(post_character_message): New function.
(w32_msg_pump): Handle new messages for using hotkeys and changing
keyboard layout/language.
(w32_wnd_proc): Major rework of keyboard input handling:
optionally recognize Windows keys and Apps key as modifiers;
optionally treat NumLock, CapsLock and ScrollLock as function
keys; let system translate keystrokes to characters to avoid
system bugs relating to dead-key handling; preserve shift
distinction for control characters; forward keyboard
layout/language changes to lisp; detect and convert hot-key events
to normal keystrokes.
(syms_of_w32fns): Register new functions and variables.
(w32_last_error): New function for use in debugging.
1998-11-10 20:54:46 +00:00
Geoff Voelker
f791da1d45 ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
and w32heap.h.
1998-11-10 20:54:31 +00:00
Geoff Voelker
29a2c30ff6 Include w32term.h and w32heap.h.
(map_keypad_keys):
(Vw32_enable_caps_lock):
(Vw32_enable_num_lock):
(Vw32_pass_lwindow_to_system):
(Vw32_pass_rwindow_to_system):
(Vw32_lwindow_modifier):
(Vw32_rwindow_modifier):
(Vw32_apps_modifier):
(Vw32_scroll_lock_modifier):
(w32_key_to_modifier): Add externs.
(w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
Scroll Lock as potential modifiers; exclude numpad keys from
effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
code.
(is_dead_key): Copy from w32fns.c.
(w32_kbd_patch_key): Comment attempt to improve handling of
dead-keys, and system bug relating to same on Windows NT.  Work
around the bug by calling ToUnicode and then converting to the
correct codepage.
(map_virt_key): Removed obsolete variable.
(lispy_function_keys): Add extern.
(key_event): Major rework of keyboard input handling: optionally
recognize Windows keys and Apps key as modifiers; optionally treat
NumLock, CapsLock and ScrollLock as function keys; let system
translate keystrokes to characters to avoid system bugs relating
to dead-key handling; preserve shift distinction for control
characters.  Remove some obsolete code.
1998-11-10 20:52:20 +00:00
Geoff Voelker
0eaf592609 (sys_kill): Set extended key flag when faking
Ctrl-Break keystrokes.
(Fw32_get_locale_info): Allow LONGFORM parameter to specify an
arbitrary locale property using a numerical index.
(Vw32_valid_codepages): New variable.
(enum_codepage_fn):
(Fw32_get_valid_codepages):
(Fw32_get_console_codepage):
(Fw32_set_console_codepage):
(Fw32_get_console_output_codepage):
(Fw32_set_console_output_codepage):
(Fw32_get_codepage_charset):
(Fw32_get_valid_keyboard_layouts):
(Fw32_get_keyboard_layout):
(Fw32_set_keyboard_layout): New functions, exposing Windows locale
handling functions.
(syms_of_ntproc): Register them.
1998-11-10 20:50:40 +00:00
Geoff Voelker
f98169a023 (convert_to_key_event): Removed.
(is_dead_key): Copied to w32fns.c.
(w32_read_socket): Generate language_change_event.  Modify to work
with keyboard handling changes in w32_wnd_proc.
1998-11-10 20:50:08 +00:00
Geoff Voelker
bb35543459 (struct w32_display_info): New element faked_key.
(WM_EMACS_SETKEYBOARDLAYOUT):
(WM_EMACS_REGISTER_HOT_KEY):
(WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
(LEFT_WIN_PRESSED):
(RIGHT_WIN_PRESSED):
(APPS_PRESSED): New console keyboard modifier flags.
1998-11-10 20:49:30 +00:00
Karl Heuer
3583e969a4 (regex_compile): Handle translation of multibyte
exact-match characters.
1998-11-10 07:03:05 +00:00
Kenichi Handa
c61bca6a28 (CATEGORY_SET): Adjusted for the change of cmpchar_component.
(CATEGORY_SET): Likewise.
1998-11-10 00:24:40 +00:00
Kenichi Handa
de54b0d5ec (cmpchar_component): New arg NOERROR. Check
composition char ID more strictly.
(Fcmpchar_component): Call cmpchar_component with NOERROR arg
zero.
(Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
return 255.
(Fcompose_string): Signal error if STR contains a rule-based
composition character.
1998-11-10 00:24:40 +00:00
Kenichi Handa
cf36cf3f21 (cmpchar_component): Proto-type adjusted. 1998-11-10 00:24:40 +00:00
Kenichi Handa
1dca54f61e (string_to_non_ascii_char): Return correct length for
a charset of dimension 2 and composition character.
1998-11-09 07:06:11 +00:00
Karl Heuer
31cd7d0079 (Fprocess_status): Doc fix. 1998-11-07 16:55:41 +00:00
Kenichi Handa
6038393415 (init_charset_once): Fix previous change. 1998-11-07 01:42:20 +00:00
Kenichi Handa
bb63e573a8 (string_to_non_ascii_char): Fix previous change.
(char_valid_p): The the validity of CHARSET by CHARSET_DEFINED_P.
1998-11-06 10:59:09 +00:00