From: MORIOKA Tomohiko Date: Fri, 27 Nov 2020 06:58:31 +0000 (+0900) Subject: - Don't set `=ucs@JP/hanazono' to nil if `=ucs@JP/hanazono' has the X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=83309518551aed90093423c1ca9ba9159c659035;p=chise%2Fxemacs-chise.git - Don't set `=ucs@JP/hanazono' to nil if `=ucs@JP/hanazono' has the same value as `=ucs@jis'. - Don't set `==ucs@JP/hanazono' to nil if `==ucs@JP/hanazono' has the same value as `==ucs@jis' or `==ucs@unicode' or `==ucs@cns'. --- diff --git a/lisp/utf-2000/maps-conf.el b/lisp/utf-2000/maps-conf.el index c81a0fa..8ca50c0 100644 --- a/lisp/utf-2000/maps-conf.el +++ b/lisp/utf-2000/maps-conf.el @@ -296,14 +296,23 @@ (lambda (c v) (if (and (setq j-chr (decode-char '=ucs@JP v)) (not (eq j-chr c)) - (null (encode-char c '=ucs))) + (null (encode-char c '=ucs)) + (not (eq (encode-char c '=ucs@jis) + (encode-char c '=ucs@JP/hanazono)))) (put-char-attribute c '=ucs@JP/hanazono nil)) nil) '=ucs@unicode) (map-char-attribute (lambda (c v) (if (and (setq j-chr (decode-char '==ucs@JP v)) - (not (eq j-chr c))) + (not (eq j-chr c)) + (not (or (eq (encode-char c '==ucs@jis) + (encode-char c '==ucs@JP/hanazono)) + (eq (encode-char c '==ucs@unicode) + (encode-char c '==ucs@JP/hanazono)) + (eq (encode-char c '==ucs@cns) + (encode-char c '==ucs@JP/hanazono)) + ))) (put-char-attribute c '==ucs@JP/hanazono nil)) nil) '==ucs@unicode)