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: Sun, 2 Oct 2011 15:51:50 -0700

> > Please do not simply say that `ucs-names' is only
> > "internal" so you need not describe it better.
> > It's already being used in various 3rd-party code.
> 
> That's exactly what I would say. `ucs-names' (var and function) is an
> implementation detail of `read-by-char-name'.

Which demonstrates one more time the fallacy of "internal" use and "need not
document".

It should be obvious that a data structure such as `ucs-names' is useful even
outside of reading a character name with `read-char-by-name'.  I predict that
we'll find that the former is in fact more generally useful than the latter.

That could have been obvious at its creation, but it is doubly obvious now that
experience bears it out (for this relatively new fn/var) - as I mentioned wrt
its use in 3rd-party code.

Those using it notice the bug about inclusion of "" character names.  Without
that use beyond `read-char-by-name' such a bug might have gone unnoticed.  (Yes,
until informed otherwise, I'm assuming that including "" names is wrong.)

`ucs-names' is documented, but not as well as it should be.





reply via email to

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