aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-01-02 14:21:54 +0000
committerEli Zaretskii2000-01-02 14:21:54 +0000
commitacf3ecb71c54c2580838e6eabe7f7880f55ff1ad (patch)
treeec8076bed6d9ef384f71d933d0d3915087666a1e
parent5fe1d13989c271a9cf42d874bc5746913b400134 (diff)
downloademacs-acf3ecb71c54c2580838e6eabe7f7880f55ff1ad.tar.gz
emacs-acf3ecb71c54c2580838e6eabe7f7880f55ff1ad.zip
Document the unified frame-independent support for colors and faces.
-rw-r--r--etc/NEWS24
1 files changed, 20 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index f5f8d07524f..216ceb0d014 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
1609The function `face-register-tty-color' can be used to define colors 1609The function `tty-color-define' can be used to define colors for use
1610for use on TTY frames. It maps a color name to a color number on the 1610on TTY and MSDOS frames. It maps a color name to a color number on
1611terminal. Emacs defines a couple of default color mappings by 1611the terminal. Emacs defines a couple of common color mappings by
1612default. You can get defined colors with a call to 1612default. 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
1614used to clear the mapping table. 1614used to clear the mapping table.
1615 1615
1616** Unified support for colors independent of frame type.
1617
1618The new functions `defined-colors', `color-defined-p', `color-values',
1619and `display-color-p' work for any type of frame. On frames whose
1620type is neither x nor w32, these functions transparently map X-style
1621color specifications to the closest colors supported by the frame
1622display. Lisp programs should use these new functions instead of the
1623old `x-defined-colors', `x-color-defined-p', `x-color-values', and
1624`x-display-color-p'. (The old function names are still available for
1625compatibility; they are now aliases of the new names.) Lisp programs
1626should no more look at the value of the variable window-system to
1627modify their color-related behavior.
1628
1629The primitives `color-gray-p' and `color-supported-p' also work for
1630any 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