1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 18:41:25 -08:00
Commit graph

45 commits

Author SHA1 Message Date
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Juanma Barranquero
cd53fb5085 (Finsert_startup_screen): Fix typo in docstring. 2006-11-05 04:07:03 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Jan Djärv
238a44a865 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
comparisons with integers instead of Lisp_Object address.
(Fmsdos_set_keyboard): Declare argument allkeys.

* msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.

* dired.c: extern declare Fmsdos_downcase_filename on MSDOS to avoid
int/Lisp_Object mixup.

* fileio.c: Ditto.
2004-11-07 09:13:26 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +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
Eli Zaretskii
b058cb36fe Fix whitespace. 2002-05-17 12:02:50 +00:00
Stefan Monnier
31ade731e6 Change defvar_int def and vars to use EMACS_INT instead of just int. 2002-03-04 23:41:00 +00:00
Pavel Janík
7363986a69 Change doc-string comments to new style' [w/doc:' keyword]. 2001-12-09 20:11:33 +00:00
Eli Zaretskii
d20fc48aea (dos-display-scancodes, dos-decimal): Doc fix. 2001-12-09 19:46:55 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Eli Zaretskii
21457453c9 (syms_of_dosfns): Add \n\ at the end of a line in the
doc string line for dos-timezone-offset.
2001-07-06 16:47:26 +00:00
Eli Zaretskii
1bd6203653 Update copyright notice. 2001-03-04 07:12:41 +00:00
Eli Zaretskii
76a76a577f (Ffile_system_info): New function.
(syms_of_dosfns): Defsubr it.
2000-12-07 14:53:45 +00:00
Eli Zaretskii
c3c9847319 (unspecified_fg, unspecified_bg): Remove extern declaration. 2000-10-16 19:14:14 +00:00
Eli Zaretskii
24480d5b08 (unspecified_colors): Remove.
(msdos_stdcolor_idx): Use global variables unspecified_fg and
unspecified_bg.
(msdos_stdcolor_name): Return strings for unspecified fore- and
back-ground colors.
2000-01-03 16:56:40 +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
Eli Zaretskii
2d764c783d Changes for automatic remapping of X colors on terminal frames:
* xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
	frames.
	(Vface_tty_color_alist): Remove.
	(tty_defined_color): New function.
	(defined_color): Rewrite to support any type of frame.
	(tty_color_name): New function.
	(face_color_supported_p, Fface_color_gray_p,
	Fface_color_supported_p): Support non-X frames.
	(load_color): Enclose the color name in quotes, in the log
	messages.  Remove DOS-specific version of load_color.
	(realize_tty_face): Take the supported colors from
	tty-color-alist.  Support translation of X colors to the closest
	tty color, for both MSDOS and tty frames.
	[MSDOS]: Don't invert face colors if they were taken from the
	frame colors.
	(Fface_register_tty_color, Fface_clear_tty_colors): Remove.

	* frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
	Define a mostly empty surrogate.
	(tty_display): Declare.

	* frame.c (make_terminal_frame) [!macintosh]: Don't use
	tty_display.
	(Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
	frames when the frame's param_alist includes 'reverse.
	(tty_display): Define.
	(make_terminal_frame) [!MSDOS]: Assign &tty_display to the
	output_data.x member.
	(Fframe_parameters): Return foreground and background color names
	on tty frames as well, in addition to MSDOS frames.

	* msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
	selected_frame.
	(struct x_output): Remove unused members; document who uses each
	member.
	(FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
	FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
	FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
	FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
	unused macro definintions.

	* msdos.c (IT_set_frame_parameters): Don't call
	recompute_basic_faces, the next redisplay will, anyway.
	(x_current_display): Remove unused variable.
	Many functions: changes for Lisp_object selected_frame.
	(IT_set_face): If the tty_reverse_p flag is set for the face,
	reverse the foreground and background colors.
	(Fmsdos_remember_default_colors): New function.
	(syms_of_msdos): Defsubr it.
	(IT_set_frame_parameters): Use initial_screen_colors[] when
	creating a new frame.  If the frame parameters include 'reverse,
	swap the foreground and background colors.
	(internal_terminal_init): Initialize initial_screen_colors to -1.
	(syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
	cus-start.el.

	* Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.

	* xfns.c (x_defined_color): Rename from defined_color.  All
	callers changed.
	(Fxw_color_defined_p): Renamed from Fx_color_defined_p;
	all callers changed.
	(Fxw_color_values): Renamed from Fx_color_values; all callers
	changed.
	(Fxw_display_color_p): Renamed from Fx_display_color_p; all
	callers changed.
	(x_window_to_frame, x_any_window_to_frame,
	x_non_menubar_window_to_frame, x_menubar_window_to_frame,
	x_top_window_to_frame): Use !FRAME_X_P instead of
	f->output_data.nothing.
	* xterm.h (x_defined_color): Rename from defined_color.

	* w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
	f->output_data.nothing.
	(Fxw_color_defined_p): Renamed from Fx_color_defined_p;
	all callers changed.
	(Fxw_color_values): Renamed from Fx_color_values; all callers
	changed.
	(Fxw_display_color_p): Renamed from Fx_display_color_p; all
	callers changed.

	* dispextern.h (tty_color_name): Add prototype.

	* xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
	f->output_data.nothing.
	* w32menu.c (menubar_id_to_frame): Likewise.
	* w32term.h (w32_output): Declare.

	* dosfns.c (Qmsdos_color_translate): Remove.
	(msdos_stdcolor_name): Now returns a Lisp_Object.
	* dosfns.h (Qmsdos_color_translate): Remove.

	* s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
1999-12-06 16:54:09 +00:00
Eli Zaretskii
6821243b5f (msdos_stdcolor_name): Remove const from return value. 1999-08-10 10:29:20 +00:00
Eli Zaretskii
e4441df01c (msdos_stdcolor_name, msdos_stdcolor_idx): New
functions.
1999-07-30 08:15:13 +00:00
Eli Zaretskii
6f855d6452 (dos_cleanup): Flush and fsync the termscript stream. 1998-12-03 09:41:09 +00:00
Eli Zaretskii
7a2fd3696f (init_dosfns): Fix bug in passing segment address of the transfer buffer. 1998-04-08 13:48:30 +00:00
Eli Zaretskii
838a94b8a1 (__tb): Define.
(restore_parent_vm_title): New function.
(ms_windows_version): New function.
(w95_set_virtual_machine_title): New function
(x_set_title): New function.
(dos_cleanup): New function
(syms_of_dosfns): Define `dos-windows-version' Lisp variable.
(init_dosfns): Compute MS-Windows version and save the original
title of our DOS box.
1997-10-13 16:21:52 +00:00
Richard M. Stallman
e089dc624f (init_dosfns): Avoid calling DOS memory-allocation
service, NT DPMI server will crash Emacs in DOS box, if we do.
1997-08-11 21:42:39 +00:00
Richard M. Stallman
65788bc228 (Finsert_startup_screen): Call `insert_char' with a single argument. 1997-08-11 00:20:31 +00:00
Richard M. Stallman
459f404248 (init_dosfns): When setting `__opendir_flags' value,
override the bits recorded when dumping.
1996-09-25 22:39:43 +00:00
Richard M. Stallman
7b71f5ebfe (Fset_mouse_position): Remove the DOS-specific
definition (it's defined on `frame.c').
(syms_of_dosfns): Remove defsubr of `Fset_mouse_position'.
1996-06-10 21:09:54 +00:00
Richard M. Stallman
5066676655 (init_dosfns) [DJGPP >= 2]: Make `opendir' preserve
filename case (under Win95) and find hidden files.
1996-05-13 01:28:24 +00:00
Richard M. Stallman
9685838286 Undo previous change. 1996-05-06 10:20:51 +00:00
Richard M. Stallman
fb85960316 (Fmsdos_long_file_names): New function.
(syms_of_dosfns): defsubr it.
1996-05-05 18:52:57 +00:00
Richard M. Stallman
8f44c55ecc (mode25, mode4350): Moved to `lisp/dos-fns.el'. 1996-01-25 17:12:45 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Erik Naggum
e20104ba13 (Fint86, Fdos_memget, Fdos_memput, Fmsdos_set_keyboard): Harmonize
arguments with documentation.
1996-01-09 00:31:26 +00:00
Karl Heuer
c9c65c869e (syms_of_dosfns): delete the `dos-menubar-clock' and
`dos-timer-hooks' variables (the usual modeline time display now
works and `display-time-hook' can be used under DOS).
1995-12-19 20:59:46 +00:00
Richard M. Stallman
b3d5621c9b (syms_of_dosfns): Use 0x75 for dos_keypad_mode. 1995-11-21 06:51:26 +00:00
Kim F. Storm
5f08dc787a (insert-startup-screen): New function.
(msdos-memget, msdos-memput): New functions.
(msdos-set-keyboard, insert-startup-screen): New functions.
(dos-timezone-offset, dos-display-scancodes, dos-menubar-clock,
dos-hyper-key, dos-super-key, dos-keypad-mode, dos-keyboard-layout,
dos-decimal-point): New variables.
1995-10-11 15:12:35 +00:00
Richard M. Stallman
ac3b02794f (Fmsdos_mouse_enable, Fmsdos_mouse_disable)
(Fmsdos_mouse_init): New functions.
(syms_of_dosfns): defsubr them.
(Fmode25, Fmode4350): Call mouse_off unconditionally.
(Fset_mouse_position): Return nil.
1995-09-02 16:23:53 +00:00
Richard M. Stallman
edfc0d4575 Comment change. 1995-01-20 23:40:03 +00:00
Morten Welinder
87485d6fc9 *** empty log message *** 1994-10-17 08:42:36 +00:00
Richard M. Stallman
24ba360bb3 Finish downcasing mouse_init1, mouse_off,
mouse_check_moved, mouse_pressed, mouse_released, mouse_on, mouse_init.

(Fmode25, Fmode4350): Clean up the coding and return a well-defined value.
(syms_of_dosfns): Doc fix.
1994-05-02 07:51:29 +00:00
Richard M. Stallman
489847162d Use <...> for config.h. 1994-02-17 20:05:33 +00:00
Richard M. Stallman
1b94449f31 Initial revision 1994-01-08 09:22:50 +00:00