GNU bug report logs -
#10502
24.0.92; Please add optional NAMES arg to `read-char-by-name'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sat, 14 Jan 2012 15:10:02 UTC
Severity: wishlist
Tags: wontfix
Found in version 24.0.92
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10502 in the body.
You can then email your comments to 10502 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10502
; Package
emacs
.
(Sat, 14 Jan 2012 15:10:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 14 Jan 2012 15:10:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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)'.
`ucs-names' is gigantic and all-emcompassing. Code that calls
`read-char-by-name' for a particular purpose/context might well deal
with only a subset of that giant set of char names. The names it deals
with should not be hard-coded but should be decidable programmatically.
In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2012-01-05 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.6) --no-opt --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include --ldflags
-LD:/devel/emacs/libs/gnutls-3.0.9/lib'
Severity set to 'wishlist' from 'normal'
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 28 Jan 2012 02:52:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10502
; Package
emacs
.
(Thu, 28 Apr 2016 12:11:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 10502 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> 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
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Apr 2016 12:11:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
10502 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Apr 2016 12:11:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10502
; Package
emacs
.
(Thu, 28 Apr 2016 14:21:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 10502 <at> debbugs.gnu.org (full text, mbox):
> > 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.
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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 27 May 2016 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 82 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.