aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2012-11-24 18:55:48 +0100
committerJan Djärv2012-11-24 18:55:48 +0100
commitc235054806244c49555e20cd1d8db677bf4baeff (patch)
treeb338983032888174f72c7c62251ed7e733afe675
parentecfc364c8fdb266fae7f250fb7fe8b3f7856faba (diff)
downloademacs-c235054806244c49555e20cd1d8db677bf4baeff.tar.gz
emacs-c235054806244c49555e20cd1d8db677bf4baeff.zip
* term/ns-win.el (ns-initialize-window-system): Move creation of
fontsets here. Fixes: debbugs:11964
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/ns-win.el22
2 files changed, 15 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a15957c8711..37291cfa774 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-11-24 Jan Djärv <jan.h.d@swipnet.se>
2
3 * term/ns-win.el (ns-initialize-window-system): Move creation of
4 fontsets here (Bug#11964).
5
12012-11-24 Vincent Belaïche <vincentb1@users.sourceforge.net> 62012-11-24 Vincent Belaïche <vincentb1@users.sourceforge.net>
2 7
3 * ses.el (ses-rename-cell): Correct bug on mode-line update after 8 * ses.el (ses-rename-cell): Correct bug on mode-line update after
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index e31362b8313..e255fec1240 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -656,18 +656,6 @@ This defines a fontset consisting of the Courier and other fonts that
656come with OS X. 656come with OS X.
657See the documentation of `create-fontset-from-fontset-spec' for the format.") 657See the documentation of `create-fontset-from-fontset-spec' for the format.")
658 658
659;; Conditional on new-fontset so bootstrapping works on non-GUI compiles.
660(when (fboundp 'new-fontset)
661 ;; Setup the default fontset.
662 (create-default-fontset)
663 ;; Create the standard fontset.
664 (condition-case err
665 (create-fontset-from-fontset-spec ns-standard-fontset-spec t)
666 (error (display-warning
667 'initialization
668 (format "Creation of the standard fontset failed: %s" err)
669 :error))))
670
671(defvar ns-reg-to-script) ; nsfont.m 659(defvar ns-reg-to-script) ; nsfont.m
672 660
673;; This maps font registries (not exposed by NS APIs for font selection) to 661;; This maps font registries (not exposed by NS APIs for font selection) to
@@ -914,6 +902,16 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
914 ;; PENDING: not needed? 902 ;; PENDING: not needed?
915 (setq command-line-args (x-handle-args command-line-args)) 903 (setq command-line-args (x-handle-args command-line-args))
916 904
905 ;; Setup the default fontset.
906 (create-default-fontset)
907 ;; Create the standard fontset.
908 (condition-case err
909 (create-fontset-from-fontset-spec ns-standard-fontset-spec t)
910 (error (display-warning
911 'initialization
912 (format "Creation of the standard fontset failed: %s" err)
913 :error)))
914
917 (x-open-connection (system-name) nil t) 915 (x-open-connection (system-name) nil t)
918 916
919 (dolist (service (ns-list-services)) 917 (dolist (service (ns-list-services))