* lisp/international/mule-cmds.el (mule--ucs-names-group): Better char check.

This commit is contained in:
Juri Linkov 2021-05-25 23:55:13 +03:00
parent 5c45e8b65b
commit f4dc646e0d

View file

@ -3107,7 +3107,8 @@ on encoding."
(defun mule--ucs-names-group (name transform)
(if transform
name
(let ((script (aref char-script-table (gethash name ucs-names))))
(let* ((char (gethash name ucs-names))
(script (and char (aref char-script-table char))))
(if script (symbol-name script) "ungrouped"))))
(defun char-from-name (string &optional ignore-case)