1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

56 Commits

Author SHA1 Message Date
Richard M. Stallman
f790dddf6d (facemenu-active-faces):
Use face-attributes-as-vector, not face-attributes-vector.
2002-01-02 22:56:12 +00:00
Pavel Janík
220c969f6e Remove unnecessary spaces. 2001-12-03 06:09:24 +00:00
Miles Bader
1d792b181b (facemenu-add-new-face): Fix variable names. 2001-10-25 01:08:52 +00:00
Richard M. Stallman
7d8177cf90 (facemenu-unlisted-faces): Improve doc strings
of t and nil values.
(facemenu-set-face): Handle START and END interactively.
(facemenu-set-foreground): Don't use a face; specify color directly.
(facemenu-set-background): Likewise.
(facemenu-set-face-from-menu): Doc fix.
(facemenu-active-faces): Use face-attribute-vector
to handle bare attributes not in faces.
(facemenu-get-face): Don't handle face names fg:... and bg:... specially.
(facemenu-add-new-face): New argument MENU.
New way to handle adding colors to the color menus.
2001-10-24 22:53:45 +00:00
Eli Zaretskii
cfee9de7a9 (facemenu-set-face, facemenu-set-face-from-menu): Doc fix. 2001-01-27 11:49:46 +00:00
Dave Love
74a723ded2 (facemenu-unlisted-faces): Fix value. 2000-12-07 12:14:08 +00:00
Stefan Monnier
7e6cb5132d Docstrings fixes.
(facemenu-get-face): Don't use internal-find-face.
(facemenu-iterate): Rename arg to match the docstring.
2000-07-06 13:58:49 +00:00
Dave Love
84469aeb4f (facemenu-set-face): Fix interactive prompt. 2000-05-21 16:56:47 +00:00
Dave Love
27cd44bcfa Use display-color-p. 2000-03-12 15:27:33 +00:00
Dave Love
37d5af8a49 (list-text-properties-at): Set help-xref-stack to
nil.
2000-03-01 19:05:24 +00:00
Dave Love
d932ce2079 (facemenu-set-face): Amend interactive prompt. 2000-02-16 22:45:03 +00:00
Dave Love
2d07ff8462 Purecopy various strings. 2000-01-28 23:51:45 +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
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00
Dave Love
f2711a0ed5 (facemenu-read-color): Make it work for ttys. 1999-07-30 21:38:04 +00:00
Dave Love
16b6c96620 (list-colors-display): Make it work on ttys. 1999-07-30 18:30:04 +00:00
Karl Heuer
a32d7856d3 (facemenu-remove-face-props): Renamed from
facemenu-remove-props.  Remove only face and mouse-face.
(facemenu-menu): Update menu item for facemenu-remove-face-props.
1997-12-09 21:34:50 +00:00
Richard M. Stallman
0351bce7c1 (facemenu-get-face): Just warn when given an
undefined color, no error, still return face.
1997-09-02 19:59:11 +00:00
Richard M. Stallman
7dc30d5ba8 (facemenu-unlisted-faces): Expand variable
definition to allow regexps; add regexps for some packages that
define a lot of faces.
(facemenu-add-new-face): Test new face against regexps.
(list-colors-display): Rather than creating a zillion faces, use
new (foreground-color . COLOR) and (background-color . COLOR)
face properties.
1997-08-26 17:59:23 +00:00
Richard M. Stallman
487e6fcbdd Customized. 1997-07-27 19:53:27 +00:00
Richard M. Stallman
b0383de261 (facemenu-add-new-face): Fix comma in backquote. 1997-06-27 22:31:00 +00:00
Richard M. Stallman
536f1a104b (facemenu-add-new-face): Rewrite to give each
lambda expression a doc string.
1997-04-25 04:46:19 +00:00
Richard M. Stallman
9086c73099 (facemenu-update): Don't make global bindings here.
Make them at top level.
(facemenu-key): Variable deleted.
(facemenu-keybindings, facemenu-new-faces-at-end)
(facemenu-unlisted-faces, facemenu-remove-face-function): Doc fixes.
1997-04-18 02:53:46 +00:00
Boris Goldowsky
0e3edd7b16 Change put-text-property with constant args to add-text-properties for efficiency. Suggested by Stavros Macrakis <s.macrakis@opengroup.org> 1997-02-24 17:47:07 +00:00
Geoff Voelker
b86b9918dd Use w32 instead of ms-windows for window-system symbol 1996-11-19 06:59:17 +00:00
Richard M. Stallman
bc5155cdb1 (facemenu-color-equal): Change win32 to ms-windows. 1996-09-15 02:16:57 +00:00
Karl Heuer
7cd494507f (facemenu-complete-face-list): Doc fix. 1996-06-08 00:55:46 +00:00
Richard M. Stallman
25a4509f70 (list-text-properties-at): Display category's properties. 1996-03-28 04:40:34 +00:00
Karl Heuer
f2b7756c10 (list-text-properties-at): Pass proper format string to message. 1996-01-25 00:53:55 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
682e437e05 (facemenu-add-face): Adding default to no region
once again sets it for following typed in text.
1996-01-12 06:12:08 +00:00
Richard M. Stallman
cb5bec6ebb (facemenu-read-color, list-colors-display)
(facemenu-get-face): Treat all non-nil window-system values alike.
(facemenu-color-equal): Special case for MSDOS.
1996-01-02 23:04:06 +00:00
Karl Heuer
5a79ed267f (facemenu-active-faces): Replaces function
`facemenu-discard-redundant-faces'.  This version, written by
Simon Marshall, is faster and does not require optional
argument for recursive re-entry.  New argument FRAME allows
check to be done relative to face definitions in any frame.

(facemenu-unlisted-faces): Remove font-lock faces from
the default list.  The list of face names was out of sync; to
prevent this from happenning again I made font-lock.el, and other
packages that create "private" faces, put them on the list
themselves.  This should give them a better chance of being
updated when the packages are changed.
1995-11-10 18:59:43 +00:00
Geoff Voelker
e80af09c2f [win32] (face-menu-read-color, list-colors-display, facemenu-color-equal, face-menu-get-face):
Test for 'win32 window system as well as 'x.
1995-11-07 07:48:36 +00:00
Richard M. Stallman
be01074898 Comment change. 1995-10-30 17:35:01 +00:00
Simon Marshall
29008daae0 Props -> Properties 1995-06-16 08:51:48 +00:00
Boris Goldowsky
7865eac640 Change email address for Boris. 1995-06-05 20:43:19 +00:00
Karl Heuer
f34eaa2c2f (facemenu-special-menu): Use characters, not symbols.
Add Remove Special menu item.
(facemenu-remove-special): New function.
(facemenu-set-face-from-menu): If prefix arg, treat region as inactive.
(facemenu-set-face): Likewise.
(facemenu-keymap, facemenu-foreground-menu, facemenu-background-menu):
Add ... after Other.
(facemenu-menu): Change name to Text Properties.

(facemenu-remove-really-all): New function.
(facemenu-special-menu): Add Remove All menu item.
(facemenu-indentation-menu): Make item names clearer.
Pick new key names too.

(facemenu-menu): Split up definition.
Move `Remove All' item here.
(facemenu-special-menu): Delete `Remove All' item.
(facemenu-remove-all): Renamed from facemenu-remove-really-all.
(facemenu-remove-props): Renamed from facemenu-remove-all.
1995-05-30 18:31:00 +00:00
Karl Heuer
f61deddc6d (facemenu-set-face-from-menu): Doc fix.
(facemenu-set-background, facemenu-set-foreground): Doc fix.
(facemenu-set-face): Doc fix.
1995-05-16 06:14:22 +00:00
Richard M. Stallman
7c49006bee (list-colors-display): Minor clarification.
(facemenu-special-menu): Add "Intangible" item.
(facemenu-color-equal): Doc fix.
1995-04-16 04:15:39 +00:00
Boris Goldowsky
da627a7158 (facemenu-read-color): Don't ignore PROMPT arg. Make arg optional.
(facemenu-unlisted-faces): Add font-lock faces to default value.
1995-04-11 15:56:53 +00:00
Karl Heuer
732be46569 Update copyright. 1995-04-07 01:20:53 +00:00
Boris Goldowsky
9dc90430f3 Doc fix + autoload cookies. 1995-03-22 19:42:05 +00:00
Boris Goldowsky
c0a7db8434 (list-text-properties-at): New fn.
(facemenu-menu): Add it to menu.
1995-03-21 21:47:23 +00:00
Boris Goldowsky
6c1fd142be (facemenu-justification-menu): binding fixed. 1995-02-23 18:45:30 +00:00
Boris Goldowsky
41e5bf664f (facemenu-self-insert-face): If previous
self-insert-face is still valid, add to rather than replace it.
1995-02-14 15:00:40 +00:00
Richard M. Stallman
7fce8c916f (facemenu-next): Variable deleted.
(facemenu-self-insert-face): New function.
(facemenu-set-face): Use facemenu-self-insert-face.
(facemenu-set-face-from-menu): Likewise.
(facemenu-after-change): Function deleted.  Don't use it as hook.
1995-02-13 16:56:19 +00:00
Richard M. Stallman
88d690a96e (facemenu-keybindings, facemenu-face-menu):
Keybinding for bold-italic changed from M-g o to M-g l; M-g o is
now "other".
(facemenu-justification-menu, facemenu-indentation-menu):
New submenus, moved from enriched.el
(list-colors-display, facemenu-color-equal): New functions.
(facemenu-menu): Added "Display Faces" item.
(facemenu-new-faces-at-end): New variable.
(facemenu-add-new-face): Obey facemenu-new-faces-at-end.
(facemenu-menu, facemenu-keymap, facemenu-face-menu)
(facemenu-foreground-menu, facemenu-background-menu)
(facemenu-special-menu): Now have function definitions as prefix keys.
(facemenu-menu, facemenu-update): Refer to submenus by their names
rather than including their values.
(facemenu-set-face): Error if read-only; add item to menu if necessary.
(facemenu-get-face): Always return FACE.
(facemenu-add-new-face): Don't add if facemenu-unlisted-faces is t.
(facemenu-unlisted-faces): Doc fix.

Revise keybindings; doc fix.
(facemenu-new-faces-at-end): New vbl. (facemenu-add-new-face): Use it.
(facemenu-set-face, facemenu-set-face-from-menu): Check read-only.
(facemenu-set-face): Doc fix.

(facemenu-face-menu, facemenu-foreground-menu,
facemenu-background-menu, facemenu-special-menu): New or renamed
variables for submenus.
(facemenu-color-alist): Renamed from facemenu-colors.
(facemenu-add-new-face): New function.
(facemenu-update): Don't redo top-level menu;
nothing should change.  Move menu setup to defvars.  Use
facemenu-add-new-face. Changed global binding to C-down-mouse-3.
(facemenu-menu): "Update" item removed; should
no longer be needed interactively.
(facemenu-complete-face-list): Just return faces, not keybindings.
1995-01-22 16:47:10 +00:00
Richard M. Stallman
d2eafd888d (facemenu-key): Change to M-g. 1994-12-24 16:43:16 +00:00
Richard M. Stallman
535d2617a0 (facemenu-update): Use C-down-mouse-2 for the menu.
Doc fixes.
1994-11-09 20:56:17 +00:00