1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

33 Commits

Author SHA1 Message Date
Eli Zaretskii
1400df92a7 (msdos-color-values): Reverse the order of the
colors, since tty-color-define now preserves the registration
order.
2002-01-25 13:13:02 +00:00
Eli Zaretskii
aa32689c0c (x-frob-font-slant, x-frob-font-weight): Add
make-obsolete cookies, to follow faces.el.
2001-10-26 21:27:19 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
1bd6203653 Update copyright notice. 2001-03-04 07:12:41 +00:00
Eli Zaretskii
c88c89a03a (msdos-handle-reverse-video): Look for reverse in
default-frame-alist as well.
2001-03-02 13:34:48 +00:00
Eli Zaretskii
8c7178105c (x-select-enable-clipboard): Customize (as per the Emacs Lisp manual). 2000-12-02 11:21:44 +00:00
Eli Zaretskii
f30846b1a8 (x-long-option-alist, msdos-handle-args): Remove;
startup.el now does that for all character-terminal frames.
2000-10-28 17:19:36 +00:00
Eli Zaretskii
8fcacf13ee (msdos-handle-reverse-video): Don't remove
reverse from the frame parameters, and don't invert foreground and
background colors.
2000-10-16 19:17:35 +00:00
Eli Zaretskii
f795f63364 Changes for automatic remapping of X colors on terminal frames:
* term/pc-win.el (msdos-setup-initial-frame): New function, run by
	term-setup-hook.  Call msdos-remember-default-colors and
	msdos-handle-reverse-video.
	(msdos-face-setup): Parts of code moved to
	msdos-setup-initial-frame.
	(msdos-handle-reverse-video): New function, modeled after
	x-handle-reverse-video.
	(make-msdos-frame): Don't use initial-frame-alist and
	default-frame-alist.  Call msdos-handle-reverse-video.
	(msdos-color-aliases): Remove.
	(msdos-color-translate, msdos-approximate-color): Remove.
	(msdos-color-values): Use 16-bit RGB values.  RGB values updated
	for better approximation of X colors.
	(msdos-face-setup): Call tty-color-clear.  Remove code that sets
	up tty-color-alist (it is now on startup.el).
	(x-display-color-p, x-color-defined-p, x-color-values,
	x-defined-colors, face-color-supported-p, face-color-gray-p):
	Remove.

	* facemenu.el (facemenu-read-color, list-colors-display): Use
	defined-colors for all frame types.
	(facemenu-color-equal): Use color-values for all frame types.

	* faces.el (read-face-attribute): For :foreground and :background
	attributes and frames on character terminals, translate the color
	to the closest supported one before looking it up in the list of
	valid values.
	(face-valid-attribute-values): Call defined-colors for all types
	of frames.
	(defined-colors, color-defined-p, color-values, display-color-p):
	New finctions.
	(x-defined-colors, x-color-defined-p, x-color-values,
	x-display-color-p): Aliases for the above.

	* startup.el (command-line): Register terminal colors for frame
	types other than x and w32, but only if the terminal supports
	colors.  Call tty-color-define instead of face-register-tty-color.

	* term/x-win.el (xw-defined-colors): Renamed from
	x-defined-colors.
	* term/w32-win.el (xw-defined-colors): Likewise.

	* term/tty-colors.el: New file.
	* loadup.el: Load term/tty-colors.
1999-12-06 17:55:00 +00:00
Eli Zaretskii
c0e2e77f8f (x-list-fonts): Return "ms-dos", not "default".
Do that if width is nil as well.
(x-display-mm-height, x-display-mm-width): Update values.
(x-colors): Compute the list from msdos-color-values.
(x-select-enable-clipboard): Doc fix.
(x-frob-font-weight, x-font-family-list): New functions.
1999-08-15 11:42:08 +00:00
Eli Zaretskii
68a89a250a (msdos-bg-mode): Remove. Call
frame-set-background-mode instead.  All callers changed.
(msdos-face-setup): Don't force color display parameter, it is set
by frame-set-background-mode.
(make-msdos-frame): Call x-handle-reverse-video and
face-set-after-frame-default.  Delete frame if creation failed.
1999-08-10 10:21:18 +00:00
Eli Zaretskii
c4d6496936 (msdos-face-setup): Register standard colors in
Vface_tty_color_alist.
(face-color-supported-p, face_color_gray_p): New functions.
1999-07-30 08:51:19 +00:00
Eli Zaretskii
a13b5fad5d (msdos-approximate-color): New function.
(msdos-color-translate): Call it to find a DOS color that best
approximates an X-style "#NNNNNN" color specification.
1999-02-01 13:25:12 +00:00
Eli Zaretskii
a0c712aea8 (msdos-color-values): New variable.
(x-color-values): New function, emulates its namesake from src/xfns.c.
(msdos-bg-mode): Add all dark colors to those which return "dark".
1998-10-14 15:11:12 +00:00
Eli Zaretskii
8254b6b485 (x-select-text, x-get-selection-value): Replace win16 with w16. 1998-04-22 13:45:00 +00:00
Eli Zaretskii
c8a6e3b923 (x-long-option-alist): New variable.
(msdos-handle-args): Handle and complete long options with
attached arguments.  Support "-name", "-T" and "-rv" options.
1997-10-13 16:05:32 +00:00
Eli Zaretskii
9de91fc5aa (msdos-color-aliases): Add missing colors.
(msdos-color-translate): Handle "deep" and "pale" color
varieties.
1997-08-27 12:22:35 +00:00
Richard M. Stallman
c13c88d74d (msdos-color-aliases): Remove color names which end with a number.
(msdos-color-translate): Handle color names which end with a
number, like gray85 and purple3.
(msdos-face-setup): Call `face-set-after-frame-default', so
default faces are correctly set.
Do not set background of the region face (it is set by
`face-set-after-frame-default').
1997-08-11 01:18:29 +00:00
Richard M. Stallman
cee30b8f9d (x-list-fonts): Return "default" when appropriate.
(query-fontset): Add (alternative) alias definition.
1997-08-07 17:33:49 +00:00
Richard M. Stallman
e2f35ede08 (msdos-bg-mode): New function.
(msdos-face-setup, make-msdos-frame): Set background-mode and
display-type properties for created frames.
1997-07-13 20:52:08 +00:00
Richard M. Stallman
092af6d867 Comment change. 1997-04-20 07:33:52 +00:00
Eli Zaretskii
c432c362bd * (x-select-enable-clipboard): New variable.
(x-select-text, x-get-selection-value): New functions, support for
MS-Windows clipboard.
1997-04-15 15:00:38 +00:00
Richard M. Stallman
e1ddc4b48d (iconify-or-deiconify-frame): Define to be a
no-op, so commands that call it (like viper.el) work.
1996-12-08 08:24:03 +00:00
Richard M. Stallman
9000684d2e (msdos-face-setup): Use `terminal-frame' for initial frame setup.
(make-msdos-frame): New MSDOS-specific frame creation function.
(focus-frame, unfocus-frame): Don't set to 'ignore.
(auto-raise-mode, auto-lower-mode): Likewise.
(set-background-color, set-foreground-color): Definitions deleted.
1996-06-10 21:19:59 +00:00
Richard M. Stallman
ec46c6e81e (msdos-color-aliases): Define more colors. (msdos-color-translate):
Fix `substring' arguments.  Recognize ``medium'' prefix.
1996-06-02 13:47:53 +00:00
Richard M. Stallman
9596811a3d Comment change. 1996-03-02 06:37:35 +00:00
Richard M. Stallman
a259d3371e (x-display-pixel-height, x-display-pixel-width):
Make the returned value consistent with one-pixel-per-character.
1996-02-08 17:49:24 +00:00
Erik Naggum
2fe590dcee Update FSF's office address. 1996-01-14 09:58:28 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Richard M. Stallman
bb3a457466 (x-colors): New variable, a list of colors
supported by PC color displays under MS-DOS.
(msdos-color-translate): Use `x-colors'.
(x-defined-colors): New alternate definition.
1996-01-02 23:04:42 +00:00
Richard M. Stallman
ea6401d799 (msdos-color-aliases): Add more aliases.
(msdos-face-setup): Change colors for bold, bold-italic, underline.
(x-frob-font-slant): Define as no-op.
1995-11-22 13:44:42 +00:00
Richard M. Stallman
beb4ba6875 (x-display-color-p): Accept optional arg. 1995-11-10 17:40:47 +00:00
Morten Welinder
ef88bd2dc0 Initial revision 1994-10-17 08:04:13 +00:00