1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00
Commit Graph

246 Commits

Author SHA1 Message Date
Eli Zaretskii
95125512c2 (read-face-name): Doc fix.
(make-face-bold, make-face-unbold, make-face-italic)
(make-face-unitalic, make-face-bold-italic, invert-face): Remove
trailing blank from the prompt passed to read-face-name.
2001-10-29 18:40:23 +00:00
Eli Zaretskii
e458cb4997 (invert-face): Check for 'unspecified, not for nil,
when testing whether face colors are not specified.  From
David.Kastrup@t-online.de (David Kastrup).
2001-10-29 18:06:50 +00:00
Miles Bader
c7f814cb6d (face-attribute): Add INHERIT argument, consider face inheritance if non-nil.
(face-attribute-merged-with): New function.
(face-attribute-specified-or): New macro.
(face-foreground, face-background, face-stipple): Add INHERIT argument.
Use `face-attribute-specified-or'.
2001-10-28 10:19:33 +00:00
Eli Zaretskii
3fc67165a0 (internal-get-face): Use facep instead of the obsolete
internal-find-face.
(internal-frob-font-weight, internal-frob-font-slant): New
defailiases for obsolete functions.
(x-make-font-bold, x-make-font-demibold, x-make-font-unbold)
(x-make-font-italic, x-make-font-oblique, x-make-font-unitalic)
(x-make-font-bold-italic): Use internal-frob-font-weight and
internal-frob-font-slant aliases instead of the obsolete
x-frob-... functions.
2001-10-26 21:16:09 +00:00
Stefan Monnier
2cb95d1b7b (describe-face): Call help-setup-xref earlier. 2001-10-12 16:38:32 +00:00
Miles Bader
8940232b59 (list-faces-display, describe-face): Fix args to `help-xref-button'.
(describe-face): Don't switch to help-buffer around call to `help-setup-xref'.
Use `help-buffer' instead of hard-wired "*Help*".
Require `help-mode'.
2001-10-12 01:53:58 +00:00
Andrew Innes
c97db4e4de (face-font-registry-alternatives) [windows-nt]: Make
gb2312 an alias for gb2312.1980.
2001-10-04 17:14:53 +00:00
Pavel Janík
6228c05b99 Keyword added and FSF specified as Maintainer. 2001-08-06 10:12:17 +00:00
Eli Zaretskii
442ebe9842 (region): Change the background color for the
light-background color display to lightgoldenrod2, to make it
visible on some laptops.
2001-06-29 17:40:38 +00:00
Sam Steingold
00f5189042 minor optimization 2001-05-29 16:12:03 +00:00
Gerd Moellmann
75fe153b0c (tty-handle-reverse-video): Don't set inverse-video. 2001-04-25 18:16:30 +00:00
Stefan Monnier
7cd512f22f (modify-face): Add compatibility for non-interactive use. 2001-04-25 15:22:53 +00:00
Gerd Moellmann
bbf63a7b75 (menu): Doc fix. 2001-04-10 13:37:13 +00:00
Gerd Moellmann
0e4892e24d (defface menu): Doc fix. 2001-04-05 16:16:28 +00:00
Miles Bader
78ad1cd532 (set-face-background, set-face-foreground)
(set-face-stipple): Treat a value of nil as being `unspecified'.
2001-02-13 02:03:58 +00:00
Kenichi Handa
a63bcdb884 (mode-line): Set :line-width property to -1. 2001-02-11 06:47:20 +00:00
Kenichi Handa
0f937ebd99 (set-face-attribute): Describe the case of a negative
value specified for :line-width.
2001-02-09 12:35:36 +00:00
Gerd Moellmann
c242484757 (face-spec-set): Interpret a nil in specs for
foreground and background colors as `unspecified', for
compatibility with 20.x.
2000-12-18 15:05:02 +00:00
Miles Bader
4385f1b08d WS 2000-12-15 03:18:26 +00:00
Miles Bader
f9056dd941 (read-face-attribute): If there's no entry for the user's input in
VALID, just use it as-is (this will often result in an error, but it may
be OK for e.g. colors using hexadecimal notation, and at least will
yield a better error message).
2000-12-15 03:12:09 +00:00
Miles Bader
6e4240195f (frame-set-background-mode): Avoid stomping on locally modified faces. 2000-12-06 05:11:20 +00:00
Kenichi Handa
8ac2d32f18 (face-font-registry-alternatives): Add entries for CJK
fonts.  Doc-string adjusted for the actual usage of this data.
2000-12-04 06:27:16 +00:00
Gerd Moellmann
e3fa42c299 (face-foreground, face-background, face-stipple):
Return nil if attribute is unspecified, for backward
compatibility.
2000-11-29 19:21:17 +00:00
Gerd Moellmann
bdc03dd96f (face-set-after-frame-default): Let face attributes
specified for new frames override frame parameters.
2000-11-24 13:16:13 +00:00
Miles Bader
ebd040584d (menu): Make inverse-video on ttys too. 2000-11-22 15:32:13 +00:00
Gerd Moellmann
2392ccb758 (face-set-after-frame-default): If
`inhibit-default-face-x-resources' is bound, don't intiialize the
default face from X resources.
2000-11-15 19:22:06 +00:00
Miles Bader
bdab1d433f (header-line): Use `:box nil' for color/gs displays too. 2000-11-14 09:02:02 +00:00
Eli Zaretskii
1695ca2b15 (face-spec-set-match-display): Revert the change from
2000-10-24.  Add a FIXME for after v21.1.
2000-11-13 15:03:35 +00:00
Dave Love
f676894c4e (face-font-registry-alternatives): Add :version. 2000-11-12 00:38:44 +00:00
Gerd Moellmann
18f1dcb449 (face-font-registry-alternatives): New user-option. 2000-11-10 14:34:23 +00:00
Eli Zaretskii
53990c845c (tty-handle-reverse-video): New function.
(tty-create-frame-with-faces): Call it.
2000-10-28 17:17:42 +00:00
Miles Bader
073f69e6f7 (face-spec-choose): Change syntax so that the list of attribute-value
pairs is now the cdr of each clause, not the cadr.  Detect old-style
entries, and handle them.  Use pop.
2000-10-27 01:46:13 +00:00
Miles Bader
c698842f20 (face-spec-set-match-display):
Add `graphic' display type (the inverse of `tty').
  Use `display-graphic-p' instead of the window-system variable.
2000-10-24 06:16:20 +00:00
Miles Bader
94fe8a31c7 (face-default-spec, face-user-default-spec): Make defsubsts. 2000-10-24 01:17:23 +00:00
Miles Bader
96c2938fc9 (face-user-default-spec, face-default-spec): New functions.
(face-spec-choose, face-spec-set): Document nil-SPEC behavior.
(frame-set-background-mode, face-set-after-frame-default):
  Use `face-user-default-spec'.  Simplify code slightly.
2000-10-23 05:32:59 +00:00
Miles Bader
984905989e (header-line): Make more reasonable on mono/grayscale displays. 2000-10-23 04:50:20 +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
Miles Bader
1e221c163c (color-values, color-defined-p): Use `member', not
`memq', because it works correctly for strings.
(frame-set-background-mode): Actually, "unspecified-fg" and
"unspecified-bg" *are* strings.  Use `member', not `memq', and
`equal', not `eq', when a string value is possible.
2000-10-21 22:29:38 +00:00
Miles Bader
d8abcd91a3 (frame-set-background-mode): `unspecified' &c are symbols, not strings. 2000-10-19 08:37:11 +00:00
Eli Zaretskii
772139c0a6 (frame-set-background-mode): If a tty frame defines a
background color, use that to compute the background mode, instead
of always defaulting to "dark".
2000-10-19 06:56:50 +00:00
Miles Bader
1cb4393ea7 (header-line): Change tty-variant to use underlining. 2000-10-12 07:52:42 +00:00
Miles Bader
2af966f9ad (region): Make dark-background `region' face less in-your-face. 2000-10-11 10:39:08 +00:00
Miles Bader
f161d53913 (frame-set-background-mode):
Only do anything if the bg-mode or display-type has actually changed.
  Use `dolist'.
2000-10-11 10:02:10 +00:00
Miles Bader
4b33f2900f (frame-set-background-mode):
Pay attention to saved face specs as well as default ones.
2000-10-11 07:43:17 +00:00
Miles Bader
445a653e23 (secondary-selection): Make foreground visible on tty. 2000-10-08 04:28:35 +00:00
Miles Bader
55a3d2a170 (mode-line, tool-bar): Merge entries for x' and w32'. 2000-09-20 08:46:32 +00:00
Miles Bader
37a9982199 (face-valid-attribute-values): Make sure directories we search for
stipples both exist and are readable before trying to search them.
2000-09-20 07:42:51 +00:00
Miles Bader
690d30e676 (secondary-selection): Make dark-background variant sane. 2000-09-18 05:48:14 +00:00
Miles Bader
53c9ab4f44 (header-line): Tweak face. 2000-09-17 17:05:15 +00:00
Miles Bader
a114b1ca6e (header-line): Change defaults to be less confusing when mixed with mode-lines. 2000-09-17 16:42:09 +00:00