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
ed58ed83
Commit
ed58ed83
authored
Feb 21, 2000
by
Gerd Moellmann
Browse files
(enriched-face-ans): Handle '(foreground-color
. COLOR) and (background-color . COLOR).
parent
65d0af29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/enriched.el
lisp/enriched.el
+5
-1
No files found.
lisp/enriched.el
View file @
ed58ed83
...
...
@@ -348,7 +348,11 @@ One annotation each for foreground color, background color, italic, etc."
(
defun
enriched-face-ans
(
face
)
"Return annotations specifying FACE."
(
cond
((
string-match
"^fg:"
(
symbol-name
face
))
(
cond
((
and
(
consp
face
)
(
eq
(
car
face
)
'foreground-color
))
(
list
"x-color"
(
cdr
face
)))
((
and
(
consp
face
)
(
eq
(
car
face
)
'background-color
))
(
list
"x-bg-color"
(
cdr
face
)))
((
string-match
"^fg:"
(
symbol-name
face
))
(
list
(
list
"x-color"
(
substring
(
symbol-name
face
)
3
))))
((
string-match
"^bg:"
(
symbol-name
face
))
(
list
(
list
"x-bg-color"
(
substring
(
symbol-name
face
)
3
))))
...
...
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