summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-11-21 07:23:17 +0000
committerRichard M. Stallman <rms@gnu.org>1993-11-21 07:23:17 +0000
commit8db93e456a54b713b7f8a199382f72d27a0ff506 (patch)
tree320fe42f8a3bf7b4ebd0a88a31efe2921e2b595a /lisp
parent9b7412a7e78a89d909f3f2a047b43bd235dd4806 (diff)
downloademacs-8db93e456a54b713b7f8a199382f72d27a0ff506.tar.gz
(x-resolve-font-name): Undo previous change.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/faces.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 5abcd0927c2..765ed3f609c 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -439,9 +439,8 @@ also the same size as FACE on FRAME."
(and (eq frame t)
(setq frame nil))
(if pattern
- (let ((fonts (x-list-fonts pattern
- (if (face-font face) face nil)
- frame)))
+ ;; Note that x-list-fonts has code to handle a face with nil as its font.
+ (let ((fonts (x-list-fonts pattern face frame)))
(or fonts
(if face
(error "No fonts matching pattern are the same size as `%s'"