aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-01-31 17:17:49 +0000
committerDave Love2000-01-31 17:17:49 +0000
commitcdd675ad6f115f80d68671ecc8141c0fe828e838 (patch)
tree254b0b155632710b336d6d0d34043559ff0904bf
parent12c25bdcbfac5a4d2986b53a00a282a1115d0790 (diff)
downloademacs-cdd675ad6f115f80d68671ecc8141c0fe828e838.tar.gz
emacs-cdd675ad6f115f80d68671ecc8141c0fe828e838.zip
(standard-fontset-spec): Purecopy it.
(create-fontset-from-x-resource): Don't concat integers.
-rw-r--r--lisp/international/fontset.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index aab42d002a7..ec9474a7179 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -679,7 +679,7 @@ Return FONTSET if it is created successfully, else return nil."
679;; specified here because FAMILY of those fonts are not "fixed" in 679;; specified here because FAMILY of those fonts are not "fixed" in
680;; many cases. 680;; many cases.
681(defvar standard-fontset-spec 681(defvar standard-fontset-spec
682 "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard, 682 (purecopy "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard,
683 chinese-gb2312:-*-medium-r-normal-*-16-*-gb2312*-*, 683 chinese-gb2312:-*-medium-r-normal-*-16-*-gb2312*-*,
684 korean-ksc5601:-*-medium-r-normal-*-16-*-ksc5601*-*, 684 korean-ksc5601:-*-medium-r-normal-*-16-*-ksc5601*-*,
685 chinese-cns11643-1:-*-medium-r-normal-*-16-*-cns11643*-1, 685 chinese-cns11643-1:-*-medium-r-normal-*-16-*-cns11643*-1,
@@ -688,7 +688,7 @@ Return FONTSET if it is created successfully, else return nil."
688 chinese-cns11643-4:-*-medium-r-normal-*-16-*-cns11643*-4, 688 chinese-cns11643-4:-*-medium-r-normal-*-16-*-cns11643*-4,
689 chinese-cns11643-5:-*-medium-r-normal-*-16-*-cns11643*-5, 689 chinese-cns11643-5:-*-medium-r-normal-*-16-*-cns11643*-5,
690 chinese-cns11643-6:-*-medium-r-normal-*-16-*-cns11643*-6, 690 chinese-cns11643-6:-*-medium-r-normal-*-16-*-cns11643*-6,
691 chinese-cns11643-7:-*-medium-r-normal-*-16-*-cns11643*-7" 691 chinese-cns11643-7:-*-medium-r-normal-*-16-*-cns11643*-7")
692 "String of fontset spec of the standard fontset. 692 "String of fontset spec of the standard fontset.
693You have the biggest chance to display international characters 693You have the biggest chance to display international characters
694with correct glyphs by using the standard fontset. 694with correct glyphs by using the standard fontset.
@@ -702,8 +702,8 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
702(defun create-fontset-from-x-resource () 702(defun create-fontset-from-x-resource ()
703 (let ((idx 0) 703 (let ((idx 0)
704 fontset-spec) 704 fontset-spec)
705 (while (setq fontset-spec (x-get-resource (concat "fontset-" idx) 705 (while (setq fontset-spec (x-get-resource (format "fontset-%d" idx)
706 (concat "Fontset-" idx))) 706 (format "Fontset-%d" idx)))
707 (create-fontset-from-fontset-spec fontset-spec t 'noerror) 707 (create-fontset-from-fontset-spec fontset-spec t 'noerror)
708 (setq idx (1+ idx))))) 708 (setq idx (1+ idx)))))
709 709