diff options
| author | Kenichi Handa | 2009-03-19 00:55:36 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-03-19 00:55:36 +0000 |
| commit | 4bd4e5bcbec83dfeb2d21073565e237ac598594f (patch) | |
| tree | 7a3f7a18f1696e0176cf721f5cb4f571b43f619e | |
| parent | 8458d4c1692fc7b50fd1edc600daeccadff353a8 (diff) | |
| download | emacs-4bd4e5bcbec83dfeb2d21073565e237ac598594f.tar.gz emacs-4bd4e5bcbec83dfeb2d21073565e237ac598594f.zip | |
(create-default-fontset): New function.
(create-fontset-from-x-resource): Use display-warning instead of
message.
| -rw-r--r-- | lisp/international/fontset.el | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 65b9e4a112d..56c1879e35c 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -579,6 +579,16 @@ | |||
| 579 | 579 | ||
| 580 | (set-fontset-font "fontset-default" '(#xE000 . #xF8FF) nil)) | 580 | (set-fontset-font "fontset-default" '(#xE000 . #xF8FF) nil)) |
| 581 | 581 | ||
| 582 | (defun create-default-fontset () | ||
| 583 | "Create the default fontset. | ||
| 584 | Internal use only. Should be called at startup time." | ||
| 585 | (condition-case err | ||
| 586 | (setup-default-fontset) | ||
| 587 | (error (display-warning | ||
| 588 | 'initialization | ||
| 589 | (format "Creation of the default fontsets failed: %s" err) | ||
| 590 | :error)))) | ||
| 591 | |||
| 582 | ;; These are the registered registries/encodings from | 592 | ;; These are the registered registries/encodings from |
| 583 | ;; ftp://ftp.x.org/pub/DOCS/registry 2001/06/01 | 593 | ;; ftp://ftp.x.org/pub/DOCS/registry 2001/06/01 |
| 584 | 594 | ||
| @@ -1049,8 +1059,11 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 1049 | (while (setq fontset-spec (x-get-resource (format "fontset-%d" idx) | 1059 | (while (setq fontset-spec (x-get-resource (format "fontset-%d" idx) |
| 1050 | (format "Fontset-%d" idx))) | 1060 | (format "Fontset-%d" idx))) |
| 1051 | (condition-case nil | 1061 | (condition-case nil |
| 1052 | (create-fontset-from-fontset-spec fontset-spec t 'noerror) | 1062 | (create-fontset-from-fontset-spec fontset-spec t) |
| 1053 | (error (message "Fontset-%d: invalid specification in X resource" idx))) | 1063 | (error (display-warning |
| 1064 | 'initialization | ||
| 1065 | (format "Fontset-%d: invalid specification in X resource" idx) | ||
| 1066 | :warning))) | ||
| 1054 | (setq idx (1+ idx))))) | 1067 | (setq idx (1+ idx))))) |
| 1055 | 1068 | ||
| 1056 | ;; | 1069 | ;; |