summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-11-06 18:52:30 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-06 18:55:34 +0100
commitcf9d85c1ea3c8b6eda9e2f388c14c1a02576ea8c (patch)
treea9f6c57022db48b6228aad698b376352e64b2507
parentf921f189ee3d77715247bc81a723c09408971cc4 (diff)
downloademacs-cf9d85c1ea3c8b6eda9e2f388c14c1a02576ea8c.tar.gz
emacs-cf9d85c1ea3c8b6eda9e2f388c14c1a02576ea8c.tar.bz2
emacs-cf9d85c1ea3c8b6eda9e2f388c14c1a02576ea8c.zip
Add an example to the display-supports-face-attributes-p doc string
* src/xfaces.c (Fdisplay_supports_face_attributes_p): Add an example.
-rw-r--r--src/xfaces.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 22f37222c38..a8cbf347904 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -5373,6 +5373,10 @@ DEFUN ("display-supports-face-attributes-p",
The optional argument DISPLAY can be a display name, a frame, or
nil (meaning the selected frame's display).
+For instance, to check whether the display supports underlining:
+
+ (display-supports-face-attributes-p \\='(:underline t))
+
The definition of `supported' is somewhat heuristic, but basically means
that a face containing all the attributes in ATTRIBUTES, when merged
with the default face for display, can be represented in a way that's