mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(enriched-face-ans): Handle '(foreground-color
. COLOR) and (background-color . COLOR).
This commit is contained in:
parent
65d0af2992
commit
ed58ed834c
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user