aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-06 16:09:33 +0000
committerRichard M. Stallman2002-04-06 16:09:33 +0000
commit2a9cfe6a167aa6b470beadac03f6fa7ca5d9681d (patch)
tree66844d5357d5631eb5d2388316d237081eba606d
parentfb49f36a2bbca351e893d24ffb951f5f133c86ba (diff)
downloademacs-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/ChangeLog4
-rw-r--r--lisp/enriched.el16
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 @@
12002-04-06 Richard M. Stallman <rms@gnu.org> 12002-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.