From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23325: 25.0.92; insert-char: cannot find all chars if input is unicode name Date: Thu, 21 Apr 2016 17:00:12 +0300 Message-ID: <83a8kn6p03.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1461247288 21464 80.91.229.3 (21 Apr 2016 14:01:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2016 14:01:28 +0000 (UTC) Cc: 23325@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 16:01:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1atFAT-0002za-Tv for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2016 16:01:18 +0200 Original-Received: from localhost ([::1]:41747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atFAT-00080L-CR for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2016 10:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atFAI-0007kz-T3 for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2016 10:01:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atFAE-0006Oq-QM for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2016 10:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atFAE-0006Om-No for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2016 10:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1atFAE-0002ee-II for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2016 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Apr 2016 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23325 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23325-submit@debbugs.gnu.org id=B23325.146124722710153 (code B ref 23325); Thu, 21 Apr 2016 14:01:02 +0000 Original-Received: (at 23325) by debbugs.gnu.org; 21 Apr 2016 14:00:27 +0000 Original-Received: from localhost ([127.0.0.1]:42440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atF9f-0002dh-4s for submit@debbugs.gnu.org; Thu, 21 Apr 2016 10:00:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atF9e-0002dV-4P for 23325@debbugs.gnu.org; Thu, 21 Apr 2016 10:00:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atF9V-0006Hx-BV for 23325@debbugs.gnu.org; Thu, 21 Apr 2016 10:00:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atF9V-0006Hs-8D; Thu, 21 Apr 2016 10:00:17 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4722 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1atF9U-0001ip-HT; Thu, 21 Apr 2016 10:00:16 -0400 In-reply-to: (message from Tino Calancha on Thu, 21 Apr 2016 13:40:01 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116647 Archived-At: > Date: Thu, 21 Apr 2016 13:40:01 +0900 (JST) > From: Tino Calancha > > Interactive calls to `insert-char' cannot find all > characters when CHARACTER is the unicode character name. > > IOW, it finds all characters when CHARACTER is the > code point. > > > emacs -Q: > M-x insert-char RET cjk SPC TAB > ;; Buffer "*Completions*" just shows entries starting > ;; with 'CJK RADICAL' or 'CJK STROKE'. > > M-x insert-char RET 2eea RET > ;; ok > M-x insert-char RET cjk SPC radical SPC c-simplified SPC frog RET > ;; ok > M-x insert-char RET 79c1 RET > ;; ok > M-x insert-char RET cjk SPC ideograph-79c1 RET > ;; Signal error 'Invalid character' It's a feature, see ucs-names. We deliberately filter out non-descriptive names like "CJK COMPATIBILITY IDEOGRAPH-2F803", because (a) if we didn't the list of completions would be sometimes much longer; and (b) it makes very little sense to show these names as completions candidates, because those names include the codepoint, so if you know which of these you need to insert, you can insert it by the codepoint.