[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Character literals for Unicode (control) characters
From: |
Eli Zaretskii |
Subject: |
Re: Character literals for Unicode (control) characters |
Date: |
Fri, 22 Apr 2016 10:57:26 +0300 |
> From: Paul Eggert <address@hidden>
> Date: Thu, 21 Apr 2016 19:39:50 -0700
> Cc: address@hidden
>
> Thanks for doing all that. I installed your patches into the Emacs
> master, along with the attached further patch which omits the
> undocumented support for escapes like "\N{CJK IDEOGRAPH-3400}" as I
> couldn't see the utility of these over and above plain "\N{U+3400}",
> plus it wasn't clear why CJK ideographs needed special-case names
> whereas other ideographs did not.
I think \N{} should accept any name that appears in UnicodeData.txt,
so "CJK IDEOGRAPH-3400" and its ilk should be an exception, even if we
don't see any great utility in that. I think omitting any names is a
mistake, unless other environments (e.g., Python) do the same.
As for other ideographs that are not treated the same, I'm not sure
which ones you had in mind; can you elaborate? Note that, as I said
in
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg00919.html
a new range of similarly treated ideographs was added by Unicode 9.0,
so they should be treated the same (they don't appear in ucs-names).
Thanks.