comparison lisp/faces.el @ 31439:d7a98f35b441

(set-face-attribute): Simplify by calling internal-set-lisp-face-attribute with FRAME being 0.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 07 Sep 2000 09:50:30 +0000
parents 0b8165a82e34
children 0f9e55c33cc5
comparison
equal deleted inserted replaced
31438:55a7016ebd69 31439:d7a98f35b441
544 `:inherit' 544 `:inherit'
545 545
546 VALUE is the name of a face from which to inherit attributes, or a list 546 VALUE is the name of a face from which to inherit attributes, or a list
547 of face names. Attributes from inherited faces are merged into the face 547 of face names. Attributes from inherited faces are merged into the face
548 like an underlying face would be, with higher priority than underlying faces." 548 like an underlying face would be, with higher priority than underlying faces."
549 (setq args (purecopy args)) 549 (let ((where (if (null frame) 0 frame)))
550 (cond ((null frame) 550 (setq args (purecopy args))
551 ;; Change face on all frames. 551 (while args
552 (dolist (frame (frame-list)) 552 (internal-set-lisp-face-attribute face (car args)
553 (let ((list args)) 553 (purecopy (cadr args))
554 (while list 554 where)
555 (internal-set-lisp-face-attribute face (car list) 555 (setq args (cdr (cdr args))))))
556 (cadr list) frame)
557 (setq list (cdr (cdr list))))))
558 ;; Record that as a default for new frames.
559 (while args
560 (internal-set-lisp-face-attribute face (car args)
561 (cadr args) t)
562 (setq args (cdr (cdr args)))))
563 (t
564 (while args
565 (internal-set-lisp-face-attribute face (car args)
566 (purecopy (cadr args))
567 frame)
568 (setq args (cdr (cdr args)))))))
569 556
570 557
571 (defun make-face-bold (face &optional frame noerror) 558 (defun make-face-bold (face &optional frame noerror)
572 "Make the font of FACE be bold, if possible. 559 "Make the font of FACE be bold, if possible.
573 FRAME nil or not specified means change face on all frames. 560 FRAME nil or not specified means change face on all frames.