Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1bd59f82
Commit
1bd59f82
authored
Dec 31, 2004
by
Richard M. Stallman
Browse files
(read-face-name): Don't treat an attribute spec as a list of faces.
parent
d020fce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lisp/faces.el
lisp/faces.el
+5
-2
No files found.
lisp/faces.el
View file @
1bd59f82
...
...
@@ -854,12 +854,15 @@ Otherwise, return a single face."
(
get-char-property
(
point
)
'face
)))
faces
)
;; Make a list of the named faces that the `face' property uses.
(
if
(
listp
faceprop
)
(
if
(
and
(
listp
faceprop
)
;; Don't treat an attribute spec as a list of faces.
(
not
(
keywordp
(
car
faceprop
)))
(
not
(
memq
(
car
faceprop
)
'
(
foreground-color
background-color
))))
(
dolist
(
f
faceprop
)
(
if
(
symbolp
f
)
(
push
f
faces
)))
(
if
(
symbolp
faceprop
)
(
setq
face
s
(
list
faceprop
)
)))
(
push
face
prop
faces
)))
;; If there are none, try to get a face name from the buffer.
(
if
(
and
(
null
faces
)
(
memq
(
intern-soft
(
thing-at-point
'symbol
))
(
face-list
)))
...
...
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