diff options
| author | Dave Love | 2000-06-20 11:33:24 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-20 11:33:24 +0000 |
| commit | c20d5073510b8993ecb631d2b6c0bec987480cf1 (patch) | |
| tree | 2ad7eefb4e1d1a17928643a46ffcd7284ff92fc9 | |
| parent | 0d1f7c088768c2183274ad0903931c90eaed61f7 (diff) | |
| download | emacs-c20d5073510b8993ecb631d2b6c0bec987480cf1.tar.gz emacs-c20d5073510b8993ecb631d2b6c0bec987480cf1.zip | |
(frame-background-mode): Use set-default, not set, in setter.
(frame-update-faces, frame-update-face-colors): Define with defalias.
| -rw-r--r-- | lisp/faces.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 914f2c177af..170b0849b7e 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1272,7 +1272,7 @@ 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) |
| @@ -1469,15 +1469,13 @@ created." | |||
| 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 | ||