aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-01-29 21:55:09 +0800
committerChong Yidong2012-01-29 21:55:09 +0800
commitea1626708e5f3799f6b116f7ac50dc52fa52579c (patch)
treeda2498ff745073ce4330e7676431adaf39a593b5
parentbdbc1c4e3ea66b6bb27e393e253da822a7fff841 (diff)
downloademacs-ea1626708e5f3799f6b116f7ac50dc52fa52579c.tar.gz
emacs-ea1626708e5f3799f6b116f7ac50dc52fa52579c.zip
Fix an instance of dynamic-setting.el clobbering the default face.
* 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
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/dynamic-setting.el7
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 24b8d2aed98..1d3bb0b50bf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-01-29 Chong Yidong <cyd@gnu.org>
2
3 * dynamic-setting.el (font-setting-change-default-font): Don't
4 change the default face if SET-FONT argument is non-nil (Bug#9982).
5
12012-01-29 Samuel Bronson <naesten@gmail.com> (tiny change) 62012-01-29 Samuel Bronson <naesten@gmail.com> (tiny change)
2 7
3 * custom.el (defcustom): Add doc link to Lisp manual (Bug#10635). 8 * custom.el (defcustom): Add doc link to Lisp manual (Bug#10635).
diff --git a/lisp/dynamic-setting.el b/lisp/dynamic-setting.el
index 8343d389f80..e04af7800fc 100644
--- a/lisp/dynamic-setting.el
+++ b/lisp/dynamic-setting.el
@@ -74,9 +74,10 @@ current form for the frame (i.e. hinting or somesuch changed)."
74 :font font-to-set)))))) 74 :font font-to-set))))))
75 75
76 ;; Set for future frames. 76 ;; Set for future frames.
77 (set-face-attribute 'default t :font new-font) 77 (when set-font
78 (let ((spec (list (list t (face-attr-construct 'default))))) 78 ;; FIXME: this is not going to play well with Custom themes.
79 (progn 79 (set-face-attribute 'default t :font new-font)
80 (let ((spec (list (list t (face-attr-construct 'default)))))
80 (put 'default 'customized-face spec) 81 (put 'default 'customized-face spec)
81 (custom-push-theme 'theme-face 'default 'user 'set spec) 82 (custom-push-theme 'theme-face 'default 'user 'set spec)
82 (put 'default 'face-modified nil)))))) 83 (put 'default 'face-modified nil))))))