1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00
Commit Graph

23628 Commits

Author SHA1 Message Date
Geoff Voelker
5dbd225734 (set-default-process-coding-system): Use function on
before-init-hook to set default-process-coding-system based on
enable-multibyte-characters.
1998-11-10 21:06:50 +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
Geoff Voelker
a73c80a31d ([language-change]): For now ignore
keyboard language-change events.
1998-11-10 20:49:04 +00:00
Eli Zaretskii
daafb0e383 (ediff-make-temp-file): Run the prefix through
convert-standard-file-name, but leave the results of
make-temp-name unaltered.  For MS-DOS, truncate the prefix to 2
characters if the original name already exists, or has a special
handler.
1998-11-10 11:26:34 +00:00
Karl Heuer
2192e5202f Delete autoload cookies. 1998-11-10 07:18:43 +00:00
Karl Heuer
628eac44d7 Add autoload cookies. 1998-11-10 07:18:07 +00:00
Karl Heuer
8062d993f4 (ispell-get-coding-system): Default to iso-latin-1.
(ispell-process-line): Don't treat multibyte
1998-11-10 07:06:12 +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
Andrew Innes
f8c707612e (ps-print-prologue-1): In BeginDoc procedure, call setpagedevice to
specify the page size if setpagedevice is available.  This is
necessary to select the correct paper tray on Level 2 printers with
multiple paper sizes available.

(ps-begin-file): Cope with font names that contain spaces, and
call BeginDoc in a BeginSetup/EndSetup block.
1998-11-09 15:05:23 +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
Eli Zaretskii
5f1af2d872 (symbol-file): Run fns-VERSION.el through
convert-standard-filename.
1998-11-08 17:24:16 +00:00
Eli Zaretskii
9741697386 (buffer-undo-list): Run fns-VERSION.el through
convert-standard-filename.
1998-11-08 17:23:52 +00:00
Eli Zaretskii
80106caa42 (SHELL, MAKESHELL): Don't use `override'. 1998-11-08 17:18:55 +00:00
Karl Heuer
31cd7d0079 (Fprocess_status): Doc fix. 1998-11-07 16:55:41 +00:00
Karl Heuer
8dc9e2ef68 (line-number-mode): Doc fix. 1998-11-07 02:08:40 +00:00
Karl Heuer
e1acbda2a6 (find-variable-noselect): Autoload. 1998-11-07 02:05:38 +00:00
Karl Heuer
f66f0ee8ff (texinfo-format-scan):
Detect the case of two @-commands in a row; process just the first.
(texinfo-append-refill): If line has a @c, insert the @refill
before it.
(texinfo-format-refill): Return with point where the @refill was.
1998-11-07 02:03:33 +00:00
Karl Heuer
aa5fcebf0d (hack-local-variables): Test local-enable-local-variables.
(hack-local-variables-prop-line): Likewise.
(set-auto-mode): Don't test local-enable-local-variables here.
(enable-local-variables): Doc fix.
(local-enable-local-variables): Doc fix.
(normal-mode): Doc fix.
1998-11-07 02:01:59 +00:00
Kenichi Handa
6038393415 (init_charset_once): Fix previous change. 1998-11-07 01:42:20 +00:00
Kenichi Handa
86e411c97c (create-fontset-from-fontset-spec): Give correct arg to `error'. 1998-11-06 10:59:09 +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
Kenichi Handa
dfd57aa70f (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
character correctly.
(STRING_CHAR): Handle an invalid charater correctly.
1998-11-06 10:59:09 +00:00
Andreas Schwab
7be38f7dba (html-mode): Doc fix.
(sgml-name-8bit-mode): Fix missing format character in message
string.
1998-11-06 09:31:52 +00:00
Kenichi Handa
f35b0e56f0 (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte character. 1998-11-06 00:44:16 +00:00
Kenichi Handa
d9d851ea28 (Fstring_to_char): Don't return a multibyte character
if STRING is a unibyte string.
1998-11-06 00:44:16 +00:00
Kenichi Handa
a6c253264f (string_to_non_ascii_char): Fix previous change. 1998-11-06 00:44:16 +00:00
Kenichi Handa
d6127b83e3 (MAKE_NON_ASCII_CHAR): Check validity of CHARSET. 1998-11-06 00:44:16 +00:00
Kenichi Handa
a688bb2444 (display_text_line): Check validity of a multibyte
character.
(display_string): Likewise.  Handle an invalid character
correctly.
1998-11-06 00:44:16 +00:00
Karl Heuer
101e446fa0 (Fcombine_after_change_execute): Return nil, not junk.
If nothing to do, return immediately.
(syms_of_insdel): Initialize combine_after_change_buffer.
1998-11-05 20:06:22 +00:00
Karl Heuer
63b896163c (sendmail-send-it): Check for failure. 1998-11-05 19:31:09 +00:00
Karl Heuer
635ad74809 (Man-page-header-regexp): Alternate value for Solaris 2.6. 1998-11-05 19:19:03 +00:00
Karl Heuer
edad46f664 (XTread_socket): ButtonPress clears f->mouse_moved. 1998-11-05 19:17:42 +00:00
Karl Heuer
f11436793c (tex-start-shell): Track directory changes. 1998-11-05 19:15:36 +00:00
Karl Heuer
b4de43a303 (delete-whitespace-rectangle): close-rectangle renamed.
(close-rectangle): Define as alias.
1998-11-05 19:12:21 +00:00
Dave Love
3b3e7de595 (describe-variable): Don't quote link to source. 1998-11-05 18:55:38 +00:00
Geoff Voelker
484fa2c1ec (w32_enable_unicode_output): Rename from
w32_no_unicode_output.
(w32_use_unicode_for_codepage, syms_of_w32term): Use new name
and new semantics.
1998-11-04 23:42:04 +00:00
Geoff Voelker
bc6af9357c (dumpglyphs): Use FRAME_FONT for w32_fill_area. 1998-11-04 23:38:42 +00:00
Geoff Voelker
396594fed9 (w32_list_fonts): Report an error if a frame has not
been created yet.
1998-11-04 23:38:19 +00:00
Geoff Voelker
4664455c17 (x-get-selection-value): Alias to
x-cut-buffer-or-selection-value.
(w32-standard-fontset-spec): New variable.
(w32-create-initial-fontsets, mouse-set-font): Check whether
new-fontset is available.
(w32-use-w32-font-dialog): Enable use of set-variable.
1998-11-04 23:23:57 +00:00
André Spiegel
709822e813 (with-vc-file, edit-vc-file): New macros. 1998-11-04 15:09:38 +00:00
Kenichi Handa
fbddb98df1 Initial revision 1998-11-04 10:54:59 +00:00
Kenichi Handa
a4165c918b (do_switch_frame): Cancel previous change. 1998-11-04 10:53:14 +00:00