Commit Graph

178 Commits

Author SHA1 Message Date
Kim F. Storm
0d6239f133 (IT_note_mouse_highlight): Don't use mouse-face if hidden. 2002-10-26 23:53:30 +00:00
Eli Zaretskii
aac06fd4e5 (croak): Add `void' to definition. 2002-08-19 18:20:51 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
6f8269719e Fix typo. 2002-07-09 09:57:34 +00:00
Pavel Janík
3b8f965153 Rename enum event_kind items. 2002-06-13 14:59:38 +00:00
Eli Zaretskii
56e19ec475 Fix whitespace.
(sig_suspender, sigprocmask): Don't define for DJGPP 2.02 and later.
2002-05-17 13:12:37 +00:00
Eli Zaretskii
a0738471ba (Qhbar): New variable.
(syms_of_msdos): intern and staticpro it.
(IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
cursor type.
2002-04-19 12:13:47 +00:00
Stefan Monnier
ecd52a9385 (dos_rawgetc): int/Lisp_Object confusion. 2002-04-12 05:57:21 +00:00
Stefan Monnier
e39feffee6 (dos_rawgetc): Use a single event for HELP_EVENT. 2002-04-12 05:50:53 +00:00
Eli Zaretskii
db4a142aa8 (syms_of_msdos): Fix last change with mouse_autoselect_window. 2002-04-03 13:43:47 +00:00
Pavel Janík
ee8ceff815 Rename autoselect_window_p to mouse_autoselect_window. 2002-04-03 08:39:50 +00:00
Eli Zaretskii
1a0721fef5 (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required. 2002-04-02 15:52:35 +00:00
Pavel Janík
513f293e7f Rename x_autoselect_window_p to autoselect_window_p. 2002-04-01 13:46:09 +00:00
Pavel Janík
42d9d13aa3 Fix typo. 2002-03-31 16:43:51 +00:00
Eli Zaretskii
7264f28d8c (dos_rawgetc): Disable the x-autoselect-window feature,
until its implementation is fixed.
2002-03-15 15:30:07 +00:00
Kim F. Storm
abf10ed700 (disable_mouse_highlight): Removed variable.
(show_mouse_face): Don't show highlight if mouse_face_hidden is	set.
(IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
(internal_terminal_init): Initialize mouse_face_hidden.
(dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
and on after keyboard input.
2002-02-16 23:57:34 +00:00
Eli Zaretskii
9005a471f2 (last_mouse_window): New variable.
(dos_rawgetc): Fix last change--if the mouse is in the same window
as recorded in last_mouse_window, don't select this window.
2002-02-16 19:25:24 +00:00
Eli Zaretskii
4a137db112 (x_autoselect_window_p): New variable.
(syms_of_msdos): Defvar it.
(dos_rawgetc): If x_autoselect_window_p is set, select the window
in which the last mouse movement occured, unless it is already
selected.
2002-02-16 15:44:03 +00:00
Eli Zaretskii
d7439436b6 (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
variables; cus-start.el doesn't need them anymore.
2002-02-11 07:14:56 +00:00
Eli Zaretskii
bf7943066e (emacs_root_dir): New function. 2001-12-19 19:00:44 +00:00
Pavel Janík
70da46c31c Change doc-string comments to new style' [w/doc:' keyword]. 2001-12-11 06:23:50 +00:00
Eli Zaretskii
deece6f51a (IT_clear_screen): If the frame's faces are not yet
realized, use the initial screen colors to clear the screen.
2001-11-23 17:16:17 +00:00
Kim F. Storm
377df9e21d Fringe cleanup.
Comment fix.
2001-11-16 13:04:02 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Miles Bader
abcce93ae3 (IT_reassert_line_highlight, IT_change_line_highlight): Functions removed.
(internal_terminal_init): Don't set reassert_line_highlight_hook
or change_line_highlight_hook.
(highlight): Variable removed.
(IT_set_face, IT_update_begin, IT_update_end, IT_set_terminal_modes):
Don't set or use it.
2001-10-20 05:55:56 +00:00
Eli Zaretskii
7677c808b4 (do_visible_bell): Add \n\ at the end of each line of
inline assembly, to avoid compiler warnings.
(syms_of_msdos): Add \n\ at the end of a doc string line for
dos-unsupported-char-glyph.
2001-07-06 15:31:47 +00:00
Eli Zaretskii
1bd6203653 Update copyright notice. 2001-03-04 07:12:41 +00:00
Eli Zaretskii
ff12cd1d43 (Fmsdos_remember_default_colors): If default-frame-alist
specifies (reverse . t), reverse the initial screen colors.
(IT_set_frame_parameters): If the property is foreground-color,
but we are reversing the colors, set bg_set, not fg_set.  Likewise
for setting background-color and reversing: set fg_set.  Set
unspecified-fg and unspecified-bg correctly when (reverse . t) is
in effect.
2001-03-02 13:31:52 +00:00
Eli Zaretskii
76648534c5 (IT_set_face): Obey inverse_video. 2000-12-18 13:27:18 +00:00
Eli Zaretskii
78555fbea6 (IT_write_glyphs): Compute the glyph face from str->face_id. 2000-12-18 10:23:43 +00:00
Eli Zaretskii
e7522695a5 (Fmsdos_set_mouse_buttons): Signal an error if the
argument is outside the range [2..3].
2000-12-14 15:12:58 +00:00
Eli Zaretskii
440ffd67db (fast_find_position): Don't overstep the last window row.
(IT_note_mouse_highlight): Initialize portion to -1.  Remove
unused variable `area'.  When looking for a row under (X,Y), give
up if some of the previous rows is not enabled.
2000-12-12 14:55:35 +00:00
Eli Zaretskii
bed43f1d71 (dos_set_window_size): Update screen dimension variables. 2000-10-21 18:14:15 +00:00
Eli Zaretskii
546701f50f (IT_set_face): Compare highlighted face with the default
face, and invert colors if these faces' colors are identical.
(Fmsdos_remember_default_colors): Don't swap foreground and
background colors in initial_colors[].
(IT_set_frame_parameters): Don't swap frame's foreground and
background pixels.  If ALIST includes "(reverse . t)", swap
foreground-color and background-color properties in frame's
param_alist.  If the original frame's param_alist doesn't specify
the colors, store unspecified-fg and unspecified-bg, reversed if
required.
2000-10-16 19:16:20 +00:00
Eli Zaretskii
53704a0764 Fix last change. 2000-10-09 16:16:54 +00:00
Eli Zaretskii
1e21fe48c0 (IT_set_frame_parameters): Don't initialize Lisp_Object
variables.  If ALIST includes foreground-color or
background-color, change also the colors of the default face for
this frame.
2000-10-09 16:05:35 +00:00
Eli Zaretskii
984f5aaa61 (top-level) <Qbackground_color, Qforeground_color>: Make
them extern (they are defined on xfaces.c).
(syms_of_msdos): Don't intern and don't staticpro
Qbackground_color and Qforeground_color.
2000-10-08 06:24:44 +00:00
Eli Zaretskii
5e30eaa296 (IT_write_glyphs): Convert cbp to unsigned char *. 2000-08-16 05:22:00 +00:00
Kenichi Handa
648648a9cb (IT_write_glyphs): Use a locally declared conversion_buffer. 2000-08-16 01:38:04 +00:00
Eli Zaretskii
b9f80d41be (IT_update_begin): Don't crash if mouse_face_mouse_frame
member of display_info is NULL.
2000-08-15 21:02:00 +00:00
Eli Zaretskii
99cd736442 (IT_note_mouse_highlight): Update the calls to overlays_at.
(toplevel) <kbd_buffer_store_event>: Remove prototype, it's
redundant now that keyboard.h is included.
2000-08-10 06:45:57 +00:00
Eli Zaretskii
97dd288b3c Include keyboard.h.
(XMenuActivate): Empty no_event events from the event buffer.  If
no events are left after that, call clear_input_pending.
(mouse_clear_clicks): New function, code moved from mouse_init.
(mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
mouse driver to ``forget'' any past clicks.
2000-08-09 12:26:13 +00:00
Eli Zaretskii
84968b32fd (Fmsdos_set_mouse_buttons): Add missing backslashes in
the doc string.
2000-08-07 07:47:53 +00:00
Eli Zaretskii
8f190436ea (Fmsdos_set_mouse_buttons, syms_of_msdos): New functions.
(syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
2000-07-31 06:38:19 +00:00
Eli Zaretskii
74c07fafcf (run_msdos_command): Save and restore the master
environment, for the case that child_setup signals an error.
When mirroring slashes in DOS shell commands, don't fail if
argv[2] has embedded blanks.
2000-07-31 06:24:21 +00:00
Eli Zaretskii
f0a4139c76 (IT_note_mouse_highlight): Process overlays in the
correct order of priority.  If help echo was found in an overlay,
use that overlay as the object in which the help echo was found.
2000-07-23 13:03:16 +00:00
Eli Zaretskii
48c14970c5 (IT_note_mode_line_highlight, IT_note_mouse_highlight):
Record the object that generated the help echo and the position of
that object in help_echo_object and help_echo_pos.  Record that
some glyphs in a row are displayed in mouse-face.
(IT_update_begin): Don't clear mouse highlight unless one of the
enabled glyph rows is marked as being displayed in mouse-face.
(dos_rawgetc): Generate 2 events for HELP_EVENT.  Pass the object
and position recorded in help_echo_object and help_echo_pos to the
event queue.
(IT_menu_display): Accept a new argument PN: the pane number of
the current menu pane.  Record the pane number and the item
number of the item which has associated help string.
(XMenuActivate): Update the prototype for help_callback in
function declaration.  Call IT_menu_display with the current menu
pane number as an additional argument.  Call help_callback with
two additional arguments: the pane number and the item number of
the menu item associated with the help text.
(help_echo_object, help_echo_pos): New variables.
(syms_of_msdos): Initialize them and staticpro help_echo_object.
(help_echo_window): New variable.
(syms_of_msdos): Initialize and staticpro it.
(IT_note_mode_line_highlight): Set help_echo_window.
(IT_note_mouse_highlight): Ditto.
(dos_rawgetc): Store help_echo_window in the second event produced
for HELP_EVENTs.
2000-07-20 11:09:12 +00:00
Gerd Moellmann
0b7f07ad9b (dos_rawgetc): Always set `arg' member of input_events. 2000-07-13 23:43:58 +00:00
Gerd Moellmann
9d94022598 (dos_rawgetc): Adapt to change of HELP_EVENTs. 2000-07-13 14:08:34 +00:00
Eli Zaretskii
4314cf3ec9 (XMenuActivate): After exiting the menu, restore the
echo area message and erase it.
2000-07-10 13:46:32 +00:00