comparison lisp/faces.el @ 29769:18a16ab69699

(frame-background-mode): Use set-default, not set, in setter. (frame-update-faces, frame-update-face-colors): Define with defalias.
author Dave Love <fx@gnu.org>
date Tue, 20 Jun 2000 11:33:24 +0000
parents 4ed4a700358b
children 3f21e1b9cc2e
comparison
equal deleted inserted replaced
29768:6f3f0ca4a359 29769:18a16ab69699
1270 Set this to the symbol `dark' if your background color is dark, `light' if 1270 Set this to the symbol `dark' if your background color is dark, `light' if
1271 your background is light, or nil (default) if you want Emacs to 1271 your background is light, or nil (default) if you want Emacs to
1272 examine the brightness for you." 1272 examine the brightness for you."
1273 :group 'faces 1273 :group 'faces
1274 :set #'(lambda (var value) 1274 :set #'(lambda (var value)
1275 (set var value) 1275 (set-default var value)
1276 (mapcar 'frame-set-background-mode (frame-list))) 1276 (mapcar 'frame-set-background-mode (frame-list)))
1277 :initialize 'custom-initialize-changed 1277 :initialize 'custom-initialize-changed
1278 :type '(choice (choice-item dark) 1278 :type '(choice (choice-item dark)
1279 (choice-item light) 1279 (choice-item light)
1280 (choice-item :tag "default" nil))) 1280 (choice-item :tag "default" nil)))
1467 ;;; Compatiblity with 20.2 1467 ;;; Compatiblity with 20.2
1468 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1468 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1469 1469
1470 ;; Update a frame's faces when we change its default font. 1470 ;; Update a frame's faces when we change its default font.
1471 1471
1472 (defun frame-update-faces (frame) 1472 (defalias 'frame-update-faces 'ignore)
1473 nil)
1474 (make-obsolete 'frame-update-faces "No longer necessary" "21.1") 1473 (make-obsolete 'frame-update-faces "No longer necessary" "21.1")
1475 1474
1476 ;; Update the colors of FACE, after FRAME's own colors have been 1475 ;; Update the colors of FACE, after FRAME's own colors have been
1477 ;; changed. 1476 ;; changed.
1478 1477
1479 (defun frame-update-face-colors (frame) 1478 (defalias 'frame-update-face-colors 'frame-set-background-mode)
1480 (frame-set-background-mode frame))
1481 (make-obsolete 'frame-update-face-colors 'frame-set-background-mode "21.1") 1479 (make-obsolete 'frame-update-face-colors 'frame-set-background-mode "21.1")
1482 1480
1483 1481
1484 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1482 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1485 ;;; Standard faces. 1483 ;;; Standard faces.