1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00
Commit graph

145 commits

Author SHA1 Message Date
Kim F. Storm
f105f36f46 (estimate_mode_line_height): Move to xdisp.c. 2003-03-21 13:51:06 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Ken Raeburn
405ea71c67 (encode_terminal_code): Buffer pointer now const. 2002-07-19 14:37:32 +00:00
Dave Love
646e4dffc2 term.c (costs_set): Declare static, non-initialized for pcc. 2002-07-01 16:00:05 +00:00
Miles Bader
4a8130f23e C style fix. 2002-05-28 01:15:09 +00:00
Miles Bader
b63a55ac97 (tty_capable_p): New function. 2002-05-26 07:23:47 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Richard M. Stallman
b50fe468c8 Comment change. 2002-04-03 15:19:39 +00:00
Stefan Monnier
95c11956e9 (term_get_fkeys_1): If k0' and k;' are both specified and
with the same sequence, map that sequence to f10 rather than f0.
2002-02-02 23:48:37 +00:00
Eli Zaretskii
99fdd6bcfa (Ftty_display_color_cells, Ftty_display_color_p): Change the
argument name to DISPLAY.  Doc fix.
2002-01-25 14:08:42 +00:00
Eli Zaretskii
bfa62f96ad (Ftty_display_color_cells): New function.
(syms_of_term): Defsubr it.
2002-01-25 13:21:49 +00:00
Pavel Janík
dfc7a077e3 (set_tty_color_mode): Remove unused variable `tem'. 2002-01-17 10:27:38 +00:00
Eli Zaretskii
ace282979b (tty_default_color_capabilities, tty_setup_colors)
(set_tty_color_mode): New functions.
(term_init): Call tty_default_color_capabilities.
(Qtty_color_mode_alist): New variable.
(syms_of_term): Intern and staticpro it.
2002-01-14 13:45:36 +00:00
Pavel Janík
8103ad1ab6 (keys): Add missing braces around initializer. 2001-12-18 06:25:50 +00:00
Miles Bader
54800acbf3 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Variables removed.
(term_init): Don't set them.
Turn off any standout/underline modes that require magic cookies.
(ins_del_lines, highlight_if_desired, background_highlight)
(turn_on_highlight, turn_off_highlight, reset_terminal_modes):
Remove special processing for magic-cookie standout modes.
(turn_off_face, turn_on_face): Remove special processing for
underline magic-cookie glitch.
2001-10-20 10:33:48 +00:00
Miles Bader
8ede64a55f (reassert_line_highlight_hook, change_line_highlight_hook): Variables removed.
(reassert_line_highlight, change_line_highlight): Functions removed.
(standout_requested): Variable removed.
(update_end, highlight_if_desired): Don't use it.
(chars_wasted, copybuf): Variables removed.
(write_standout_marker): Function removed.
(cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
(clear_end_of_line_raw, write_glyphs, ins_del_lines):
Don't use `chars_wasted' or `copybuf'.
(calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
Set `costs_set' to true.
(cursor_to, clear_end_of_line): Test `costs_set' instead of `chars_wasted'.
(clear_end_of_line): Function removed.
(clear_end_of_line_raw): Renamed to `clear_end_of_line'.
(clear_to_end): Call `clear_end_of_line' instead of `clear_end_of_line_raw'.
2001-10-20 05:53:04 +00:00
Miles Bader
7ee72033eb Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-17 03:16:12 +00:00
Gerd Moellmann
228299fa71 Put doc strings in comments. 2001-10-14 10:36:32 +00:00
Stefan Monnier
8feddab4e0 Include keymap.h. 2001-10-08 11:39:52 +00:00
Gerd Moellmann
32c82ac0a1 Don't define min/max. 2001-10-08 08:08:08 +00:00
Gerd Moellmann
d284f58f0c (tty_cursor_hidden): New variable.
(update_begin): Don't call tty_hide_cursor.  Clean up.
(update_end, set_terminal_window, set_scroll_region): Clean up.
(ring_bell, reset_terminal_modes): Clean up.
(tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
on tty_cursor_hidden.
(write_glyphs): Call tty_hide_cursor.
2001-05-31 08:56:32 +00:00
Gerd Moellmann
37526b42c1 (turn_on_face): Fix reverse video handling on terminals
that don't support colors.
2001-04-27 12:37:32 +00:00
Gerd Moellmann
86a7d192df (toggle_highlight): New function.
(turn_on_face): Change handling of reverse video.
2001-04-25 18:31:33 +00:00
Andrew Innes
1a89b7c6f7 (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
redefinition.
2001-01-20 13:57:24 +00:00
Andrew Innes
8182406ad1 (update_end): Don't check updating_frame; for some reason
this can be 0 sometimes, such as after dismissing a popup menu,
and isn't necessary given the explicit frame argument.
2001-01-05 21:28:52 +00:00
Andrew Innes
ad54b02528 (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition. 2001-01-02 22:48:57 +00:00
Eli Zaretskii
deefb1ef4e (encode_terminal_code): Remove unused variable `c'. 2001-01-02 13:57:02 +00:00
Gerd Moellmann
ff23e1dd17 Don't try to include termcap.h; see comment there. 2000-11-21 12:05:08 +00:00
Eli Zaretskii
25ffac29dc (reassert_line_highlight): Reverse the inverse-video effect
if inverse_video is non-zero.
2000-10-28 17:10:10 +00:00
Andrew Choi
1a578e9be2 Initial check-in: changes for building Emacs under Mac OS.
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
	(init_display) [macintosh]: initialization for window system.

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

	* cus-edit.el (custom-button-face): Use 3D look for mac.
	(custom-button-pressed-face): Likewise.

	* faces.el (set-face-attributes-from-resources): Handle mac frames
	in the same way as x and w32 frames.
	(face-valid-attribute-values): Likewise.
	(read-face-attribute): Likewise.
	(defined-colors): Likewise.
	(color-defined-p): Likewise.
	(color-values): Likewise.
	(display-grayscale-p): Likewise.
	(face-set-after-frame-default): Likewise.
	(mode-line): Same default face as for x and w32.
	(tool-bar): Likewise.

	* frame.el: Remove call to frame-notice-user-settings at end of
	the file.

	* info.el (Info-fontify-node): make underlines invisible for mac
	as for x, pc, and w32 frame types.

	* term/mac-win.el: New file.
2000-10-22 16:50:16 +00:00
Gerd Moellmann
6bbd7a2959 Avoid some more compiler warnings. 2000-09-21 20:54:57 +00:00
Andrew Innes
2538fae4f8 Include keyboard.h before frame.h. 2000-08-22 22:41:00 +00:00
Gerd Moellmann
65aa5e85fa (write_glyphs): Also turn off inverse video after turning
off other appearances in case TS_exit_attribute_mode is not equal
to TS_end_standout_mode.
(insert_glyphs): Turn inverse video on/off for each run of glyphs
with the same face.
(turn_off_face): Reset standout_mode only if
TS_exit_attribute_mode has been output and TS_exit_attribute_mode
is equal to TS_end_standout_mode.
2000-08-16 12:14:15 +00:00
Kenichi Handa
d2fdb076c0 (write_glyphs): Use a locally declared conversion_buffer.
(insert_glyphs): Likewise.
2000-08-16 01:38:32 +00:00
Gerd Moellmann
2535aa8c71 (turn_off_face): Reset standout_mode when resetting
apparances with capability `me'.
(write_glyphs): Switch on inverse video before each face change.
2000-08-15 15:02:15 +00:00
Dave Love
46d1b2bcc1 [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum. 2000-06-25 17:22:33 +00:00
Gerd Moellmann
d13f3e2e24 (append_glyph): Revert change of 2000-06-06. 2000-06-06 12:27:18 +00:00
Kenichi Handa
1ac0700a34 (encode_terminal_code): Change the way to check if
terminal coding does any conversion.
(append_glyph): Set glyph->pixel_width correctly.
2000-06-06 01:08:19 +00:00
Eli Zaretskii
cf872af50e Correct a typo in a comment. 2000-05-28 13:27:33 +00:00
Eli Zaretskii
add4489008 (produce_glyphs): Don't treat eight-bit-* charsets as multibyte.
From Kenichi Handa.
2000-05-28 13:23:02 +00:00
Kenichi Handa
f2ba40be95 (encode_terminal_code): Set coding->src_multibyte properly. 2000-05-23 01:33:40 +00:00
Kenichi Handa
68526af594 (produce_special_glyphs): Use CHAR_BYTES instead of
CHAR_LEN.
2000-05-20 00:05:26 +00:00
Gerd Moellmann
2efdbcddfa (produce_glyphs): Remove reference to struct it's prompt_width. 2000-04-24 13:53:16 +00:00
Ken Raeburn
7c752c8099 make_number/XINT/XUINT conversions; EQ/== fixes; ==Qnil -> NILP 2000-04-05 17:29:31 +00:00
Gerd Moellmann
4e6ba4a490 (TN_no_color_video): New variable.
(term_init): Intitialize TN_no_color_video.
(enum no_color_bit): New enumeration.
(MAY_USE_WITH_COLORS_P): New macro.
(turn_on_face): Use it to determine if attributes may be used
combined with colors.
2000-04-01 13:33:12 +00:00
Gerd Moellmann
2136fdd4f5 (calculate_costs): Remove code dealing with X frames. 2000-03-19 17:04:41 +00:00
Jason Rumney
acfcd5cdf1 (term_init) [WINDOWSNT]: Initialize TN_max_colors. 2000-01-30 18:55:00 +00:00
Kenichi Handa
c989b7be8f (encode_terminal_code): Fix the previous change. 2000-01-04 01:58:49 +00:00
Eli Zaretskii
981e4297b4 (Ftty_display_color_p): Accept an optional argument FRAME. 2000-01-02 14:06:15 +00:00
Eli Zaretskii
816be8b8eb (insert_glyphs): Pass glyph, not &glyph, to
encode_terminal_code.
2000-01-02 14:00:03 +00:00