aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2006-01-25 07:44:43 +0000
committerKenichi Handa2006-01-25 07:44:43 +0000
commitd1efee22033bff7c7d22d5eda93eee14e7796a8c (patch)
tree0cb4577bd9fe6fdc3cef734e6e591fca2b7ae369 /lisp
parent7347faa822b5ea177df5b2ed7a2b7d79194f0bcc (diff)
downloademacs-d1efee22033bff7c7d22d5eda93eee14e7796a8c.tar.gz
emacs-d1efee22033bff7c7d22d5eda93eee14e7796a8c.zip
(decode-char): Avoid the overhead of
calling utf-lookup-subst-table-for-decode if utf-translate-cjk-mode is nil. (encode-char): Avoid the overhead of calling utf-lookup-subst-table-for-encode if utf-translate-cjk-mode is nil.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/international/mule.el16
2 files changed, 28 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 91de67fc48e..2dac117cf8b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12006-01-25 Kenichi Handa <handa@m17n.org>
2
3 * international/mule.el (decode-char): Avoid the overhead of
4 calling utf-lookup-subst-table-for-decode if
5 utf-translate-cjk-mode is nil.
6 (encode-char): Avoid the overhead of calling
7 utf-lookup-subst-table-for-encode if utf-translate-cjk-mode is
8 nil.
9
102006-01-22 Kenichi Handa <handa@m17n.org>
11
12 * international/mule.el (make-subsidiary-coding-system): Reset
13 `coding-system-define-form' property of subsidiaries to nil.
14 Avoid duplicated entry in coding-system-alist.
15 (make-coding-system): Avoid duplicated entry in
16 coding-system-alist.
17 (define-coding-system-alias): Likewise.
18
12006-01-24 Luc Teirlinck <teirllm@auburn.edu> 192006-01-24 Luc Teirlinck <teirllm@auburn.edu>
2 20
3 * completion.el: Minor fixes in introductory comment. 21 * completion.el: Minor fixes in introductory comment.
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 05c2b3aabc9..ba4fcef628b 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -315,14 +315,16 @@ Return nil if such a character is not supported.
315Currently the only supported coded character set is `ucs' (ISO/IEC 315Currently the only supported coded character set is `ucs' (ISO/IEC
31610646: Universal Multi-Octet Coded Character Set), and the result is 31610646: Universal Multi-Octet Coded Character Set), and the result is
317translated through the translation-table named 317translated through the translation-table named
318`utf-translation-table-for-decode' or the translation-hash-table named 318`utf-translation-table-for-decode', or through the
319`utf-subst-table-for-decode'. 319translation-hash-table named `utf-subst-table-for-decode'
320\(if `utf-translate-cjk-mode' is non-nil).
320 321
321Optional argument RESTRICTION specifies a way to map the pair of CCS 322Optional argument RESTRICTION specifies a way to map the pair of CCS
322and CODE-POINT to a character. Currently not supported and just ignored." 323and CODE-POINT to a character. Currently not supported and just ignored."
323 (cond 324 (cond
324 ((eq ccs 'ucs) 325 ((eq ccs 'ucs)
325 (or (utf-lookup-subst-table-for-decode code-point) 326 (or (and utf-translate-cjk-mode
327 (utf-lookup-subst-table-for-decode code-point))
326 (let ((c (cond 328 (let ((c (cond
327 ((< code-point 160) 329 ((< code-point 160)
328 code-point) 330 code-point)
@@ -352,8 +354,9 @@ Return nil if CHAR is not included in CCS.
352Currently the only supported coded character set is `ucs' (ISO/IEC 354Currently the only supported coded character set is `ucs' (ISO/IEC
35310646: Universal Multi-Octet Coded Character Set), and CHAR is first 35510646: Universal Multi-Octet Coded Character Set), and CHAR is first
354translated through the translation-table named 356translated through the translation-table named
355`utf-translation-table-for-encode' or the translation-hash-table named 357`utf-translation-table-for-encode', or through the
356`utf-subst-table-for-encode'. 358translation-hash-table named `utf-subst-table-for-encode' \(if
359`utf-translate-cjk-mode' is non-nil).
357 360
358CHAR should be in one of these charsets: 361CHAR should be in one of these charsets:
359 ascii, latin-iso8859-1, mule-unicode-0100-24ff, mule-unicode-2500-33ff, 362 ascii, latin-iso8859-1, mule-unicode-0100-24ff, mule-unicode-2500-33ff,
@@ -366,7 +369,8 @@ code-point in CCS. Currently not supported and just ignored."
366 (charset (car split)) 369 (charset (car split))
367 trans) 370 trans)
368 (cond ((eq ccs 'ucs) 371 (cond ((eq ccs 'ucs)
369 (or (utf-lookup-subst-table-for-encode char) 372 (or (and utf-translate-cjk-mode
373 (utf-lookup-subst-table-for-encode char))
370 (let ((table (get 'utf-translation-table-for-encode 374 (let ((table (get 'utf-translation-table-for-encode
371 'translation-table))) 375 'translation-table)))
372 (setq trans (aref table char)) 376 (setq trans (aref table char))