aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/facemenu.el
Commit message (Collapse)AuthorAgeFilesLines
* (facemenu-read-color): Do case-insensitive matching.Richard M. Stallman2005-07-101-4/+5
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (facemenu): Finish `defgroup' description with period.Juanma Barranquero2005-07-041-1/+1
|
* (facemenu-unlisted-faces): Delete foreground and background colorLute Kamstra2005-07-011-33/+39
| | | | | | | | | faces. (facemenu-set-foreground, facemenu-set-background): Use facemenu-set-face-from-menu. (facemenu-set-face-from-menu): Treat face names that start with "fg:" or "bg:" as special. (facemenu-add-new-color): Don't create faces. Simplify.
* (facemenu-add-face): Warn when font-lock is active.Richard M. Stallman2005-06-281-1/+3
|
* (facemenu-unlisted-faces): Add foreground and background color faces.Lute Kamstra2005-06-271-45/+30
| | | | | | | | | (facemenu-get-face): Delete function. (facemenu-set-face-from-menu): Don't call facemenu-get-face. (facemenu-add-new-color): Make second argument mandatory. Create the approprate face and return it. Simplify. (facemenu-set-foreground, facemenu-set-background): Don't check if color is defined. Use return value of facemenu-add-new-color.
* (facemenu-enable-faces-p): New function.Richard M. Stallman2005-06-251-0/+7
| | | | | (facemenu-background-menu, facemenu-foreground-menu) (facemenu-face-menu): Add menu-enable property.
* (list-colors-print): Print #RRGGBB in default face.Juri Linkov2005-03-081-12/+12
| | | | | | | | Remove 1 space before #RRGGBB to not truncate it on terminal windows w/o fringes. Remove 1 space between bg and fg examples to get more space. (list-colors-duplicates): Replace `and' with `if' for `boundp' to avoid byte-compile warnings.
* (global-map): Bind M-o, not M-g.Richard M. Stallman2005-03-061-4/+4
|
* * facemenu.el (list-colors-print): New function created from codeJuri Linkov2005-01-121-21/+36
| | | | | | | | in list-colors-display. Print #RRGGBB at the window right edge. (list-colors-display): When temp-buffer-show-function is not defined, call list-colors-print from temp-buffer-show-hook to get the right value of window-width in list-colors-print after the buffer is displayed.
* (list-colors-display): Add new arg buffer-name.Juri Linkov2005-01-111-49/+49
| | | | | | | | | | | Use it. Fix docstring. Replace code for identifying duplicate colors by the name with call to `list-colors-duplicates' which identifies duplicate colors by the value unless the color is one of special Windows colors. Set truncate-lines to t. Print sorted duplicate color names on each line. Indent to 22 \(the longest color name in rgb.txt) instead of 20. Optimize. (list-colors-duplicates): New function. (facemenu-color-name-equal): Delete function.
* (facemenu-active-faces): Change condition of inner `while' loop toLuc Teirlinck2004-09-041-1/+1
| | | | also check the first two elements of `face-atts' and `mask-atts'.
* (facemenu-color-name-equal): New function.Eli Zaretskii2004-05-201-1/+27
| | | | | (list-colors-display): Use it to compare colors instead of facemenu-color-equal.
* Add arch taglinesMiles Bader2003-09-011-0/+2
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-29/+29
|
* Move `provide' to the end.Stefan Monnier2002-07-081-3/+2
| | | | (facemenu-read-color): Don't cons unnecessarily.
* (facemenu-map): Rename to Describe TextRichard M. Stallman2002-06-171-2/+2
| | | | to Describe Properties and use describe-text-properties.
* (list-colors-display): Don't use `display-color-cells' unless theMiles Bader2002-05-091-4/+5
| | | | display class is one for which that info is relevant.
* (describe-text-at and stuff): Moved to descr-text.el.Richard M. Stallman2002-04-301-158/+0
|
* (list-text-properties-at): Command deleted.Richard M. Stallman2002-04-191-40/+3
|
* Remove require of wid-edit.Andrew Innes2002-04-181-1/+0
|
* (facemenu-add-new-face): Use this only for faces. Delete arg MENU.Richard M. Stallman2002-04-151-27/+56
| | | | | | (facemenu-add-new-color): New function. (facemenu-set-foreground, facemenu-set-background): Use facemenu-add-new-color.
* Require wid-edit.Andrew Innes2002-04-151-0/+1
|
* (facemenu-get-face): Remove unised variable `foreground'.Eli Zaretskii2002-03-241-2/+1
|
* (facemenu-add-new-face):Richard M. Stallman2002-03-141-11/+10
| | | | | | Pass region args to facemenu-set-face, when there is a region. (facemenu-set-foreground, facemenu-set-background) (facemenu-add-face): Doc fixes.
* 2002-02-19 Per Abrahamsen <[email protected]>Per Abrahamsen2002-02-191-12/+1
| | | | | | | * 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-14 Per Abrahamsen <[email protected]>Per Abrahamsen2002-02-141-3/+178
| | | | | | | | | | | | | | | | | | | | | | * 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.
* (list-colors-display): If the argument is nil, don'tEli Zaretskii2002-01-251-2/+6
| | | | show more colors that the number returned by display-color-cells.
* (facemenu-active-faces):Richard M. Stallman2002-01-021-2/+2
| | | | Use face-attributes-as-vector, not face-attributes-vector.
* Remove unnecessary spaces.Pavel Janík2001-12-031-1/+1
|
* (facemenu-add-new-face): Fix variable names.Miles Bader2001-10-251-3/+3
|
* (facemenu-unlisted-faces): Improve doc stringsRichard M. Stallman2001-10-241-75/+98
| | | | | | | | | | | | | 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.
* (facemenu-set-face, facemenu-set-face-from-menu): Doc fix.Eli Zaretskii2001-01-271-4/+4
|
* (facemenu-unlisted-faces): Fix value.Dave Love2000-12-071-4/+4
|
* Docstrings fixes.Stefan Monnier2000-07-061-14/+14
| | | | | (facemenu-get-face): Don't use internal-find-face. (facemenu-iterate): Rename arg to match the docstring.
* (facemenu-set-face): Fix interactive prompt.Dave Love2000-05-211-1/+1
|
* Use display-color-p.Dave Love2000-03-121-1/+1
|
* (list-text-properties-at): Set help-xref-stack toDave Love2000-03-011-0/+1
| | | | nil.
* (facemenu-set-face): Amend interactive prompt.Dave Love2000-02-161-1/+1
|
* Purecopy various strings.Dave Love2000-01-281-29/+43
|
* Changes for automatic remapping of X colors on terminal frames:Eli Zaretskii1999-12-061-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fix maintainer address.Karl Heuer1999-08-161-1/+1
|
* (facemenu-read-color): Make it work for ttys.Dave Love1999-07-301-1/+2
|
* (list-colors-display): Make it work on ttys.Dave Love1999-07-301-9/+10
|
* (facemenu-remove-face-props): Renamed fromKarl Heuer1997-12-091-6/+5
| | | | | facemenu-remove-props. Remove only face and mouse-face. (facemenu-menu): Update menu item for facemenu-remove-face-props.
* (facemenu-get-face): Just warn when given anRichard M. Stallman1997-09-021-17/+20
| | | | undefined color, no error, still return face.
* (facemenu-unlisted-faces): Expand variableRichard M. Stallman1997-08-261-8/+20
| | | | | | | | | 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.
* Customized.Richard M. Stallman1997-07-271-12/+36
|
* (facemenu-add-new-face): Fix comma in backquote.Richard M. Stallman1997-06-271-1/+1
|
* (facemenu-add-new-face): Rewrite to give eachRichard M. Stallman1997-04-251-9/+22
| | | | lambda expression a doc string.