emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master cf9d85c 2/3: Add an example to the display-supports-face-attribut


From: Lars Ingebrigtsen
Subject: master cf9d85c 2/3: Add an example to the display-supports-face-attributes-p doc string
Date: Sat, 6 Nov 2021 13:56:49 -0400 (EDT)

branch: master
commit cf9d85c1ea3c8b6eda9e2f388c14c1a02576ea8c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Add an example to the display-supports-face-attributes-p doc string
    
    * src/xfaces.c (Fdisplay_supports_face_attributes_p): Add an example.
---
 src/xfaces.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xfaces.c b/src/xfaces.c
index 22f3722..a8cbf34 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]