aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2000-02-27 21:11:51 +0000
committerJason Rumney2000-02-27 21:11:51 +0000
commitf9de6f69e99d1fdd4a7f536e01effbbe30d1b6b9 (patch)
tree04e091300f8105c825da48fc95541892033469bd
parent4516715ac936e851476f6c7701bc14e6868b048f (diff)
downloademacs-f9de6f69e99d1fdd4a7f536e01effbbe30d1b6b9.tar.gz
emacs-f9de6f69e99d1fdd4a7f536e01effbbe30d1b6b9.zip
(mouse-set-font): Do not build fontset from chosen font.
-rw-r--r--lisp/term/w32-win.el26
1 files changed, 3 insertions, 23 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index 1fc7bd33367..07d35c63b19 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -336,7 +336,6 @@ x-invocation args from which the X-related things are extracted, first
336the switch (e.g., \"-fg\") in the following code, and possible values 336the switch (e.g., \"-fg\") in the following code, and possible values
337\(e.g., \"black\") in the option handler code (e.g., x-handle-switch). 337\(e.g., \"black\") in the option handler code (e.g., x-handle-switch).
338This returns ARGS with the arguments that have been processed removed." 338This returns ARGS with the arguments that have been processed removed."
339 ;;(message "%s" args)
340 (setq x-invocation-args args 339 (setq x-invocation-args args
341 args nil) 340 args nil)
342 (while x-invocation-args 341 (while x-invocation-args
@@ -901,9 +900,7 @@ Courier. These fonts are used in the font menu if the variable
901 "Select a font. If `w32-use-w32-font-dialog' is non-nil (the default), 900 "Select a font. If `w32-use-w32-font-dialog' is non-nil (the default),
902use the Windows font dialog. Otherwise use a pop-up menu (like Emacs 901use the Windows font dialog. Otherwise use a pop-up menu (like Emacs
903on other platforms) initialized with the fonts in 902on other platforms) initialized with the fonts in
904`w32-fixed-font-alist'. Emacs will attempt to create a fontset from 903`w32-fixed-font-alist'."
905the font chosen, covering all the charsets that can be fully represented
906with the font."
907 (interactive 904 (interactive
908 (if w32-use-w32-font-dialog 905 (if w32-use-w32-font-dialog
909 (let ((chosen-font (w32-select-font))) 906 (let ((chosen-font (w32-select-font)))
@@ -914,29 +911,12 @@ with the font."
914 (if (fboundp 'new-fontset) 911 (if (fboundp 'new-fontset)
915 (append w32-fixed-font-alist (list (generate-fontset-menu))))))) 912 (append w32-fixed-font-alist (list (generate-fontset-menu)))))))
916 (if fonts 913 (if fonts
917 (let (font fontset xlfd resolved-font) 914 (let (font)
918 (while fonts 915 (while fonts
919 (condition-case nil 916 (condition-case nil
920 (progn 917 (progn
921 (setq font (car fonts)) 918 (setq font (car fonts))
922 (if (fontset-name-p font) 919 (set-default-font font)
923 (setq fontset font)
924 (condition-case nil
925 (setq resolved-font (x-resolve-font-name font)
926 xlfd (x-decompose-font-name resolved-font)
927 fontset
928 (create-fontset-from-ascii-font
929 font resolved-font
930 (format "%s_%s_%s_%s"
931 (aref xlfd xlfd-regexp-family-subnum)
932 (aref xlfd xlfd-regexp-registry-subnum)
933 (aref xlfd xlfd-regexp-encoding-subnum)
934 (aref xlfd
935 xlfd-regexp-pixelsize-subnum))))
936 (error nil)))
937 (if fontset
938 (set-default-font fontset)
939 (set-default-font font))
940 (setq fonts nil)) 920 (setq fonts nil))
941 (error (setq fonts (cdr fonts))))) 921 (error (setq fonts (cdr fonts)))))
942 (if (null font) 922 (if (null font)