(setup-english-environment): Don't set
[emacs.git] / lisp / language / english.el
blob18812ffa2eba55696baa7f3724a05d1aeab6e644
1 ;;; english.el --- English support
3 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
6 ;; Keywords: multibyte character, character set, syntax, category
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
25 ;;; Commentary:
27 ;; We need nothing special to support English on Emacs. Selecting
28 ;; English as a language environment is one of the ways to reset
29 ;; various multilingual environment to the original settting.
31 ;;; Code
33 (defun setup-english-environment ()
34 "Reset multilingual environment of Emacs to the default status.
35 The default status is as follows.
37 The default value of enable-multibyte-characters is t.
39 The default value of buffer-file-coding-system is nil.
40 The coding system for terminal output is nil.
41 The coding system for keyboard input is nil.
43 The order of priorities of coding categories and the coding system
44 bound to each category are as follows
45 coding category coding system
46 --------------------------------------------------
47 coding-category-iso-7 iso-2022-7bit
48 coding-category-iso-8-1 iso-latin-1
49 coding-category-iso-8-2 iso-latin-1
50 coding-category-iso-7-else iso-2022-7bit-lock
51 coding-category-iso-8-else iso-2022-8bit-ss2
52 coding-category-emacs-mule emacs-mule
53 coding-category-raw-text raw-text
54 coding-category-sjis japanese-shift-jis
55 coding-category-big5 chinese-big5
56 coding-category-binarry no-conversion
58 (interactive)
59 (setq-default enable-multibyte-characters t)
61 (setq coding-category-iso-7 'iso-2022-7bit
62 coding-category-iso-8-1 'iso-latin-1
63 coding-category-iso-8-2 'iso-latin-1
64 coding-category-iso-7-else 'iso-2022-7bit-lock
65 coding-category-iso-8-else 'iso-2022-8bit-ss2
66 coding-category-emacs-mule 'emacs-mule
67 coding-category-raw-text 'raw-text
68 coding-category-sjis 'japanese-shift-jis
69 coding-category-big5 'chinese-big5
70 coding-category-binary 'no-conversion)
72 (set-coding-priority
73 '(coding-category-iso-7
74 coding-category-iso-8-2
75 coding-category-iso-8-1
76 coding-category-iso-7-else
77 coding-category-iso-8-else
78 coding-category-emacs-mule
79 coding-category-raw-text
80 coding-category-sjis
81 coding-category-big5
82 coding-category-binary))
84 (set-default-coding-systems nil)
85 ;; Don't alter the terminal and keyboard coding systems here.
86 ;; The terminal still supports the same coding system
87 ;; that it supported a minute ago.
88 ;;; (set-terminal-coding-system-internal nil)
89 ;;; (set-keyboard-coding-system-internal nil)
91 (setq nonascii-insert-offset 0))
93 (set-language-info-alist
94 "English" '((setup-function . setup-english-environment)
95 (tutorial . "TUTORIAL")
96 (charset . (ascii))
97 (sample-text . "Hello!, Hi!, How are you?")
98 (documentation . "\
99 Nothing special is needed to handle English.")
102 ;;; english.el ends here