Subject: Re: bug#23325: 25.0.92; insert-char: cannot find all chars if input is unicode name

From: Tino Calancha <[email-masked]>
Date: Fri, 22 Apr 2016 12:08:31 +0900 (JST)

> It would be better if the code didn't have to
> define in yet another place which characters are omitted; instead, how
> about checking if the character is in the ucs-names list?

Absolutely.  Implemented in the new patch.

From 592473bed4a6986e9dc96489f63a174112cc90d5 Mon Sep 17 00:00:00 2001
From: Tino Calancha <[email-masked]>
Date: Fri, 22 Apr 2016 12:00:14 +0900
Subject: [PATCH] describe-char: fix insert char documentation

* lisp/descr-text.el (describe-char):
Only 'ucs-names' entries can be inserted by unicode name (Bug#23325).
---
 lisp/descr-text.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index a352ed0..4dac6bb 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -619,7 +619,8 @@ describe-char
                           (let ((name
                                  (or (get-char-code-property char 'name)
                                      (get-char-code-property char 'old-name))))
-                            (if name
+                            (if (and name
+                                     (assoc-string name (or ucs-names (ucs-names))))
                                 (format
                                  "type \"C-x 8 RET %x\" or \"C-x 8 RET %s\""
                                  char name)
-- 
2.8.0.rc3