1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00

(setup-XXX-environment): Just call set-language-environment. If

they used to do some other jobs than what done by
set-language-environment, those jobs are done in
setup-XXX-environment-internal now.
This commit is contained in:
Kenichi Handa 1998-08-10 06:42:41 +00:00
parent ddb5c0419c
commit 45717142ef
10 changed files with 25 additions and 37 deletions

View file

@ -28,25 +28,19 @@
(defun setup-chinese-gb-environment () (defun setup-chinese-gb-environment ()
"Setup multilingual environment (MULE) for Chinese GB2312 users." "Setup multilingual environment (MULE) for Chinese GB2312 users."
(interactive) (interactive)
(setup-english-environment) (set-language-environment "Chinese-GB"))
(set-language-environment-coding-systems "Chinese-GB")
(setq default-input-method "chinese-py-punct"))
;;;###autoload ;;;###autoload
(defun setup-chinese-big5-environment () (defun setup-chinese-big5-environment ()
"Setup multilingual environment (MULE) for Chinese Big5 users." "Setup multilingual environment (MULE) for Chinese Big5 users."
(interactive) (interactive)
(setup-english-environment) (set-language-environment "Chinese-BIG5"))
(set-language-environment-coding-systems "Chinese-BIG5")
(setq default-input-method "chinese-py-punct-b5"))
;;;###autoload ;;;###autoload
(defun setup-chinese-cns-environment () (defun setup-chinese-cns-environment ()
"Setup multilingual environment (MULE) for Chinese CNS11643 family users." "Setup multilingual environment (MULE) for Chinese CNS11643 family users."
(interactive) (interactive)
(setup-english-environment) (set-language-environment "Chinese-CNS"))
(set-language-environment-coding-systems "Chinese-CNS")
(setq default-input-method "chinese-cns-quick"))
;; Hz/ZW encoding stuffs ;; Hz/ZW encoding stuffs

View file

@ -27,23 +27,19 @@
(defun setup-cyrillic-iso-environment () (defun setup-cyrillic-iso-environment ()
"Setup multilingual environment (MULE) for Cyrillic ISO-8859-5 users." "Setup multilingual environment (MULE) for Cyrillic ISO-8859-5 users."
(interactive) (interactive)
(setup-8-bit-environment "Cyrillic-ISO" 'cyrillic-iso8859-5 (set-language-environment "Cyrillic-ISO"))
"cyrillic-yawerty"))
;;;###autoload ;;;###autoload
(defun setup-cyrillic-koi8-environment () (defun setup-cyrillic-koi8-environment ()
"Setup multilingual environment (MULE) for Cyrillic KOI8 users." "Setup multilingual environment (MULE) for Cyrillic KOI8 users."
(interactive) (interactive)
(setup-8-bit-environment "Cyrillic-KOI8" 'cyrillic-iso8859-5 (set-language-environment "Cyrillic-KOI8"))
"cyrillic-yawerty"))
;;;###autoload ;;;###autoload
(defun setup-cyrillic-alternativnyj-environment () (defun setup-cyrillic-alternativnyj-environment ()
"Setup multilingual environment (MULE) for Cyrillic ALTERNATIVNYJ users." "Setup multilingual environment (MULE) for Cyrillic ALTERNATIVNYJ users."
(interactive) (interactive)
(setup-8-bit-environment "Cyrillic-ALT" 'cyrillic-iso8859-5 (set-language-environment "Cyrillic-ALT"))
"cyrillic-yawerty")
(setq coding-category-raw-text 'cyrillic-alternativnyj))
;;;###autoload ;;;###autoload
(defun cyrillic-encode-koi8-r-char (char) (defun cyrillic-encode-koi8-r-char (char)

View file

@ -44,8 +44,8 @@
(defun setup-devanagari-environment () (defun setup-devanagari-environment ()
"Setup multilingual environment (MULE) for languages using Devanagari." "Setup multilingual environment (MULE) for languages using Devanagari."
(interactive) (interactive)
(setup-8-bit-environment "Devanagari" nil "devanagari-itrans")) (set-language-environment "Devanagari"))
;;; Basic functions. ;;; Basic functions.
;;;###autoload ;;;###autoload

View file

@ -32,10 +32,10 @@
;;;###autoload ;;;###autoload
(defun setup-ethiopic-environment () (defun setup-ethiopic-environment ()
"Setup multilingual environment for Ethiopic." "Setup multilingual environment for Ethiopic."
(interactive) (set-language-environment "Ethiopic"))
(setup-english-environment)
(setq default-input-method "ethiopic")
;;;###autoload
(defun setup-ethiopic-environment-internal ()
(let ((key-bindings '((" " . ethio-insert-space) (let ((key-bindings '((" " . ethio-insert-space)
([?\S- ] . ethio-insert-ethio-space) ([?\S- ] . ethio-insert-ethio-space)
([?\C-'] . ethio-gemination) ([?\C-'] . ethio-gemination)

View file

@ -30,12 +30,13 @@
(defun setup-japanese-environment () (defun setup-japanese-environment ()
"Setup multilingual environment (MULE) for Japanese." "Setup multilingual environment (MULE) for Japanese."
(interactive) (interactive)
(setup-english-environment) (set-language-environment "Japanese"))
(set-language-environment-coding-systems "Japanese")
;;;###autoload
(defun setup-japanese-environment-internal ()
(if (eq system-type 'ms-dos) (if (eq system-type 'ms-dos)
(prefer-coding-system 'japanese-shift-jis)) (prefer-coding-system 'japanese-shift-jis)
(setq default-file-name-coding-system 'japanese-iso-8bit) (setq default-file-name-coding-system 'japanese-iso-8bit))
(setq default-input-method "japanese")
(setq sentence-end-save sentence-end) (setq sentence-end-save sentence-end)
(setq sentence-end (concat sentence-end "\\|[$B!#!)!*(B]"))) (setq sentence-end (concat sentence-end "\\|[$B!#!)!*(B]")))

View file

@ -90,11 +90,10 @@
(defun setup-korean-environment () (defun setup-korean-environment ()
"Setup multilingual environment (MULE) for Korean." "Setup multilingual environment (MULE) for Korean."
(interactive) (interactive)
(setup-english-environment) (set-language-environment "Korean"))
(set-language-environment-coding-systems "Korean")
(setq default-input-method "korean-hangul")
;;;###autoload
(defun setup-korean-environment-internal ()
(let ((key-bindings korean-key-bindings)) (let ((key-bindings korean-key-bindings))
(while key-bindings (while key-bindings
(let* ((this (car key-bindings)) (let* ((this (car key-bindings))

View file

@ -28,7 +28,7 @@
(defun setup-lao-environment () (defun setup-lao-environment ()
"Setup multilingual environment (MULE) for Lao." "Setup multilingual environment (MULE) for Lao."
(interactive) (interactive)
(setup-8-bit-environment "Lao" 'lao "lao")) (set-language-environment "Lao"))
(let ((l '((?(1!(B consonant "LETTER KOR KAI'" "CHICKEN") (let ((l '((?(1!(B consonant "LETTER KOR KAI'" "CHICKEN")
(?(1"(B consonant "LETTER KHOR KHAI'" "EGG") (?(1"(B consonant "LETTER KHOR KHAI'" "EGG")

View file

@ -28,7 +28,7 @@
(defun setup-thai-environment () (defun setup-thai-environment ()
"Setup multilingual environment (MULE) for Thai." "Setup multilingual environment (MULE) for Thai."
(interactive) (interactive)
(setup-8-bit-environment "Thai" 'thai-tis620 "thai-kesmanee")) (set-language-environment "Thai"))
;; Setting information of Thai characters. ;; Setting information of Thai characters.

View file

@ -35,9 +35,7 @@
;;;###autoload ;;;###autoload
(defun setup-tibetan-environment () (defun setup-tibetan-environment ()
(interactive) (interactive)
(setup-english-environment) (set-language-environment "Tibetan"))
(set-language-environment-coding-systems "Tibetan")
(setq default-input-method "tibetan-wylie"))
;;; This function makes a transcription string for ;;; This function makes a transcription string for
;;; re-composing a character. ;;; re-composing a character.
@ -106,7 +104,7 @@
;;; ;;;
;;; Here are examples of the words "bsgrubs" and "h'uM" ;;; Here are examples of the words "bsgrubs" and "h'uM"
;;; ;;;
;;; $(7"72%q`"U1"7"G(B 2$(7"H`#A`"U0"_1(B ;;; $(7"7(B2$(7%q`"U(B1$(7"7"G(B 2$(7"H`#A`"U0"_(B1
;;; ;;;
;;; M ;;; M
;;; b s b s h ;;; b s b s h

View file

@ -45,7 +45,7 @@
(defun setup-vietnamese-environment () (defun setup-vietnamese-environment ()
"Setup multilingual environment (MULE) for Vietnamese VISCII users." "Setup multilingual environment (MULE) for Vietnamese VISCII users."
(interactive) (interactive)
(setup-8-bit-environment "Vietnamese" nil "vietnamese-viqr")) (set-language-environment "Vietnamese"))
;; VIQR is a menmonic encoding specification for Vietnamese. ;; VIQR is a menmonic encoding specification for Vietnamese.
;; It represents diacritical marks by ASCII characters as follows: ;; It represents diacritical marks by ASCII characters as follows: