From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 10502@debbugs.gnu.org
Subject: bug#10502: 24.0.92; Please add optional NAMES arg to `read-char-by-name'
Date: Thu, 28 Apr 2016 14:10:04 +0200 [thread overview]
Message-ID: <87d1palysj.fsf@gnus.org> (raw)
In-Reply-To: <E62DC542DF3E41D6BBDA3E09B543AE35@us.oracle.com> (Drew Adams's message of "Sat, 14 Jan 2012 07:08:46 -0800")
"Drew Adams" <drew.adams@oracle.com> writes:
> 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)'.
I don't think so. `read-char-by-name' is just a shim over
(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))))
and if you want a different completion table, then you should just avoid
`read-char-by-name' -- it doesn't provide much value.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2016-04-28 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 15:08 bug#10502: 24.0.92; Please add optional NAMES arg to `read-char-by-name' Drew Adams
2016-04-28 12:10 ` Lars Ingebrigtsen [this message]
2016-04-28 14:20 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1palysj.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=10502@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.