all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: 9653@debbugs.gnu.org
Subject: bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?
Date: Wed, 05 Oct 2011 06:20:35 -0400	[thread overview]
Message-ID: <E1RBOaZ-0006gk-Um@fencepost.gnu.org> (raw)
In-Reply-To: <tl7wrcjak6d.fsf@m17n.org> (message from Kenichi Handa on Wed, 05 Oct 2011 17:59:06 +0900)

> From: Kenichi Handa <handa@m17n.org>
> Date: Wed, 05 Oct 2011 17:59:06 +0900
> Cc: 9653@debbugs.gnu.org
> 
> I think what get-char-code-proeprty returns belongs to an
> external API, and currently I put this docstring to `name'
> property.
> 
> "Unicode character name.
> Property value is a string."

Right, and the same is in the ELisp manual:

  `name'
       Corresponds to the `Name' Unicode property.  The value is a string
       consisting of upper-case Latin letters A to Z, digits, spaces, and
       hyphen `-' characters.  For unassigned codepoints, the value is an
       empty string.

A similar verbiage is there for old-name.

> I'll repeat that when one want to know what Unicode says
> about the name of a character, the answer is "", not
> "<Unnamed>".

Correct.

> > >> If not (i.e. all things being equal) I'd prefer to use nil which is
> > >> ever so slightly closer to usual Elisp practice,
> > > Really?  I've thought nil and "" are rather different object in Elisp.
> > 
> > Of course they are, nil usually means "not found" or something like
> > that, and I think it suits this case perfectly.
> 
> I'm not sure because there are multiple use-cases of
> get-char-code-property, and nil is better only in some of
> them.  But, it's just "I'm not sure".  If you are sure, as I
> wrote above, I'll change it back.

FWIW, I'm not sure, either.  Stefan, can you please provide "heavier"
arguments than just what's been written in this thread?

If the issue is just to filter the empty names from what ucs-names
returns, we can do that with either nil or empty strings.  But let's
also think about other users of get-char-code-property, such as
what-cursor-position etc., where we will now need to display an empty
string when we get nil.  By contrast, the way get-char-code-property
is coded now its results are ready to be displayed in a manner that is
entirely consistent with the requirements of the Unicode standard, and
not really getting in the way of Emacs.  So it is unclear to me why we
should disregard the standard's guidance in this particular case.





  reply	other threads:[~2011-10-05 10:20 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<74B14D2A03144E798C9415172D5FE01A@us.oracle.com>
     [not found] ` <<tl7fwe65odg.fsf@m17n.org>
2011-10-02 16:36   ` bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries? Drew Adams
2011-10-02 17:38     ` Drew Adams
2011-10-02 22:31       ` Juanma Barranquero
2011-10-02 22:51         ` Drew Adams
2011-10-02 22:55           ` Juanma Barranquero
2011-10-03 13:20           ` Jason Rumney
2011-10-03 13:56             ` Drew Adams
2011-10-03 14:00               ` Juanma Barranquero
2011-10-02 18:09     ` Thierry Volpiatto
2011-10-03  1:28     ` Stefan Monnier
2011-10-03  4:23       ` Kenichi Handa
2011-10-03  8:22         ` Andreas Schwab
2011-10-04  1:14           ` Kenichi Handa
2011-10-03 13:31         ` Stefan Monnier
2011-10-04  1:59           ` Kenichi Handa
2011-10-04 12:56             ` Stefan Monnier
2011-10-06  3:53             ` Kevin Rodgers
2011-10-06 12:19               ` Juanma Barranquero
2011-10-06 13:02                 ` Andreas Schwab
2011-10-06 13:47                   ` Juanma Barranquero
2011-10-06 14:01                     ` Andreas Schwab
2011-10-06 14:02                       ` Juanma Barranquero
2011-10-04  2:19         ` Drew Adams
2011-10-04  4:02           ` Kenichi Handa
2011-10-04 13:43             ` Drew Adams
2011-10-04 17:34               ` Drew Adams
2011-10-04 18:19                 ` Eli Zaretskii
2011-10-04 18:30                   ` Drew Adams
2011-10-04 20:55                     ` Eli Zaretskii
2011-10-04 21:39                     ` Stefan Monnier
2011-10-04 22:03                       ` Drew Adams
2011-10-05  4:11                         ` Eli Zaretskii
2011-10-05 13:20                           ` Drew Adams
2011-10-05 17:24                             ` Eli Zaretskii
2011-10-05  8:59     ` Kenichi Handa
2011-10-05 10:20       ` Eli Zaretskii [this message]
2011-10-05 12:40         ` Stefan Monnier
2011-10-06 18:02           ` Eli Zaretskii
2011-10-06 20:56             ` Stefan Monnier
2012-01-14 18:35               ` Drew Adams
2012-02-17 15:55     ` Drew Adams
2018-02-13 23:35     ` Drew Adams
2018-02-15  1:11       ` Noam Postavsky
2018-02-15  3:17         ` Drew Adams
     [not found] <tl74nupdi7g.fsf@m17n.org>
2012-02-17 15:25 ` Stefan Monnier
     [not found]   ` <7CCDEE21B0ED42B097600BB24692952A@us.oracle.com>
2012-02-17 23:42     ` Stefan Monnier
2012-02-18  0:05       ` Drew Adams
     [not found]         ` <8339a8wp2m.fsf@gnu.org>
2012-02-18 19:08           ` Drew Adams
2012-02-20  0:39   ` Kenichi Handa

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=E1RBOaZ-0006gk-Um@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=9653@debbugs.gnu.org \
    --cc=handa@m17n.org \
    /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.