(char-ucs-chars): Allow undefined UCS characters; don't allow
authorMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 21 Nov 2023 03:29:23 +0000 (12:29 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Sun, 26 Nov 2023 01:50:43 +0000 (10:50 +0900)
compatibility characters.

lisp/utf-2000/chise-subr.el

index 146b84a..1b8f413 100644 (file)
 (defun char-ucs-chars (character)
   "Return list of UCS abstract characters unified by CHARACTER."
   (let (ucs dest)
-    (if (and (setq ucs (encode-char character '=ucs 'defined-only))
-            (not (and (<= #x2E80 ucs)(<= ucs #x2EF3))))
+    (if (and (setq ucs (encode-char character '=ucs))
+            (not (and (<= #x2E80 ucs)(<= ucs #x2EF3)))
+            (null (get-char-attribute character '=>ucs*)))
        (setq dest (list character)))
     (dolist (c (mapcan #'char-ucs-chars
                       (get-char-attribute character '->subsumptive)))