changeset 22152:3aff676c3ea3

(frame-background-mode): Define a :set function to update the background mode of existing frames.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 May 1998 00:40:19 +0000
parents a48831a21513
children a63d4ba6813a
files lisp/faces.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/faces.el	Wed May 20 00:39:09 1998 +0000
+++ b/lisp/faces.el	Wed May 20 00:40:19 1998 +0000
@@ -1432,6 +1432,10 @@
 your background is light, or nil (default) if you want Emacs to
 examine the brightness for you."
   :group 'faces
+  :set #'(lambda (var value)
+	   (set var value)
+	   (mapcar 'frame-set-background-mode (frame-list)))
+  :initialize 'custom-initialize-changed
   :type '(choice (choice-item dark) 
 		 (choice-item light)
 		 (choice-item :tag "default" nil)))