diff options
| author | Stefan Monnier | 2008-06-19 01:57:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-19 01:57:19 +0000 |
| commit | 27129af9d775855efb529d63d2d5c62af2699afe (patch) | |
| tree | 74e230d850decbf44a9c013e9d6fb30e45ff9b65 /lisp | |
| parent | d26424c5eb84c4bd153a375052fdc96223e0c46e (diff) | |
| download | emacs-27129af9d775855efb529d63d2d5c62af2699afe.tar.gz emacs-27129af9d775855efb529d63d2d5c62af2699afe.zip | |
* w32fns.c, xfns.c (Qfont_param): New var.
(syms_of_w32fns): Initialize it.
(x_default_font_parameter): Record explicit `font' into `font-parameter'.
* faces.el (face-set-after-frame-default): Re-apply explicit `font'
frame parameters after setting up the `default' face.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 88debfeb812..90b9b297b55 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * faces.el (face-set-after-frame-default): Re-apply explicit `font' | ||
| 4 | frame parameters after setting up the `default' face. | ||
| 5 | |||
| 1 | 2008-06-18 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-06-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * faces.el (face-set-after-frame-default): Don't exclude `default'. | 8 | * faces.el (face-set-after-frame-default): Don't exclude `default'. |
diff --git a/lisp/faces.el b/lisp/faces.el index 251bacc5610..643b50a1316 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -703,7 +703,7 @@ like an underlying face would be, with higher priority than underlying faces." | |||
| 703 | (put (or (get face 'face-alias) face) 'face-modified t)) | 703 | (put (or (get face 'face-alias) face) 'face-modified t)) |
| 704 | (while args | 704 | (while args |
| 705 | ;; Don't recursively set the attributes from the frame's font param | 705 | ;; Don't recursively set the attributes from the frame's font param |
| 706 | ;; when we update the frame's font param fro the attributes. | 706 | ;; when we update the frame's font param from the attributes. |
| 707 | (let ((inhibit-face-set-after-frame-default t)) | 707 | (let ((inhibit-face-set-after-frame-default t)) |
| 708 | (if (and (eq (car args) :family) | 708 | (if (and (eq (car args) :family) |
| 709 | (stringp (cadr args)) | 709 | (stringp (cadr args)) |
| @@ -2018,6 +2018,7 @@ Initialize colors of certain faces from frame parameters." | |||
| 2018 | ;; Find attributes that should be initialized from frame parameters. | 2018 | ;; Find attributes that should be initialized from frame parameters. |
| 2019 | (let ((face-params '((foreground-color default :foreground) | 2019 | (let ((face-params '((foreground-color default :foreground) |
| 2020 | (background-color default :background) | 2020 | (background-color default :background) |
| 2021 | (font-parameter default :font) | ||
| 2021 | (border-color border :background) | 2022 | (border-color border :background) |
| 2022 | (cursor-color cursor :background) | 2023 | (cursor-color cursor :background) |
| 2023 | (scroll-bar-foreground scroll-bar :foreground) | 2024 | (scroll-bar-foreground scroll-bar :foreground) |