aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2012-11-14 23:30:46 -0800
committerGlenn Morris2012-11-14 23:30:46 -0800
commitbde3c6c0f79ab814e12ea0f04b06625f91f5cd52 (patch)
tree1c5120a620b7fd140b6325cfa0a42173d155589e /doc
parente2e13f1831a71b558b3625c4ecf3d35100236870 (diff)
downloademacs-bde3c6c0f79ab814e12ea0f04b06625f91f5cd52.tar.gz
emacs-bde3c6c0f79ab814e12ea0f04b06625f91f5cd52.zip
Fixes related to face underlining
* lisp/faces.el (face-underline-p): Doc fix. Handle :underline being things other than `t' (a string, a list). (face-inverse-video-p): Doc fix. (set-face-underline): Rename it back from set-face-underline-p. Doc fix. Allow interactive input of values other than t. (read-face-attribute): Apply formatting to :underline, since like :box and :stipple it can take list values. * doc/lispref/display.texi (Face Attributes): Fix :underline COLOR description. (Attribute Functions): Update for set-face-underline rename. Tweak descriptions of face-underline-p, face-inverse-video-p. * etc/NEWS: Related edit.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/display.texi10
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index d05f48b9f2d..68d7bee2b64 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,6 +1,8 @@
12012-11-15 Glenn Morris <rgm@gnu.org> 12012-11-15 Glenn Morris <rgm@gnu.org>
2 2
3 * display.texi (Face Attributes): Fix :underline COLOR description. 3 * display.texi (Face Attributes): Fix :underline COLOR description.
4 (Attribute Functions): Update for set-face-underline rename.
5 Tweak descriptions of face-underline-p, face-inverse-video-p.
4 6
52012-11-14 Glenn Morris <rgm@gnu.org> 72012-11-14 Glenn Morris <rgm@gnu.org>
6 8
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 6c77a9937d7..9fedd162da6 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2403,7 +2403,7 @@ This sets the @code{:slant} attribute of @var{face} to @var{normal} if
2403@var{italic-p} is @code{nil}, and to @var{italic} otherwise. 2403@var{italic-p} is @code{nil}, and to @var{italic} otherwise.
2404@end defun 2404@end defun
2405 2405
2406@defun set-face-underline-p face underline &optional frame 2406@defun set-face-underline face underline &optional frame
2407This sets the @code{:underline} attribute of @var{face} to 2407This sets the @code{:underline} attribute of @var{face} to
2408@var{underline}. 2408@var{underline}.
2409@end defun 2409@end defun
@@ -2466,12 +2466,16 @@ attribute of @var{face} is @code{italic} or @code{oblique}, and
2466@code{nil} otherwise. 2466@code{nil} otherwise.
2467@end defun 2467@end defun
2468 2468
2469@c Note the weasel words. A face that inherits from an underlined
2470@c face but does not specify :underline will return nil.
2469@defun face-underline-p face &optional frame 2471@defun face-underline-p face &optional frame
2470This function returns the @code{:underline} attribute of face @var{face}. 2472This function returns non-@code{nil} if face @var{face} specifies
2473a non-@code{nil} @code{:underline} attribute.
2471@end defun 2474@end defun
2472 2475
2473@defun face-inverse-video-p face &optional frame 2476@defun face-inverse-video-p face &optional frame
2474This function returns the @code{:inverse-video} attribute of face @var{face}. 2477This function returns non-@code{nil} if face @var{face} specifies
2478a non-@code{nil} @code{:inverse-video} attribute.
2475@end defun 2479@end defun
2476 2480
2477@node Displaying Faces 2481@node Displaying Faces