diff options
| author | Richard M. Stallman | 2001-10-30 18:19:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-10-30 18:19:46 +0000 |
| commit | 2dc96f0f8e2307d827eaa72da4d886e526d10bdb (patch) | |
| tree | 892651df3e2ae8bdb53b084c7a0fa1b19956a468 | |
| parent | 259cf6bcbb84dd3a803e0a5faea6b1200fad2c96 (diff) | |
| download | emacs-2dc96f0f8e2307d827eaa72da4d886e526d10bdb.tar.gz emacs-2dc96f0f8e2307d827eaa72da4d886e526d10bdb.zip | |
(enriched-face-ans): FIx previous change.
| -rw-r--r-- | lisp/enriched.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el index 48baaca2b2f..bd474058b7c 100644 --- a/lisp/enriched.el +++ b/lisp/enriched.el | |||
| @@ -347,17 +347,16 @@ One annotation each for foreground color, background color, italic, etc." | |||
| 347 | (and new (enriched-face-ans new)))) | 347 | (and new (enriched-face-ans new)))) |
| 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 | FACE may be a list of faces instead of a single face; | ||
| 352 | it can also be anything allowed as an element of a list | ||
| 353 | which can be the value of the `face' text property." | ||
| 351 | (cond ((and (consp face) (eq (car face) 'foreground-color)) | 354 | (cond ((and (consp face) (eq (car face) 'foreground-color)) |
| 352 | (list (list "x-color" (cdr face)))) | 355 | (list (list "x-color" (cdr face)))) |
| 353 | ((and (consp face) (eq (car face) 'background-color)) | 356 | ((and (consp face) (eq (car face) 'background-color)) |
| 354 | (list (list "x-bg-color" (cdr face)))) | 357 | (list (list "x-bg-color" (cdr face)))) |
| 355 | ((and (consp face) (symbolp (car face)) (not (keywordp (car face)))) | 358 | ((listp face) |
| 356 | ;; List of faces `(face1 face2 ...)'. | 359 | (apply 'append (mapcar 'enriched-face-ans face))) |
| 357 | (let ((ans nil)) | ||
| 358 | (dolist (elt face) | ||
| 359 | (setq ans (append ans (enriched-face-ans elt)))) | ||
| 360 | ans)) | ||
| 361 | ((string-match "^fg:" (symbol-name face)) | 360 | ((string-match "^fg:" (symbol-name face)) |
| 362 | (list (list "x-color" (substring (symbol-name face) 3)))) | 361 | (list (list "x-color" (substring (symbol-name face) 3)))) |
| 363 | ((string-match "^bg:" (symbol-name face)) | 362 | ((string-match "^bg:" (symbol-name face)) |