1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00
Commit Graph

47 Commits

Author SHA1 Message Date
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
Boris Goldowsky
bf7d4561c1 (facemenu-get-face): Don't add to menu here.
(facemenu-face-menu, facemenu-foreground-menu,
	facemenu-background-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.
1994-10-20 18:15:25 +00:00
Richard M. Stallman
4a24b31474 (facemenu-read-color, facemenu-colors): New fn, var.
(facemenu-set-face, facemenu-set-face-from-menu,
facemenu-after-change):	Face property can take a list value; add
to it rather than completely replacing the property.
(facemenu-add-face, facemenu-discard-redundant-faces): New functions.

(facemenu-set-foreground, facemenu-set-background)
(facemenu-get-face, facemenu-foreground, facemenu-background): New
functions and variables.  Faces with names of the form fg:color
and bg:color are now treated specially.
(facemenu-update): Updated for above.
1994-10-12 23:23:23 +00:00
Richard M. Stallman
002e48b7b4 (facemenu-update): Make menu separators all dashes. 1994-09-20 19:31:16 +00:00
Richard M. Stallman
b22e89dc98 (facemenu-update): Reverse the menu order again. 1994-09-17 03:32:48 +00:00
Richard M. Stallman
41e7728940 (facemenu-update): Don't use quoted constant lists
in define-key.  Reverse order of menu definitions.
1994-09-15 02:15:29 +00:00
Richard M. Stallman
4e8aa57853 Initial revision 1994-09-14 19:32:18 +00:00