If coding-system-charset-list returns `iso-2022' or `emacs-mule',
ignore them.
;; coding systems of higher priorities in this environment.
(let ((charsets (get-language-info language-name 'charset)))
(dolist (coding (get-language-info language-name 'coding-priority))
- (setq charsets (append charsets (coding-system-charset-list coding))))
+ (let ((list (coding-system-charset-list coding)))
+ (if (consp list)
+ (setq charsets (append charsets list)))))
(if charsets
(apply 'set-charset-priority charsets))))