diff options
| author | Gerd Moellmann | 2000-11-29 19:22:47 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-29 19:22:47 +0000 |
| commit | c795794783118024f9733d11a7040d8de8a31591 (patch) | |
| tree | ad792c78a911e1ae1d99c1cb364a72f3481a111d | |
| parent | 3fae165ccb06ba4e0cfb74863f86f1b923507c42 (diff) | |
| download | emacs-c795794783118024f9733d11a7040d8de8a31591.tar.gz emacs-c795794783118024f9733d11a7040d8de8a31591.zip | |
(enriched-face-ans): Use face-attribute instead
of face-foreground and face-background.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/enriched.el | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7da2c7fe37f..b0df672d4f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2000-11-29 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-11-29 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * toolbar/tool-bar.el (tool-bar-add-item-from-menu): Use | ||
| 4 | face-attribute instead of face-foreground and face-background. | ||
| 5 | (tool-bar-add-item): Likewise, and handle unspecified colors. | ||
| 6 | |||
| 7 | * enriched.el (enriched-face-ans): Use face-attribute instead | ||
| 8 | of face-foreground and face-background. | ||
| 9 | |||
| 10 | * faces.el (face-foreground, face-background, face-stipple): | ||
| 11 | Return nil if attribute is unspecified, for backward | ||
| 12 | compatibility. | ||
| 13 | |||
| 3 | * files.el (auto-mode-alist): Add an entry for antlr-mode. | 14 | * files.el (auto-mode-alist): Add an entry for antlr-mode. |
| 4 | 15 | ||
| 5 | * play/5x5.el: Remove version info. | 16 | * play/5x5.el: Remove version info. |
diff --git a/lisp/enriched.el b/lisp/enriched.el index 804048b6173..8f4bf4f0392 100644 --- a/lisp/enriched.el +++ b/lisp/enriched.el | |||
| @@ -356,8 +356,8 @@ One annotation each for foreground color, background color, italic, etc." | |||
| 356 | (list (list "x-color" (substring (symbol-name face) 3)))) | 356 | (list (list "x-color" (substring (symbol-name face) 3)))) |
| 357 | ((string-match "^bg:" (symbol-name face)) | 357 | ((string-match "^bg:" (symbol-name face)) |
| 358 | (list (list "x-bg-color" (substring (symbol-name face) 3)))) | 358 | (list (list "x-bg-color" (substring (symbol-name face) 3)))) |
| 359 | ((let* ((fg (face-foreground face)) | 359 | ((let* ((fg (face-attribute face :foreground)) |
| 360 | (bg (face-background face)) | 360 | (bg (face-attribute face :background)) |
| 361 | (props (face-font face t)) | 361 | (props (face-font face t)) |
| 362 | (ans (cdr (format-annotate-single-property-change | 362 | (ans (cdr (format-annotate-single-property-change |
| 363 | 'face nil props enriched-translations)))) | 363 | 'face nil props enriched-translations)))) |