mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 21:07:36 +00:00
(face-set-after-frame-default): Don't change `default' face.
This commit is contained in:
parent
4e399ffd93
commit
eb3af7db67
1 changed files with 7 additions and 8 deletions
|
|
@ -1518,17 +1518,17 @@ Value is the new frame created."
|
|||
(delete-frame frame)))
|
||||
frame))
|
||||
|
||||
|
||||
(defun face-set-after-frame-default (frame)
|
||||
"Set frame-local faces of FRAME from face specs and resources.
|
||||
Initialize colors of certain faces from frame parameters."
|
||||
(dolist (face (face-list))
|
||||
(face-spec-set face (face-user-default-spec face) frame)
|
||||
(internal-merge-in-global-face face frame)
|
||||
(when (and (memq window-system '(x w32 mac))
|
||||
(or (not (boundp 'inhibit-default-face-x-resources))
|
||||
(not (eq face 'default))))
|
||||
(make-face-x-resource-internal face frame)))
|
||||
(when (not (equal face 'default))
|
||||
(face-spec-set face (face-user-default-spec face) frame)
|
||||
(internal-merge-in-global-face face frame)
|
||||
(when (and (memq window-system '(x w32 mac))
|
||||
(or (not (boundp 'inhibit-default-face-x-resources))
|
||||
(not (eq face 'default))))
|
||||
(make-face-x-resource-internal face frame))))
|
||||
|
||||
;; Initialize attributes from frame parameters.
|
||||
(let ((params '((foreground-color default :foreground)
|
||||
|
|
@ -1548,7 +1548,6 @@ Initialize colors of certain faces from frame parameters."
|
|||
(eq (face-attribute face attr t) 'unspecified))
|
||||
(set-face-attribute face frame attr frame-param))))))
|
||||
|
||||
|
||||
(defun tty-handle-reverse-video (frame parameters)
|
||||
"Handle the reverse-video frame parameter for terminal frames."
|
||||
(when (cdr (or (assq 'reverse parameters)
|
||||
|
|
|
|||
Loading…
Reference in a new issue