Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
11ef2a3b
Commit
11ef2a3b
authored
Jun 11, 2002
by
Miles Bader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display-supports-face-attributes-p
parent
658397fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
etc/NEWS
etc/NEWS
+7
-0
lispref/frames.texi
lispref/frames.texi
+28
-1
No files found.
etc/NEWS
View file @
11ef2a3b
...
...
@@ -1000,6 +1000,13 @@ removes the text properties in the `yank-excluded-properties' list.
** New function insert-buffer-substring-no-properties.
** New function display-supports-face-attributes-p may be used to test
whether a given set of face attributes is actually displayable.
A new predicate `supports' has also been added to the `defface' face
specification language, which can be used to do this test for faces
defined with defface.
** Enhanced networking support.
*** There is a new `make-network-process' function which supports
...
...
lispref/frames.texi
View file @
11ef2a3b
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999
, 2002
@c Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../info/frames
...
...
@@ -1717,6 +1717,33 @@ This function returns @code{t} if the screen can display shades of gray.
(All color displays can do this.)
@end defun
@anchor{Display Face Attribute Testing}
@defun display-supports-face-attributes-p attributes &optional display
@tindex display-supports-face-attributes-p
This function returns non-@code{nil} if all the face attributes in
@var{attributes} are supported (@pxref{Face Attributes}).
The definition of `supported' is somewhat heuristic, but basically
means that a face containing all the attributes in @var{attributes},
when merged with the default face for display, can be represented in a
way that's
@enumerate
@item
different in appearance than the default face, and
@item
`close in spirit' to what the attributes specify, if not exact.
@end enumerate
Point (2) implies that a @code{:weight black} attribute will be
satisfied by any display that can display bold, as will
@code{:foreground "yellow"} as long as some yellowish color can be
displayed, but @code{:slant italic} will @emph{not} be satisified by
the tty display code's automatic substitution of a `dim' face for
italic.
@end defun
@defun display-selections-p &optional display
@tindex display-selections-p
This function returns @code{t} if @var{display} supports selections.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment