aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/faces.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 26b2691e288..438f80adb07 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -116,7 +116,9 @@ If FRAME is omitted or nil, use the selected frame."
116If the optional FRAME argument is provided, change only 116If the optional FRAME argument is provided, change only
117in that frame; otherwise change each frame." 117in that frame; otherwise change each frame."
118 (interactive (internal-face-interactive "font")) 118 (interactive (internal-face-interactive "font"))
119 (if (stringp font) (setq font (x-resolve-font-name font 'default frame))) 119 (if (stringp font)
120 (setq font (or (query-fontset font)
121 (x-resolve-font-name font 'default frame))))
120 (internal-set-face-1 face 'font font 3 frame)) 122 (internal-set-face-1 face 'font font 3 frame))
121 123
122(defun set-face-foreground (face color &optional frame) 124(defun set-face-foreground (face color &optional frame)