[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/enriched.el
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/enriched.el |
Date: |
Wed, 03 Apr 2002 10:28:45 -0500 |
Index: emacs/lisp/enriched.el
diff -c emacs/lisp/enriched.el:1.41 emacs/lisp/enriched.el:1.42
*** emacs/lisp/enriched.el:1.41 Sun Mar 24 23:15:39 2002
--- emacs/lisp/enriched.el Wed Apr 3 10:28:45 2002
***************
*** 347,356 ****
(list (list "x-bg-color" (cadr face))))
((listp face)
(apply 'append (mapcar 'enriched-face-ans face)))
- ((string-match "^fg:" (symbol-name face))
- (list (list "x-color" (substring (symbol-name face) 3))))
- ((string-match "^bg:" (symbol-name face))
- (list (list "x-bg-color" (substring (symbol-name face) 3))))
((let* ((fg (face-attribute face :foreground))
(bg (face-attribute face :background))
(props (face-font face t))
--- 347,352 ----
***************
*** 436,463 ****
(delete-char 1)))
(defun enriched-decode-foreground (from to &optional color)
! (let ((face (intern (concat "fg:" color))))
! (cond ((null color)
! (message "Warning: no color specified for <x-color>"))
! ((facep face))
! ((and (display-color-p) (facemenu-get-face face))
! (set-face-foreground face color))
! ((make-face face)
! (message "Warning: color `%s' can't be displayed" color)))
! (list from to 'face face)))
(defun enriched-decode-background (from to &optional color)
! (let ((face (intern (concat "bg:" color))))
! (cond ((null color)
! (message "Warning: no color specified for <x-bg-color>"))
! ((facep face))
! ((and (display-color-p) (facemenu-get-face face))
! (set-face-background face color))
! ((make-face face)
! (message "Warning: color `%s' can't be displayed" color)))
! (list from to 'face face)))
!
!
;;; Handling the `display' property.
--- 432,451 ----
(delete-char 1)))
(defun enriched-decode-foreground (from to &optional color)
! (if (and color (display-color-p) (facemenu-get-face face))
! (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))
! nil))
(defun enriched-decode-background (from to &optional color)
! (if (and color (display-color-p) (facemenu-get-face face))
! (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))
! nil))
;;; Handling the `display' property.
- [Emacs-diffs] Changes to emacs/lisp/enriched.el,
Richard M. Stallman <=