From: Tino Calancha Date: Sat, 23 Apr 2016 19:41:28 +0000 (-0700) Subject: describe-char: fix insert char documentation X-Git-Tag: emacs-25.0.94~154 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4f40f5f63aaf2948a7b99c3a2eed0e50b2aa3a47;p=emacs.git describe-char: fix insert char documentation * lisp/descr-text.el (describe-char): Only 'ucs-names' entries can be inserted by unicode name (Bug#23325). Copyright-paperwork-exempt: yes --- diff --git a/lisp/descr-text.el b/lisp/descr-text.el index a352ed0849c..5f1a4304342 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -619,7 +619,7 @@ relevant to POS." (let ((name (or (get-char-code-property char 'name) (get-char-code-property char 'old-name)))) - (if name + (if (and name (assoc-string name (ucs-names))) (format "type \"C-x 8 RET %x\" or \"C-x 8 RET %s\"" char name)