aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-12-22 20:02:37 +0200
committerEli Zaretskii2013-12-22 20:02:37 +0200
commit77e5bcc52eadbcfc8e6d9a463782c04f5dc63c25 (patch)
tree24cd7facfd058883cea7b8b6bf03f562358a9f6b
parenta2b89a519573ae5ef301ef5c9b0eb224df8bd960 (diff)
downloademacs-77e5bcc52eadbcfc8e6d9a463782c04f5dc63c25.tar.gz
emacs-77e5bcc52eadbcfc8e6d9a463782c04f5dc63c25.zip
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).
-rw-r--r--admin/ChangeLog6
-rw-r--r--admin/unidata/unidata-gen.el9
-rw-r--r--doc/lispref/ChangeLog14
-rw-r--r--doc/lispref/nonascii.texi5
4 files changed, 28 insertions, 6 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index f49061e35df..7671ae409cd 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,9 @@
12013-12-22 Eli Zaretskii <eliz@gnu.org>
2
3 * unidata/unidata-gen.el (unidata-split-name): Don't give any NAME
4 to <control> characters: the Unicode Standard says they have no
5 name. (Bug#16216)
6
12013-12-12 David Engster <deng@randomsample.de> 72013-12-12 David Engster <deng@randomsample.de>
2 8
3 * grammars/c.by (expr-binop): Add MOD. 9 * grammars/c.by (expr-binop): Add MOD.
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el
index fa8f81636e3..ed531eeea25 100644
--- a/admin/unidata/unidata-gen.el
+++ b/admin/unidata/unidata-gen.el
@@ -984,7 +984,14 @@ is the character itself.")))
984 (l nil) 984 (l nil)
985 (idx 0) 985 (idx 0)
986 c) 986 c)
987 (if (= len 0) 987 (if (or (= len 0)
988 ;; Unicode Standard, paragraph 4.8: "For all other
989 ;; Unicode code points of all other types (Control,
990 ;; Private-Use, Surrogate, Noncharacter, and Reserved),
991 ;; the value of the Name property is the null string."
992 ;; We already handle elsewhere all the characters except
993 ;; Cc, Control characters, which are handled here.
994 (string= str "<control>"))
988 nil 995 nil
989 (dotimes (i len) 996 (dotimes (i len)
990 (setq c (aref str i)) 997 (setq c (aref str i))
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index d03f6ae39da..c0a3c81e926 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,12 +1,20 @@
12013-12-22 Eli Zaretskii <eliz@gnu.org>
2
3 * nonascii.texi (Character Properties): NAME or OLD-NAME
4 properties can be nil (there's no empty string).
5
12013-12-22 Xue Fuqiao <xfq.free@gmail.com> 62013-12-22 Xue Fuqiao <xfq.free@gmail.com>
2 7
3 * sequences.texi (Bool-Vectors): Document new bool-vector set operation functions. 8 * sequences.texi (Bool-Vectors): Document new bool-vector set
9 operation functions.
4 10
5 * text.texi (Examining Properties): Document `get-pos-property'. 11 * text.texi (Examining Properties): Document `get-pos-property'.
6 12
7 * variables.texi (Directory Local Variables): Document `enable-dir-local-variables'. 13 * variables.texi (Directory Local Variables): Document
14 `enable-dir-local-variables'.
8 15
9 * debugging.texi (Debugger Commands): Document `debugger-toggle-locals'. 16 * debugging.texi (Debugger Commands): Document
17 `debugger-toggle-locals'.
10 18
112013-12-21 Chong Yidong <cyd@gnu.org> 192013-12-21 Chong Yidong <cyd@gnu.org>
12 20
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index 4132c1f8de0..ee4c8b77f3d 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -440,7 +440,7 @@ properties that Emacs knows about:
440Corresponds to the @code{Name} Unicode property. The value is a 440Corresponds to the @code{Name} Unicode property. The value is a
441string consisting of upper-case Latin letters A to Z, digits, spaces, 441string consisting of upper-case Latin letters A to Z, digits, spaces,
442and hyphen @samp{-} characters. For unassigned codepoints, the value 442and hyphen @samp{-} characters. For unassigned codepoints, the value
443is an empty string. 443is @code{nil}.
444 444
445@cindex unicode general category 445@cindex unicode general category
446@item general-category 446@item general-category
@@ -522,7 +522,8 @@ is @code{nil}.
522 522
523@item old-name 523@item old-name
524Corresponds to the Unicode @code{Unicode_1_Name} property. The value 524Corresponds to the Unicode @code{Unicode_1_Name} property. The value
525is a string. For unassigned codepoints, the value is an empty string. 525is a string. Unassigned codepoints, and characters that have no value
526for this property, the value is @code{nil}.
526 527
527@item iso-10646-comment 528@item iso-10646-comment
528Corresponds to the Unicode @code{ISO_Comment} property. The value is 529Corresponds to the Unicode @code{ISO_Comment} property. The value is