* lisp/dynamic-setting.el (font-setting-change-default-font): Don't
change the default face if SET-FONT argument is non-nil.
Fixes: debbugs:9982
+2012-01-29 Chong Yidong <cyd@gnu.org>
+
+ * dynamic-setting.el (font-setting-change-default-font): Don't
+ change the default face if SET-FONT argument is non-nil (Bug#9982).
+
2012-01-29 Samuel Bronson <naesten@gmail.com> (tiny change)
* custom.el (defcustom): Add doc link to Lisp manual (Bug#10635).
:font font-to-set))))))
;; Set for future frames.
- (set-face-attribute 'default t :font new-font)
- (let ((spec (list (list t (face-attr-construct 'default)))))
- (progn
+ (when set-font
+ ;; FIXME: this is not going to play well with Custom themes.
+ (set-face-attribute 'default t :font new-font)
+ (let ((spec (list (list t (face-attr-construct 'default)))))
(put 'default 'customized-face spec)
(custom-push-theme 'theme-face 'default 'user 'set spec)
(put 'default 'face-modified nil))))))