mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-19 18:13:55 +00:00
(create-fontset-from-x-resource):
Handle the error of X resource more gracefully.
This commit is contained in:
parent
f2268dc056
commit
1c9992b7da
@ -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)))))
|
||||
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user