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
9a558a07
Commit
9a558a07
authored
Jun 22, 2005
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(face-documentation, set-face-attribute)
(face-spec-set): Handle face aliases.
parent
31c8b366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
lisp/faces.el
lisp/faces.el
+13
-4
No files found.
lisp/faces.el
View file @
9a558a07
...
...
@@ -513,8 +513,17 @@ Use `face-attribute' for finer control."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(
defun
face-documentation
(
face
)
"Get the documentation string for FACE."
(
get
face
'face-documentation
))
"Get the documentation string for FACE.
If FACE is a face-alias, get the documentation for the target face."
(
let
((
alias
(
get
face
'face-alias
))
doc
)
(
if
alias
(
progn
(
setq
doc
(
get
alias
'face-documentation
))
(
format
"%s is an alias for the face `%s'.%s"
face
alias
(
if
doc
(
format
"\n%s"
doc
)
""
)))
(
get
face
'face-documentation
))))
(
defun
set-face-documentation
(
face
string
)
...
...
@@ -661,7 +670,7 @@ like an underlying face would be, with higher priority than underlying faces."
(
setq
args
(
purecopy
args
))
;; If we set the new-frame defaults, this face is modified outside Custom.
(
if
(
memq
where
'
(
0
t
))
(
put
face
'face-modified
t
))
(
put
(
or
(
get
face
'face-alias
)
face
)
'face-modified
t
))
(
while
args
(
internal-set-lisp-face-attribute
face
(
car
args
)
(
purecopy
(
cadr
args
))
...
...
@@ -1443,7 +1452,7 @@ If SPEC is nil, do nothing."
;; When we reset the face based on its spec, then it is unmodified
;; as far as Custom is concerned.
(
if
(
null
frame
)
(
put
face
'face-modified
nil
)))
(
put
(
or
(
get
face
'face-alias
)
face
)
'face-modified
nil
)))
(
defun
face-attr-match-p
(
face
attrs
&optional
frame
)
...
...
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