(global-map): Removed bindings of down events to ignore.
(xterm-mouse-translate): Only generate down event when bound.
Cleanup. Support for mode line and vertical bar dragging, and
menu-bar events.
(xterm-mouse-x): New variable.
(xterm-mouse-y): New variable.
(mouse-position): Advice to use above variables.
(xterm-mouse-event): Support menu-bar. Set xterm-mouse-x and xterm-mouse-y.
Karl Heuer [Fri, 10 Nov 1995 18:59:43 +0000 (18:59 +0000)]
(facemenu-active-faces): Replaces function
`facemenu-discard-redundant-faces'. This version, written by
Simon Marshall, is faster and does not require optional
argument for recursive re-entry. New argument FRAME allows
check to be done relative to face definitions in any frame.
(facemenu-unlisted-faces): Remove font-lock faces from
the default list. The list of face names was out of sync; to
prevent this from happenning again I made font-lock.el, and other
packages that create "private" faces, put them on the list
themselves. This should give them a better chance of being
updated when the packages are changed.
Karl Heuer [Fri, 10 Nov 1995 18:56:58 +0000 (18:56 +0000)]
(holiday-face, calendar-today-face, diary-face): Add
faces to facemenu-unlisted-faces before creating so that facemenu
won't list them as faces to be added interactively.
Don't include Xaw/Paned.h unless USE_LUCID is defined.
(set_frame_menubar): Conditionalized some code on USE_LUCID that
depends on the fact that the parent widget of the menu bar is an Xaw
"Paned" widget.
(display_text_line): Get redisplay_end_trigger from window.
(display_string): Detect truncation more carefully.
(redisplay_window): On non-X frame, always use
FRAME_MENU_BAR_LINES as criterion for whether to display menu bar.
(update_menu_bar): Likewise.
(display_menu_bar): Do the work here for non-X frames
regardless of USE_X_TOOLKIT.
Include lisp.h.
(doprnt1): Renamed from doprnt. New arg LISPSTRINGS.
This is now a static subroutine.
(doprnt): New definition calls doprnt1.
(doprnt_lisp): New function.
(makefile-mode): Call makefile-define-space-face only if it is defined.
(makefile-define-space-face): Create the face unconditionally;
alter it only if have X.
Geoff Voelker [Tue, 7 Nov 1995 07:58:00 +0000 (07:58 +0000)]
(env_vars): New variable.
(add_registry): New procedure.
(main): Use values of configuration environment variables from
the registry if defined, the process environment otherwise.
Geoff Voelker [Tue, 7 Nov 1995 07:56:36 +0000 (07:56 +0000)]
(addpm.exe): Link with $(ADVAPI32).
(install, fast_install): Change same-dir test to create test file in
installation tree and thereby support read-only shares.
(clean): Remove .pdb files.
Geoff Voelker [Tue, 7 Nov 1995 07:35:06 +0000 (07:35 +0000)]
(nt_ring_bell): Renamed from ring_bell, now global.
(initialize_win_nt_display): Use nt_ring_bell.
[HAVE_NTGUI] (pixel_to_glyph_coords, glyph_to_pixel_coords): Don't define.
Geoff Voelker [Tue, 7 Nov 1995 07:28:29 +0000 (07:28 +0000)]
[HAVE_NTGUI] (set_menu_framebar): Declare external.
[HAVE_NTGUI] (frame_title_buf, frame_title_ptr): Include variables
for Win32 window system.
[HAVE_NTGUI] (store_frame_title, x_consider_frame_title): Include
procedures for Win32 window system.
[HAVE_NTGUI] (x_consider_frame_title): Test for Win32 frame.
[HAVE_NTGUI] (display_text_line): Test for Win32 frame on face change.
[HAVE_NTGUI] (display_menu_bar): Perform no-op for NT window system.
(update_menu_bar, redisplay_window): Test for definition
of FRAME_EXTERNAL_MENU_BAR before using it.
Use FRAME_WINDOW_P of FRAME_EXTERNAL_MENU_BAR before using it.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Geoff Voelker [Tue, 7 Nov 1995 07:26:18 +0000 (07:26 +0000)]
[HAVE_NTGUI] (init_sys_modes, reset_sys_modes):
Don't initialize terminal mode when using window system.
[HAVE_NTGUI] (BUFFER_SIZE_FACTOR): Increase for use with window system.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Geoff Voelker [Tue, 7 Nov 1995 07:20:59 +0000 (07:20 +0000)]
[HAVE_NTGUI]: Include w32term.h.
[HAVE_NTGUI] (KBD_BUFFER_SIZE): Increase for NT window system.
[HAVE_NTGUI] (POLL_FOR_INPUT): Define.
[HAVE_NTGUI] (kbd_buffer_get_event): Enable windowing and menu events.
[HAVE_NTGUI] (lispy_function_keys): Define array for NT.
[HAVE_NTGUI] (make_lispy_event): Enable menu bar events.
[HAVE_NTGUI] (modify_event_symbol): Map symbol to keysym.
[HAVE_NTGUI] (read_char_x_menu_prompt): Display menus.
(FUNCTION_KEY_OFFSET): New macro.
(make_lispy_event): Use FUNCTION_KEY_OFFSET to modify event codes
before applying modifiers.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Geoff Voelker [Tue, 7 Nov 1995 07:19:52 +0000 (07:19 +0000)]
[HAVE_NTGUI]: Test for a Win32 frame in procedures that test for an X frame.
Use FRAME_WINDOW_P instead of testing for specific window system frames.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Geoff Voelker [Tue, 7 Nov 1995 07:16:44 +0000 (07:16 +0000)]
[HAVE_NTGUI]: Declare Vwindow_system.
[HAVE_NTGUI] (main): Enable inhibit_window_system.
Initialize environment from registry.
Declare syms of Win32 windowing modules.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Geoff Voelker [Tue, 7 Nov 1995 07:14:59 +0000 (07:14 +0000)]
[HAVE_NTGUI]: Include w32term.h.
Include dispextern.h before cm.h since dispextern.h includes windows.h.
[HAVE_NTGUI] (make_frame_glyphs, free_frame_glyphs, scroll_frame_lines,
update_frame, update_line): Test for WIN32 frame.
[HAVE_NTGUI] (init_display): Initialize WIN32 window system.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Geoff Voelker [Tue, 7 Nov 1995 07:13:46 +0000 (07:13 +0000)]
[HAVE_NTGUI]: Include win32.h.
HAVE_NTGUI] (struct frame_glyphs): Include pixel fields.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
* etags.c (get_lang_from_name, get_lang_from_interpreter,
get_lang_from_suffix): New functions.
(get_language): Function deleted.
(lang_entry): Two members added to struct.
(lang_names): Reflect the new layout of lang_entry.
(print_language_names, main, find_entries): Use the new functions.
(find_entries): Look at the first line for #! if no language.
(C_entries): Invalidate the token when funcdef is reset.
(Perl_functions): New function.
(lang_suffixes): .pl and .pm are Perl suffixes.