(enriched-decode-foreground, enriched-decode-background):
authorRichard M. Stallman <rms@gnu.org>
Sat, 6 Apr 2002 16:09:33 +0000 (16:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 6 Apr 2002 16:09:33 +0000 (16:09 +0000)
Use proper format for desired elts of `face' property.
Don't test display-color-p; make the properties unconditionally.

lisp/ChangeLog
lisp/enriched.el

index 2b069d3..fd8bdb3 100644 (file)
@@ -1,5 +1,9 @@
 2002-04-06  Richard M. Stallman  <rms@gnu.org>
 
+       * enriched.el (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.
+
        * progmodes/compile.el (compilation-error-regexp-alist):
        New alternatives for FILE:LINE.COL and for ranges of columns and lines.
 
index 8edf7c7..e74cb6b 100644 (file)
@@ -432,19 +432,15 @@ Return value is \(begin end name positive-p), or nil if none was found."
       (delete-char 1)))
 
 (defun enriched-decode-foreground (from to &optional color)
-  (if (and color (display-color-p))
-      (list from to 'face (cons ':foreground color))
-    (if (null color)
-       (message "Warning: no color specified for <x-color>")
-      (message "Warning: color `%s' can't be displayed" color))
+  (if color
+      (list from to 'face (list ':foreground color))
+    (message "Warning: no color specified for <x-color>")
     nil))
 
 (defun enriched-decode-background (from to &optional color)
-  (if (and color (display-color-p))
-      (list from to 'face (cons ':background color))
-    (if (null color)
-       (message "Warning: no color specified for <x-bg-color>")
-      (message "Warning: color `%s' can't be displayed" color))
+  (if color
+      (list from to 'face (list ':background color))
+    (message "Warning: no color specified for <x-bg-color>")
     nil))
 \f
 ;;; Handling the `display' property.