Mercurial > hg > xemacs-beta
diff lisp/mule/chinese.el @ 4145:edb00a8b4eff
[xemacs-hg @ 2007-08-26 20:00:29 by aidan]
Generally make the language environments and coding systems a little more sane.
author | aidan |
---|---|
date | Sun, 26 Aug 2007 20:00:42 +0000 |
parents | 476d0799d704 |
children | 1d74a1d115ee |
line wrap: on
line diff
--- a/lisp/mule/chinese.el Sat Aug 25 21:51:21 2007 +0000 +++ b/lisp/mule/chinese.el Sun Aug 26 20:00:42 2007 +0000 @@ -225,11 +225,6 @@ (coding-system cn-gb-2312 iso-2022-7bit hz-gb-2312) (coding-priority cn-gb-2312 big5 iso-2022-7bit) (cygwin-locale "zh") - (locale "zh_CN.eucCN" "zh_CN.EUC" "zh_CN" - "chinese-s" "zh" - (lambda (arg) - (and arg (let ((case-fold-search t)) - (string-match "^zh_.*.GB.*" arg))))) (mswindows-locale ("CHINESE" . "CHINESE_SIMPLIFIED")) (native-coding-system cn-gb-2312) (input-method . "chinese-py-punct") @@ -240,6 +235,14 @@ Uses the GB2312 character set.")) '("Chinese")) +;; Set the locale information separately so that the lambda gets compiled. +(set-language-info "Chinese-GB" + 'locale + (list "zh_CN.eucCN" "zh_CN.EUC" "zh_CN" "chinese-s" "zh" + (lambda (arg) + (and arg (let ((case-fold-search t)) + (string-match "^zh_.*.GB.*" arg)))))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Chinese BIG5 (traditional) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -295,11 +298,6 @@ (coding-system big5 iso-2022-7bit) (coding-priority big5 cn-gb-2312 iso-2022-7bit) (cygwin-locale "zh_TW") - (locale "zh_TW.Big5" "zh_TW.big5" "zh_CN.big5" "zh_TW" - "chinese-t" - (lambda (arg) - (and arg (let ((case-fold-search t)) - (string-match "^zh_.*.BIG5.*" arg))))) (mswindows-locale ("CHINESE" . "CHINESE_TRADITIONAL")) (native-coding-system big5) (input-method . "chinese-py-punct-b5") @@ -311,6 +309,15 @@ )) '("Chinese")) +;; Set the locale information separately so that the lambda gets compiled. +(set-language-info "Chinese-BIG5" + 'locale + (list "zh_TW.Big5" "zh_TW.big5" "zh_CN.big5" "zh_TW" + "chinese-t" + (lambda (arg) + (and arg (let ((case-fold-search t)) + (string-match "^zh_.*.BIG5.*" arg)))))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Chinese CNS11643 (traditional) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;