1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00
Commit Graph

69 Commits

Author SHA1 Message Date
Stefan Monnier
1ff4ace585 Move `provide' to the end.
(facemenu-read-color): Don't cons unnecessarily.
2002-07-08 01:21:41 +00:00
Richard M. Stallman
cea5ec30b4 (facemenu-map): Rename to Describe Text
to Describe Properties and use describe-text-properties.
2002-06-17 16:14:37 +00:00
Miles Bader
d259670027 (list-colors-display): Don't use `display-color-cells' unless the
display class is one for which that info is relevant.
2002-05-09 18:05:10 +00:00
Richard M. Stallman
641c04b9f0 (describe-text-at and stuff): Moved to descr-text.el. 2002-04-30 04:59:24 +00:00
Richard M. Stallman
0af1db4225 (list-text-properties-at): Command deleted. 2002-04-19 00:27:07 +00:00
Andrew Innes
a03c7d2406 Remove require of wid-edit. 2002-04-18 12:08:40 +00:00
Richard M. Stallman
9bf4c4e564 (facemenu-add-new-face): Use this only for faces. Delete arg MENU.
(facemenu-add-new-color): New function.
(facemenu-set-foreground, facemenu-set-background):
Use facemenu-add-new-color.
2002-04-15 22:05:52 +00:00
Andrew Innes
772f363f27 Require wid-edit. 2002-04-15 10:25:19 +00:00
Eli Zaretskii
c7bce5f21f (facemenu-get-face): Remove unised variable `foreground'. 2002-03-24 19:17:10 +00:00
Richard M. Stallman
af1eab213c (facemenu-add-new-face):
Pass region args to facemenu-set-face, when there is a region.
(facemenu-set-foreground, facemenu-set-background)
(facemenu-add-face): Doc fixes.
2002-03-14 08:52:16 +00:00
Per Abrahamsen
9b2d1d408c 2002-02-19 Per Abrahamsen <abraham@dina.kvl.dk>
* facemenu.el (describe-text-mode-map): Removed bootstrap kludge.

	* toolbar/tool-bar.el (tool-bar-mode): Made the standard value t.
	* menu-bar.el (menu-bar-mode): Ditto.
2002-02-19 10:30:30 +00:00
Per Abrahamsen
0e520006a8 2002-02-14 Per Abrahamsen <abraham@dina.kvl.dk>
* facemenu.el (describe-text-done): New function.
	(describe-text-mode-map): New variable.
	(describe-text-mode-hook): New option.
	(describe-text-mode): New function.
	(describe-text-widget): New function.
	(describe-text-sexp): New function.
	(describe-text-properties): New function.
	(describe-text-category): New command.
	(describe-text-at): New command.
	(facemenu-menu): Replace `list-text-properties-at' with
	`describe-text-at' in the menu.

	* wid-edit.el (widgetp): New function.
	* wid-edit.el (widget-keymap, widget-insert, widget-setup):
	Autoloaded.

	* emacs-lisp/pp.el (pp-to-string): Autoloaded.

	* wid-browse.el: Removed version and x-url keywords.
2002-02-14 16:47:11 +00:00
Eli Zaretskii
6062889d6f (list-colors-display): If the argument is nil, don't
show more colors that the number returned by display-color-cells.
2002-01-25 13:11:49 +00:00
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