aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2009-02-12 05:48:41 +0000
committerKenichi Handa2009-02-12 05:48:41 +0000
commit8ea6fa801ed4788d3f5bc01b8198025587e77871 (patch)
tree8223f45c3a3f349da2a2dd96c8a87364ca9559e8
parentca451f4c7ec8da6d6e6be436dfd8ec939a5985f0 (diff)
downloademacs-8ea6fa801ed4788d3f5bc01b8198025587e77871.tar.gz
emacs-8ea6fa801ed4788d3f5bc01b8198025587e77871.zip
(?.): New character category for
Base characters. Set them in the standard category table.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/international/characters.el16
2 files changed, 21 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f3af325ee8a..a635e65ba23 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12009-02-12 Kenichi Handa <handa@m17n.org>
2
3 * international/characters.el (?.): New character category for
4 Base characters. Set them in the standard category table.
5
6 * composite.el: Use "\\c." instead of "[[:alpha:]]" to match with
7 a base character.
8
12009-02-12 Stefan Monnier <monnier@iro.umontreal.ca> 92009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 10
3 * isearch.el (isearch-yank-char-in-minibuffer) 11 * isearch.el (isearch-yank-char-in-minibuffer)
diff --git a/lisp/international/characters.el b/lisp/international/characters.el
index fd03468d67a..011536e15f8 100644
--- a/lisp/international/characters.el
+++ b/lisp/international/characters.el
@@ -110,9 +110,11 @@ A character which can't be placed at beginning of line.")
110(define-category ?< "Not at eol 110(define-category ?< "Not at eol
111A character which can't be placed at end of line.") 111A character which can't be placed at end of line.")
112 112
113;; Combining 113;; Base and Combining
114(define-category ?. "Base
115Base characters (Unicode General Category L,N,P,S,Zs)")
114(define-category ?^ "Combining 116(define-category ?^ "Combining
115Combining diacritic or mark") 117Combining diacritic or mark (Unicode General Category M")
116 118
117;;; Setting syntax and category. 119;;; Setting syntax and category.
118 120
@@ -1049,7 +1051,6 @@ Setup char-width-table appropriate for non-CJK language environment."
1049 (setq char-width-table (char-table-parent cjk-char-width-table))) 1051 (setq char-width-table (char-table-parent cjk-char-width-table)))
1050 1052
1051(optimize-char-table (standard-case-table)) 1053(optimize-char-table (standard-case-table))
1052(optimize-char-table (standard-category-table))
1053(optimize-char-table (standard-syntax-table)) 1054(optimize-char-table (standard-syntax-table))
1054 1055
1055 1056
@@ -1182,6 +1183,15 @@ Setup char-width-table appropriate for non-CJK language environment."
1182 table)) 1183 table))
1183 1184
1184(setq unicode-category-table (build-unicode-category-table)) 1185(setq unicode-category-table (build-unicode-category-table))
1186(map-char-table #'(lambda (key val)
1187 (if (and val
1188 (or (and (/= (aref (symbol-name val) 0) ?M)
1189 (/= (aref (symbol-name val) 0) ?C))
1190 (eq val 'Zs)))
1191 (modify-category-entry key ?.)))
1192 unicode-category-table)
1193
1194(optimize-char-table (standard-category-table))
1185 1195
1186 1196
1187;;; Setting word boundary. 1197;;; Setting word boundary.