bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?


From: Drew Adams
Subject: bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?
Date: Tue, 4 Oct 2011 06:43:03 -0700

> > > > Is (get-char-code-property c 'name) supposed to return ""
> > > > when the char has no name or is it supposed to return nil?
> > > > Either way is fine by me...
> > > 
> > > It returns "" in such a case in Emacs 24...
> > > ... the Unicode Name property, the default value is a null string.
> 
> > I'm following your discussion about this, but I don't see 
> > how it relates much to my question about `ucs-names'.
> 
> As I don't know how ucs-names is used (I have not known the
> existence of such a variable), I have no answer to your
> questions.

I was referring to the function `ucs-names', which "returns an alist of
(CHAR-NAME . CHAR-CODE) pairs cached in [variable] `ucs-names'."

I was guessing that you wrote that code.  In any case, `ucs-names' is called in
`read-char-by-name'.  It is essentially passed as a COLLECTION argument to
`completing-read' (not quite, but the effect is similar).

`read-char-by-name' is used by `ucs-insert' to read the character to insert.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]