diff options
| author | Gerd Moellmann | 2000-02-21 12:57:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-02-21 12:57:42 +0000 |
| commit | ed58ed834c342bb2dc4fc7f4e70d34d0e782173a (patch) | |
| tree | 6d631cdd69d83ce85dd952c9639b8f93473be8da | |
| parent | 65d0af2992a3fa28bd9ac8ca20133220273d5bae (diff) | |
| download | emacs-ed58ed834c342bb2dc4fc7f4e70d34d0e782173a.tar.gz emacs-ed58ed834c342bb2dc4fc7f4e70d34d0e782173a.zip | |
(enriched-face-ans): Handle '(foreground-color
. COLOR) and (background-color . COLOR).
| -rw-r--r-- | lisp/enriched.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el index 50f919e12cc..a7f3ad6cdf5 100644 --- a/lisp/enriched.el +++ b/lisp/enriched.el | |||
| @@ -348,7 +348,11 @@ One annotation each for foreground color, background color, italic, etc." | |||
| 348 | 348 | ||
| 349 | (defun enriched-face-ans (face) | 349 | (defun enriched-face-ans (face) |
| 350 | "Return annotations specifying FACE." | 350 | "Return annotations specifying FACE." |
| 351 | (cond ((string-match "^fg:" (symbol-name face)) | 351 | (cond ((and (consp face) (eq (car face) 'foreground-color)) |
| 352 | (list "x-color" (cdr face))) | ||
| 353 | ((and (consp face) (eq (car face) 'background-color)) | ||
| 354 | (list "x-bg-color" (cdr face))) | ||
| 355 | ((string-match "^fg:" (symbol-name face)) | ||
| 352 | (list (list "x-color" (substring (symbol-name face) 3)))) | 356 | (list (list "x-color" (substring (symbol-name face) 3)))) |
| 353 | ((string-match "^bg:" (symbol-name face)) | 357 | ((string-match "^bg:" (symbol-name face)) |
| 354 | (list (list "x-bg-color" (substring (symbol-name face) 3)))) | 358 | (list (list "x-bg-color" (substring (symbol-name face) 3)))) |