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
c7957947
Commit
c7957947
authored
Nov 29, 2000
by
Gerd Moellmann
Browse files
(enriched-face-ans): Use face-attribute instead
of face-foreground and face-background.
parent
3fae165c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
lisp/ChangeLog
lisp/ChangeLog
+11
-0
lisp/enriched.el
lisp/enriched.el
+2
-2
No files found.
lisp/ChangeLog
View file @
c7957947
2000-11-29 Gerd Moellmann <gerd@gnu.org>
* toolbar/tool-bar.el (tool-bar-add-item-from-menu): Use
face-attribute instead of face-foreground and face-background.
(tool-bar-add-item): Likewise, and handle unspecified colors.
* enriched.el (enriched-face-ans): Use face-attribute instead
of face-foreground and face-background.
* faces.el (face-foreground, face-background, face-stipple):
Return nil if attribute is unspecified, for backward
compatibility.
* files.el (auto-mode-alist): Add an entry for antlr-mode.
* play/5x5.el: Remove version info.
...
...
lisp/enriched.el
View file @
c7957947
...
...
@@ -356,8 +356,8 @@ One annotation each for foreground color, background color, italic, etc."
(
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
))))
((
let*
((
fg
(
face-foreground
face
))
(
bg
(
face-background
face
))
((
let*
((
fg
(
face-
attribute
face
:
foreground
))
(
bg
(
face-
attribute
face
:
background
))
(
props
(
face-font
face
t
))
(
ans
(
cdr
(
format-annotate-single-property-change
'face
nil
props
enriched-translations
))))
...
...
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