aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2012-02-03 20:23:09 -0500
committerGlenn Morris2012-02-03 20:23:09 -0500
commit94bc79845c7bec68561e086d7494749a40e48c23 (patch)
tree7da38223011fd9a09820e38c0a710d2ac6509561 /doc
parentbd5cfef1b5a1af525b100d9b1a1a0a6b4c81ad41 (diff)
downloademacs-94bc79845c7bec68561e086d7494749a40e48c23.tar.gz
emacs-94bc79845c7bec68561e086d7494749a40e48c23.zip
* doc/lispref/minibuf.texi (High-Level Completion): Updates for read-color.
* etc/NEWS: Likewise.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/minibuf.texi12
2 files changed, 10 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 45dc7673212..36780b20248 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12012-02-04 Glenn Morris <rgm@gnu.org>
2
3 * minibuf.texi (High-Level Completion): Updates for read-color.
4
12012-02-03 Glenn Morris <rgm@gnu.org> 52012-02-03 Glenn Morris <rgm@gnu.org>
2 6
3 * display.texi (GIF Images): Mention animation. 7 * display.texi (GIF Images): Mention animation.
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index e3008470233..a71138f5268 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -1335,19 +1335,19 @@ but uses the predicate @code{user-variable-p} instead of
1335@deffn Command read-color &optional prompt convert allow-empty display 1335@deffn Command read-color &optional prompt convert allow-empty display
1336This function reads a string that is a color specification, either the 1336This function reads a string that is a color specification, either the
1337color's name or an RGB hex value such as @code{#RRRGGGBBB}. It 1337color's name or an RGB hex value such as @code{#RRRGGGBBB}. It
1338prompts with @var{prompt} (default: @code{"Color (name or #R+G+B+):"}) 1338prompts with @var{prompt} (default: @code{"Color (name or #RGB triplet):"})
1339and provides completion for color names, but not for hex RGB values. 1339and provides completion for color names, but not for hex RGB values.
1340In addition to names of standard colors, completion candidates include 1340In addition to names of standard colors, completion candidates include
1341the foreground and background colors at point. 1341the foreground and background colors at point.
1342 1342
1343Valid RGB values are described in @ref{Color Names}. 1343Valid RGB values are described in @ref{Color Names}.
1344 1344
1345The function's return value is the color name typed by the user in the 1345The function's return value is the string typed by the user in the
1346minibuffer. However, when called interactively or if the optional 1346minibuffer. However, when called interactively or if the optional
1347argument @var{convert} is non-@code{nil}, it converts the name into 1347argument @var{convert} is non-@code{nil}, it converts any input color
1348the color's RGB value and returns that value as a string. If an 1348name into the corresponding RGB value string and instead returns that.
1349invalid color name was specified, this function signals an error, 1349This function requires a valid color specification to be input.
1350except that empty color names are allowed when @code{allow-empty} is 1350Empty color names are allowed when @code{allow-empty} is
1351non-@code{nil} and the user enters null input. 1351non-@code{nil} and the user enters null input.
1352 1352
1353Interactively, or when @var{display} is non-@code{nil}, the return 1353Interactively, or when @var{display} is non-@code{nil}, the return