1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-20 21:11:18 -07:00
Commit graph

10607 commits

Author SHA1 Message Date
Kenichi Handa
7b712ad8f5 *** empty log message *** 1999-12-29 00:56:48 +00:00
Eli Zaretskii
41ad069bdc Changes for supporting mouse/modeline highlight and help echo features:
(dos_set_window_size) [__DJGPP__ > 1]: If the frame
dimensions changed, invalidate the mouse highlight info.
(disable_mouse_highlight, help_echo, previous_help_echo): New
variables.
(IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
(fast_find_position, IT_note_mode_line_highlight)
(IT_note_mouse_highlight): New functions.
(IT_update_begin): If the redisplay affects the window where the
mouse highlight is, clear the highlight.  If the frame where the
highlight was displayed was killed, invalidate the highlight
info.
(IT_update_end): Reset the highlight flag.  Reset the mouse
highlight-defer flag.
(IT_frame_up_to_date): New function, if mouse highlight was
deferred due to GC, do it now.
(internal_terminal_init): Initialize mouse-highlight related
members of the_only_x_display.  Assign IT_frame_up_to_date to
frame_up_to_date_hook.
(dos_rawgetc): If the mouse moved, update mouse highlight.  If
help_echo changed value, generate a HELP_EVENT event.
(syms_of_msdos): Staticpro help_echo and previous_help_echo.
1999-12-28 15:59:34 +00:00
Eli Zaretskii
adb9900f35 (struct display_info): New.
(struct x_output): Add the display_info member.
(FRAME_X_DISPLAY_INFO): New macro.
1999-12-28 15:56:29 +00:00
Gerd Moellmann
6448a6b36f *** empty log message *** 1999-12-28 13:05:57 +00:00
Gerd Moellmann
bcdda9a4bb (dump_glyph_row): Adapt to changes in struct glyph. 1999-12-28 12:18:41 +00:00
Gerd Moellmann
481b505472 (modify_overlay): Always compute unchanged info. 1999-12-28 12:13:02 +00:00
Gerd Moellmann
9d60f77200 (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
if MODIFF > 1.
1999-12-28 12:05:39 +00:00
Richard M. Stallman
dbd2182a1c Comment change. 1999-12-28 03:34:56 +00:00
Kenichi Handa
c388b3c2b8 (FACE_FROM_ID): Cast the arg ID to `unsigned'. 1999-12-27 05:29:55 +00:00
Kenichi Handa
a2882b0d4a *** empty log message *** 1999-12-27 05:29:29 +00:00
Kenichi Handa
43d120d80e All codes adjusted for the change of struct glyph. 1999-12-27 05:09:13 +00:00
Kenichi Handa
32de38e46d (encode_terminal_code): Adjusted for the change of struct
glyph and GLYPH_FROM_CHAR_GLYPH.
(write_glyphs) (insert_glyphs) (append_glyph): Adjusted for the
change of struct glyph.
1999-12-27 05:07:56 +00:00
Kenichi Handa
4218698360 (line_hash_code) (direct_output_for_insert): Adjusted
for the change of struct glyph.
(line_draw_cost): Adjusted for the change of
GLYPH_FROM_CHAR_GLYPH.
(count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
1999-12-27 05:06:03 +00:00
Kenichi Handa
3305fc6a35 (struct glyph): Make face_id and padding_p the top
level members.  Change members in union `u'.
(GLYPH_EQUAL_P): Check also members face_id and padding_p.
(GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
(SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
(CHAR_GLYPH_PADDING_P): Likewise.
(GLYPH_FROM_CHAR_GLYPH): Likewise.  Always return -1 for multibyte
characters.
1999-12-27 05:05:19 +00:00
Kenichi Handa
ae87e39643 (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
of GLYPH_MASK_CHAR.
1999-12-27 05:04:47 +00:00
Kenichi Handa
07129d9eaf (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
of GLYPH_MASK_CHAR.
1999-12-27 05:04:23 +00:00
Kenichi Handa
3b0fee460e (GLYPH): Defined as int', not unsigned int'. Now the
lowest 8 bits are single byte character code, the bits above are
face ID.
(GLYPH_MASK_FACE) (GLYPH_MASK_CHAR): Adjusted for the change
above.
(FAST_MAKE_GLYPH) (FSST_GLYPH_FACE): Likewise.
(GLYPH_MASK_REV_DIR) (GLYPH_MASK_PADDING): Macros deleted.
1999-12-27 05:03:46 +00:00
Kenichi Handa
89ba5b5f00 *** empty log message *** 1999-12-27 04:57:02 +00:00
Kenichi Handa
51e31f7a01 (struct composition): Change the order of declaring
members to reduce the byte size of the structure.
1999-12-27 03:34:02 +00:00
Kenichi Handa
5bcd116ca9 *** empty log message *** 1999-12-27 03:33:17 +00:00
Richard M. Stallman
f7c9e039d2 *** empty log message *** 1999-12-25 23:01:14 +00:00
Gerd Moellmann
f21b06b762 *** empty log message *** 1999-12-25 13:01:06 +00:00
Gerd Moellmann
de182d7041 (looking_at_1): Reset immediate_quit before modifying
global data.
1999-12-25 12:55:46 +00:00
Kenichi Handa
f9b537ecb3 (read_process_output): Fix the arg FROM to
update_compositions.
1999-12-24 01:06:50 +00:00
Kenichi Handa
e36557c98b *** empty log message *** 1999-12-24 01:06:20 +00:00
Richard M. Stallman
68e69fbd44 (Freplace_match): For nonliteral replacement,
construct all the new text first, then insert all at once.
1999-12-23 04:45:26 +00:00
Dave Love
0b863bd9ea *** empty log message *** 1999-12-22 23:15:17 +00:00
Dave Love
393f2d147c (Fx_show_tip): Gcpro `timeout' too. 1999-12-22 22:58:15 +00:00
Gerd Moellmann
28d7281dc7 (Fx_create_frame): Move x_default_parameter calls that
lead to size changes to after the X window has been created.
1999-12-22 16:09:37 +00:00
Gerd Moellmann
e22ef6eb69 (realize_x_face): Don't use uninitialized local
variable in xassert.
1999-12-22 16:01:16 +00:00
Gerd Moellmann
6d8e8ef35c (clear_font_table): Don't use uninitialized local
variable in xassert.
1999-12-22 12:11:42 +00:00
Kenichi Handa
8affcced09 (face_color_supported_p): Check by tty_defined_color
only when the frame is not window.
1999-12-22 11:41:16 +00:00
Gerd Moellmann
deca1348bc *** empty log message *** 1999-12-22 10:58:10 +00:00
Gerd Moellmann
724b203fba (Fset_buffer_multibyte): Arrange for a thorough
redisplay after changing the multibyteness of a buffer.
1999-12-22 10:57:23 +00:00
Gerd Moellmann
f2be114689 (XTread_socket): At the beginning of the loop, pass the
frame's X window to XFilterEvent instead of None because that's
the X window for which the IC was created.  This makes dead
accents work when the pointer is not in Emacs' frame.
(XTread_socket) <KeyPress>: Don't call XFilterEvent here.
1999-12-22 10:29:16 +00:00
Dave Love
a744a2ec4d (Fx_show_tip): Add missing UNGCPRO. 1999-12-20 10:51:59 +00:00
Richard M. Stallman
d43f85c277 (Fcompleting_read): Rename arg INIT to INITIAL_INPUT. 1999-12-19 19:13:08 +00:00
Gerd Moellmann
9e6985ed7a *** empty log message *** 1999-12-19 13:16:06 +00:00
Gerd Moellmann
556d73147e (debugger_may_continue): New variable.
(syms_of_eval): Add a DEFVAR_BOOL for it.
(call_debugger): Bind it.
1999-12-19 13:07:33 +00:00
Eli Zaretskii
3b6207313b (IT_set_face): Don't swap face colors when highlight or
fp->tty_reverse_p is set, unless the computed colors are identical
to frame colors.  Print both original and computed colors to
termscript file.
(IT_write_glyphs): Track the changes in handling of composite
characters.
(IT_set_frame_parameters): Don't set frame colors from
unspecified-fg and unspecified-bg pseudo-colors.
1999-12-19 11:22:35 +00:00
Dave Love
0f9a51c47c *** empty log message *** 1999-12-17 15:06:49 +00:00
Dave Love
cda9b832d4 (Fkeywordp): New function.
(syms_of_data): Install it.
1999-12-17 15:00:56 +00:00
Eli Zaretskii
363e4e4226 (tty_defined_color): Fix last change. 1999-12-16 09:38:21 +00:00
Dave Love
6c27ec258d (BUILD_GLYPH_STRINGS): For pcc, remove continuation in arg list. 1999-12-15 17:46:18 +00:00
Gerd Moellmann
cfad01b4c1 (redisplay_window) <optional new window start>: Check
that window start is in [BEGV..ZV].
1999-12-15 16:27:45 +00:00
Dave Love
362ba9c6ae Copyright up-date. 1999-12-15 15:18:34 +00:00
Dave Love
1c8c6d3948 1999-12-15 Kenichi Handa <handa@etl.go.jp>
* regex.c (regex_compile): Adjusted for the change of CHAR_STRING.

1999-12-04  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
	operators and handle them properly.
	* regex.h (RE_ALL_GREEDY): New option.
	(RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
	sorting would put it.
	(RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
	(_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
1999-12-15 15:15:29 +00:00
Eli Zaretskii
f9d2fdc464 Changes for separate unspecified foreground and background colors
on character terminals:

* dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
(FACE_TTY_DEFAULT_BG_COLOR):  New macros.

* xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
(syms_of_xfaces): Initialize and staticpro them.
(tty_defined_color): If the color name is unspecified-fg or
unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
(tty_color_name): If the color pixel value is either
FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
Qunspecified_fg or Qunspecified_bg, respectively.
(Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
and Qunspecified_bg for foreground and background colors.
(realize_default_face): If the foreground and background colors
are not specified, default to Qunspecified_fg and Qunspecified_bg.
(realize_tty_face): By default, set the face colors to
FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
[MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
Reverse the colors if the default colors were reversed.

* dispnew.c (init_display): Initialize the frame pixels of the
initial frame to FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR.

* term.c (turn_on_face): If the default fore- and background
colors are reversed, enter inverse video mode.  Don't send color
escape sequences for unspecified foreground and background colors.
(turn_off_face): Handle unspecified-fg and unspecified-bg colors.

* dosfns.c (unspecified_colors): New variable.
(msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
color names, return FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR, respectively.
(msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
Qunspecified_bg, respectively.

* msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR as pixel values.

* faces.el (face-read-integer, read-face-attribute)
(color-defined-p, color-values): Allow color values unspecified-fg
and unspecified-bg, handle them as unspecified.
1999-12-15 13:14:38 +00:00
Kenichi Handa
e19539f184 (code_convert_region): Fix the secoding arg to
update_compositions.
1999-12-15 12:49:36 +00:00
Kenichi Handa
5ec14d3c00 *** empty log message *** 1999-12-15 00:53:45 +00:00