comparison lisp/enriched.el @ 29765:2ec1f9510791

(enriched-decode-foreground, enriched-decode-background): Don't use internal-find-face.
author Dave Love <fx@gnu.org>
date Tue, 20 Jun 2000 10:46:48 +0000
parents 7f4fe6e367dc
children 597562b7a8c6
comparison
equal deleted inserted replaced
29764:dbfcedec53b3 29765:2ec1f9510791
440 440
441 (defun enriched-decode-foreground (from to &optional color) 441 (defun enriched-decode-foreground (from to &optional color)
442 (let ((face (intern (concat "fg:" color)))) 442 (let ((face (intern (concat "fg:" color))))
443 (cond ((null color) 443 (cond ((null color)
444 (message "Warning: no color specified for <x-color>")) 444 (message "Warning: no color specified for <x-color>"))
445 ((internal-find-face face)) 445 ((facep face))
446 ((and (display-color-p) (facemenu-get-face face))) 446 ((and (display-color-p) (facemenu-get-face face)))
447 ((make-face face) 447 ((make-face face)
448 (message "Warning: color `%s' can't be displayed" color))) 448 (message "Warning: color `%s' can't be displayed" color)))
449 (list from to 'face face))) 449 (list from to 'face face)))
450 450
451 (defun enriched-decode-background (from to &optional color) 451 (defun enriched-decode-background (from to &optional color)
452 (let ((face (intern (concat "bg:" color)))) 452 (let ((face (intern (concat "bg:" color))))
453 (cond ((null color) 453 (cond ((null color)
454 (message "Warning: no color specified for <x-bg-color>")) 454 (message "Warning: no color specified for <x-bg-color>"))
455 ((internal-find-face face)) 455 ((facep face))
456 ((and (display-color-p) (facemenu-get-face face))) 456 ((and (display-color-p) (facemenu-get-face face)))
457 ((make-face face) 457 ((make-face face)
458 (message "Warning: color `%s' can't be displayed" color))) 458 (message "Warning: color `%s' can't be displayed" color)))
459 (list from to 'face face))) 459 (list from to 'face face)))
460 460