]> git.eshelyaron.com Git - emacs.git/commitdiff
(create-fontset-from-x-resource):
authorKenichi Handa <handa@m17n.org>
Thu, 3 Apr 2008 04:06:55 +0000 (04:06 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 3 Apr 2008 04:06:55 +0000 (04:06 +0000)
Handle the error of X resource more gracefully.

lisp/international/fontset.el

index b8c4a964b82ac1ef126b2fd24304970c5c8e2427..7fa9761ef07b626c8a02d4a32b87a40628eb6ef4 100644 (file)
@@ -944,7 +944,9 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
        fontset-spec)
     (while (setq fontset-spec (x-get-resource (format "fontset-%d" idx)
                                              (format "Fontset-%d" idx)))
-      (create-fontset-from-fontset-spec fontset-spec t 'noerror)
+      (condition-case nil
+         (create-fontset-from-fontset-spec fontset-spec t 'noerror)
+       (error (message "Fontset-%d: invalid specification in X resource" idx)))
       (setq idx (1+ idx)))))
 
 ;;