diff options
| author | Eli Zaretskii | 2000-01-02 14:21:54 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-01-02 14:21:54 +0000 |
| commit | acf3ecb71c54c2580838e6eabe7f7880f55ff1ad (patch) | |
| tree | ec8076bed6d9ef384f71d933d0d3915087666a1e | |
| parent | 5fe1d13989c271a9cf42d874bc5746913b400134 (diff) | |
| download | emacs-acf3ecb71c54c2580838e6eabe7f7880f55ff1ad.tar.gz emacs-acf3ecb71c54c2580838e6eabe7f7880f55ff1ad.zip | |
Document the unified frame-independent support for colors and faces.
| -rw-r--r-- | etc/NEWS | 24 |
1 files changed, 20 insertions, 4 deletions
| @@ -1606,13 +1606,29 @@ specification can be | |||
| 1606 | +++ | 1606 | +++ |
| 1607 | ** Support functions for colors on text-only terminals. | 1607 | ** Support functions for colors on text-only terminals. |
| 1608 | 1608 | ||
| 1609 | The function `face-register-tty-color' can be used to define colors | 1609 | The function `tty-color-define' can be used to define colors for use |
| 1610 | for use on TTY frames. It maps a color name to a color number on the | 1610 | on TTY and MSDOS frames. It maps a color name to a color number on |
| 1611 | terminal. Emacs defines a couple of default color mappings by | 1611 | the terminal. Emacs defines a couple of common color mappings by |
| 1612 | default. You can get defined colors with a call to | 1612 | default. You can get defined colors with a call to |
| 1613 | `tty-defined-colors'. The function `face-clear-tty-colors' can be | 1613 | `defined-colors'. The function `tty-color-clear' can be |
| 1614 | used to clear the mapping table. | 1614 | used to clear the mapping table. |
| 1615 | 1615 | ||
| 1616 | ** Unified support for colors independent of frame type. | ||
| 1617 | |||
| 1618 | The new functions `defined-colors', `color-defined-p', `color-values', | ||
| 1619 | and `display-color-p' work for any type of frame. On frames whose | ||
| 1620 | type is neither x nor w32, these functions transparently map X-style | ||
| 1621 | color specifications to the closest colors supported by the frame | ||
| 1622 | display. Lisp programs should use these new functions instead of the | ||
| 1623 | old `x-defined-colors', `x-color-defined-p', `x-color-values', and | ||
| 1624 | `x-display-color-p'. (The old function names are still available for | ||
| 1625 | compatibility; they are now aliases of the new names.) Lisp programs | ||
| 1626 | should no more look at the value of the variable window-system to | ||
| 1627 | modify their color-related behavior. | ||
| 1628 | |||
| 1629 | The primitives `color-gray-p' and `color-supported-p' also work for | ||
| 1630 | any frame type. | ||
| 1631 | |||
| 1616 | +++ | 1632 | +++ |
| 1617 | ** The minibuffer prompt is now actually inserted in the minibuffer. | 1633 | ** The minibuffer prompt is now actually inserted in the minibuffer. |
| 1618 | 1634 | ||