changeset 19211:e83ac35f9bcb

(x-list-fonts): Return "default" when appropriate. (query-fontset): Add (alternative) alias definition.
author Richard M. Stallman <rms@gnu.org>
date Thu, 07 Aug 1997 17:33:49 +0000
parents ad26cf3804c3
children 024594beef65
files lisp/term/pc-win.el
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/term/pc-win.el	Thu Aug 07 17:25:43 1997 +0000
+++ b/lisp/term/pc-win.el	Thu Aug 07 17:33:49 1997 +0000
@@ -260,7 +260,10 @@
 
 ;; From src/xfns.c
 (defun x-display-color-p (&optional display) 't)
-(defun x-list-fonts (pattern &optional face frame) (list "default"))
+(defun x-list-fonts (pattern &optional face frame maximum width)
+  (if (and (numberp width) (= width 1))
+      (list "default")
+    (list "no-such-font")))
 (defun x-color-defined-p (color) (numberp (msdos-color-translate color)))
 (defun x-display-pixel-width (&optional frame) (frame-width frame))
 (defun x-display-pixel-height (&optional frame) (frame-height frame))
@@ -351,6 +354,9 @@
 (defun x-frob-font-slant (font which)
   font)
 
+;; From src/fontset.c:
+(fset 'query-fontset 'ignore)
+
 ;; From lisp/term/x-win.el: make iconify-or-deiconify-frame a no-op.
 (fset 'iconify-or-deiconify-frame 'ignore)