mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-08 20:58:58 +00:00
Fix bug #16216 with 'name' Unicode property of control characters.
admin/unidata/unidata-gen.el (unidata-split-name): Don't give any NAME to <control> characters: the Unicode Standard says they have no name. doc/lispref/nonascii.texi (Character Properties): NAME or OLD-NAME properties can be nil (there's no empty string).
This commit is contained in:
parent
a2b89a5195
commit
77e5bcc52e
@ -1,3 +1,9 @@
|
||||
2013-12-22 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* unidata/unidata-gen.el (unidata-split-name): Don't give any NAME
|
||||
to <control> characters: the Unicode Standard says they have no
|
||||
name. (Bug#16216)
|
||||
|
||||
2013-12-12 David Engster <deng@randomsample.de>
|
||||
|
||||
* grammars/c.by (expr-binop): Add MOD.
|
||||
|
@ -984,7 +984,14 @@ is the character itself.")))
|
||||
(l nil)
|
||||
(idx 0)
|
||||
c)
|
||||
(if (= len 0)
|
||||
(if (or (= len 0)
|
||||
;; Unicode Standard, paragraph 4.8: "For all other
|
||||
;; Unicode code points of all other types (Control,
|
||||
;; Private-Use, Surrogate, Noncharacter, and Reserved),
|
||||
;; the value of the Name property is the null string."
|
||||
;; We already handle elsewhere all the characters except
|
||||
;; Cc, Control characters, which are handled here.
|
||||
(string= str "<control>"))
|
||||
nil
|
||||
(dotimes (i len)
|
||||
(setq c (aref str i))
|
||||
|
@ -1,12 +1,20 @@
|
||||
2013-12-22 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* nonascii.texi (Character Properties): NAME or OLD-NAME
|
||||
properties can be nil (there's no empty string).
|
||||
|
||||
2013-12-22 Xue Fuqiao <xfq.free@gmail.com>
|
||||
|
||||
* sequences.texi (Bool-Vectors): Document new bool-vector set operation functions.
|
||||
* sequences.texi (Bool-Vectors): Document new bool-vector set
|
||||
operation functions.
|
||||
|
||||
* text.texi (Examining Properties): Document `get-pos-property'.
|
||||
|
||||
* variables.texi (Directory Local Variables): Document `enable-dir-local-variables'.
|
||||
* variables.texi (Directory Local Variables): Document
|
||||
`enable-dir-local-variables'.
|
||||
|
||||
* debugging.texi (Debugger Commands): Document `debugger-toggle-locals'.
|
||||
* debugging.texi (Debugger Commands): Document
|
||||
`debugger-toggle-locals'.
|
||||
|
||||
2013-12-21 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
|
@ -440,7 +440,7 @@ properties that Emacs knows about:
|
||||
Corresponds to the @code{Name} Unicode property. The value is a
|
||||
string consisting of upper-case Latin letters A to Z, digits, spaces,
|
||||
and hyphen @samp{-} characters. For unassigned codepoints, the value
|
||||
is an empty string.
|
||||
is @code{nil}.
|
||||
|
||||
@cindex unicode general category
|
||||
@item general-category
|
||||
@ -522,7 +522,8 @@ is @code{nil}.
|
||||
|
||||
@item old-name
|
||||
Corresponds to the Unicode @code{Unicode_1_Name} property. The value
|
||||
is a string. For unassigned codepoints, the value is an empty string.
|
||||
is a string. Unassigned codepoints, and characters that have no value
|
||||
for this property, the value is @code{nil}.
|
||||
|
||||
@item iso-10646-comment
|
||||
Corresponds to the Unicode @code{ISO_Comment} property. The value is
|
||||
|
Loading…
x
Reference in New Issue
Block a user