From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#10502: 24.0.92; Please add optional NAMES arg to `read-char-by-name' Date: Thu, 28 Apr 2016 07:20:07 -0700 (PDT) Message-ID: <45ea2b3e-2275-44ab-91f5-f48516fba223@default> References: <87d1palysj.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461853290 14750 80.91.229.3 (28 Apr 2016 14:21:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 14:21:30 +0000 (UTC) Cc: 10502@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 16:21:17 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 1avmoe-0003yW-T8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 16:21:17 +0200 Original-Received: from localhost ([::1]:49396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avmod-0000hy-Am for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 10:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avmoU-0000aY-TZ for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 10:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avmoP-00075J-Tj for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 10:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avmoP-00075E-QA for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 10:21:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avmoP-0000Zc-Jm for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 10:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 14:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10502 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 10502-submit@debbugs.gnu.org id=B10502.14618532182148 (code B ref 10502); Thu, 28 Apr 2016 14:21:01 +0000 Original-Received: (at 10502) by debbugs.gnu.org; 28 Apr 2016 14:20:18 +0000 Original-Received: from localhost ([127.0.0.1]:53221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avmni-0000Ya-E5 for submit@debbugs.gnu.org; Thu, 28 Apr 2016 10:20:18 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:35831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avmng-0000YK-HJ for 10502@debbugs.gnu.org; Thu, 28 Apr 2016 10:20:16 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3SEKAVD032198 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 14:20:10 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u3SEKApx026619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 14:20:10 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u3SEK9Y9017516; Thu, 28 Apr 2016 14:20:09 GMT In-Reply-To: <87d1palysj.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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:117072 Archived-At: > > The use of `(ucs-names)' is hard-coded in `read-char-by-name'. Please > > add an optional parameter NAMES that defaults to `(ucs-names)' and use > > that instead. That will enable callers to use a different set of > > candidates, typically a subset of `(ucs-names)'. >=20 > I don't think so. `read-char-by-name' is just a shim over >=20 > (completing-read > prompt > (lambda (string pred action) > (if (eq action 'metadata) > '(metadata > (annotation-function . mule--ucs-names-annotation) > (category . unicode-name)) > (complete-with-action action (ucs-names) string pred)))) >=20 > and if you want a different completion table, then you should just avoid > `read-char-by-name' -- it doesn't provide much value. No. `read-char-by-name' is useful generally. It is a general function for reading a character by its Unicode name. Nothing about that means that the full set of Unicode names need necessarily be the set to choose from. The function becomes far more useful if a caller can specify the set of chars to use as the domain.