From: Kenichi Handa Date: Wed, 2 Jul 1997 12:58:23 +0000 (+0000) Subject: (setup-8-bit-environment): New argument X-Git-Tag: emacs-20.1~1403 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=740cfcfdb3fbdb34958a8556435e7f19526818da;p=emacs.git (setup-8-bit-environment): New argument LANGUAGE. (setup-latin1-environment): Adjusted for the above change. (setup-latin2-environment): Likewise. (setup-latin3-environment): Likewise. (setup-latin4-environment): Likewise. (setup-latin5-environment): Likewise. --- diff --git a/lisp/language/european.el b/lisp/language/european.el index 826b1006da7..f99d9729378 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el @@ -38,9 +38,9 @@ '("European" . setup-european-environment-map) t) -;; Setup for a langauge which uses one-byte 8-bit CHARSET, one-byte +;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte ;; 8-bit CODING-SYSTEM, and INPUT-METHOD. -(defun setup-8-bit-environment (charset coding-system input-method) +(defun setup-8-bit-environment (language charset coding-system input-method) (setup-english-environment) (setq-default buffer-file-coding-system coding-system) (setq coding-category-iso-8-1 coding-system @@ -57,13 +57,12 @@ (setq nonascii-insert-offset nonascii-offset))) (if input-method - (let ((latin-name (car input-method))) - (setq default-input-method input-method) - ;; If this is a Latin-N character set, set up syntax for it - ;; in single-byte mode. - (when (and latin-name - (string-match "^Latin-\\([1-9]\\)$" latin-name)) - (load (downcase latin-name)))))) + (setq default-input-method input-method)) + + ;; If this is a Latin-N character set, set up syntax for it in + ;; single-byte mode. + (if (string-match "^Latin-\\([1-9]\\)$" language) + (load (downcase language)))) ;; Latin-1 (ISO-8859-1) @@ -79,8 +78,8 @@ (defun setup-latin1-environment () "Set up multilingual environment (MULE) for European Latin-1 users." (interactive) - (setup-8-bit-environment 'latin-iso8859-1 'iso-latin-1 - '("Latin-1" . "quail-latin-1"))) + (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 'iso-latin-1 + "latin-1-prefix")) (set-language-info-alist "Latin-1" '((setup-function . (setup-latin1-environment @@ -109,8 +108,8 @@ These languages are supported with the Latin-1 (ISO-8859-1) character set: (defun setup-latin2-environment () "Set up multilingual environment (MULE) for European Latin-2 users." (interactive) - (setup-8-bit-environment 'latin-iso8859-2 'iso-latin-2 - '("Latin-2" . "quail-latin-2"))) + (setup-8-bit-environment "Latin-2" 'latin-iso8859-2 'iso-latin-2 + "latin-2-prefix")) (set-language-info-alist "Latin-2" '((setup-function . (setup-latin2-environment @@ -137,8 +136,8 @@ These languages are supported with the Latin-2 (ISO-8859-2) character set: (defun setup-latin3-environment () "Set up multilingual environment (MULE) for European Latin-3 users." (interactive) - (setup-8-bit-environment 'latin-iso8859-3 'iso-latin-3 - '("Latin-3" . "quail-latin-3"))) + (setup-8-bit-environment "Latin-3" 'latin-iso8859-3 'iso-latin-3 + "latin-3-prefix")) (set-language-info-alist "Latin-3" '((setup-function . (setup-latin3-environment @@ -165,8 +164,8 @@ These languages are supported with the Latin-3 (ISO-8859-3) character set: (defun setup-latin4-environment () "Set up multilingual environment (MULE) for European Latin-4 users." (interactive) - (setup-8-bit-environment 'latin-iso8859-4 'iso-latin-4 - '("Latin-4" . "quail-latin-4"))) + (setup-8-bit-environment "Latin-4" 'latin-iso8859-4 'iso-latin-4 + "latin-4-prefix")) (set-language-info-alist "Latin-4" '((setup-function . (setup-latin4-environment @@ -193,8 +192,8 @@ These languages are supported with the Latin-4 (ISO-8859-4) character set: (defun setup-latin5-environment () "Set up multilingual environment (MULE) for European Latin-5 users." (interactive) - (setup-8-bit-environment 'latin-iso8859-9 'iso-latin-5 - '("Latin-5" . "quail-latin-5"))) + (setup-8-bit-environment "Latin-5" 'latin-iso8859-9 'iso-latin-5 + "latin-5-prefix")) (set-language-info-alist "Latin-5" '((setup-function . (setup-latin5-environment