diff options
| author | Richard M. Stallman | 2002-04-06 16:09:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-04-06 16:09:33 +0000 |
| commit | 2a9cfe6a167aa6b470beadac03f6fa7ca5d9681d (patch) | |
| tree | 66844d5357d5631eb5d2388316d237081eba606d | |
| parent | fb49f36a2bbca351e893d24ffb951f5f133c86ba (diff) | |
| download | emacs-2a9cfe6a167aa6b470beadac03f6fa7ca5d9681d.tar.gz emacs-2a9cfe6a167aa6b470beadac03f6fa7ca5d9681d.zip | |
(enriched-decode-foreground, enriched-decode-background):
Use proper format for desired elts of `face' property.
Don't test display-color-p; make the properties unconditionally.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/enriched.el | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2b069d37395..fd8bdb3cb4d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2002-04-06 Richard M. Stallman <rms@gnu.org> | 1 | 2002-04-06 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * enriched.el (enriched-decode-foreground, enriched-decode-background): | ||
| 4 | Use proper format for desired elts of `face' property. | ||
| 5 | Don't test display-color-p; make the properties unconditionally. | ||
| 6 | |||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist): | 7 | * progmodes/compile.el (compilation-error-regexp-alist): |
| 4 | New alternatives for FILE:LINE.COL and for ranges of columns and lines. | 8 | New alternatives for FILE:LINE.COL and for ranges of columns and lines. |
| 5 | 9 | ||
diff --git a/lisp/enriched.el b/lisp/enriched.el index 8edf7c730e2..e74cb6b8ba7 100644 --- a/lisp/enriched.el +++ b/lisp/enriched.el | |||
| @@ -432,19 +432,15 @@ Return value is \(begin end name positive-p), or nil if none was found." | |||
| 432 | (delete-char 1))) | 432 | (delete-char 1))) |
| 433 | 433 | ||
| 434 | (defun enriched-decode-foreground (from to &optional color) | 434 | (defun enriched-decode-foreground (from to &optional color) |
| 435 | (if (and color (display-color-p)) | 435 | (if color |
| 436 | (list from to 'face (cons ':foreground color)) | 436 | (list from to 'face (list ':foreground color)) |
| 437 | (if (null color) | 437 | (message "Warning: no color specified for <x-color>") |
| 438 | (message "Warning: no color specified for <x-color>") | ||
| 439 | (message "Warning: color `%s' can't be displayed" color)) | ||
| 440 | nil)) | 438 | nil)) |
| 441 | 439 | ||
| 442 | (defun enriched-decode-background (from to &optional color) | 440 | (defun enriched-decode-background (from to &optional color) |
| 443 | (if (and color (display-color-p)) | 441 | (if color |
| 444 | (list from to 'face (cons ':background color)) | 442 | (list from to 'face (list ':background color)) |
| 445 | (if (null color) | 443 | (message "Warning: no color specified for <x-bg-color>") |
| 446 | (message "Warning: no color specified for <x-bg-color>") | ||
| 447 | (message "Warning: color `%s' can't be displayed" color)) | ||
| 448 | nil)) | 444 | nil)) |
| 449 | 445 | ||
| 450 | ;;; Handling the `display' property. | 446 | ;;; Handling the `display' property. |