Mercurial > emacs
annotate lisp/language/english.el @ 18092:8428d56cd207
(smtpmail-via-smtp): Recognize XVRB as a synonym for
VERB and XONE as a synonym for ONEX.
(smtpmail-read-response): Add "%s" to `message' calls to avoid
problems with percent signs in strings.
(smtpmail-read-response): Return all lines of the
response text as a list of strings. Formerly only the first line
was returned. This is insufficient when one wants to parse
e.g. an EHLO response.
Ignore responses starting with "0". This is necessary to support
the VERB SMTP extension.
(smtpmail-via-smtp): Try EHLO and find out which SMTP service
extensions the receiving mailer supports.
Issue the ONEX and XUSR commands if the corresponding extensions
are supported.
Issue VERB if supported and `smtpmail-debug-info' is non-nil.
Add SIZE attribute to MAIL FROM: command if SIZE extension is
supported.
Add code that could set the BODY= attribute to MAIL FROM: if the
receiving mailer supports 8BITMIME. This is currently disabled,
since doing it right might involve adding MIME headers to, and in
some cases reencoding, the message.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 01 Jun 1997 22:24:22 +0000 |
parents | 28d45a11ac18 |
children | 723b3b1516b6 |
rev | line source |
---|---|
17301 | 1 ;;; english.el --- English support |
2 | |
3 ;; Copyright (C) 1997 Free Software Foundation, Inc. | |
4 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
5 | |
6 ;; Keywords: multibyte character, character set, syntax, category | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
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. | |
14 | |
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. | |
19 | |
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. | |
24 | |
25 ;;; Commentary: | |
26 | |
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. | |
30 | |
31 ;;; Code | |
32 | |
33 (defun setup-english-environment () | |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
34 "Reset multilingual environment of Emacs to the default status. |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
35 The default status is as follows. |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
36 |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
37 The default value of enable-multibyte-characters is t. |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
38 |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
39 The default value of buffer-file-coding-system is nil. |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
40 The coding system for terminal output is nil. |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
41 The coding system for keyboard input is nil. |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
42 |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
43 The order of priorities of coding categories and the coding system |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
44 bound to each category are as follows |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
45 coding category coding system |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
46 -------------------------------------------------- |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
47 coding-category-iso-7 iso-2022-7 |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
48 coding-category-iso-8-2 iso-8859-1 |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
49 coding-category-iso-8-1 iso-8859-1 |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
50 coding-category-iso-else iso-2022-lock |
17841
084d922fcd78
Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents:
17767
diff
changeset
|
51 coding-category-emacs-mule emacs-mule |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
52 coding-category-binary no-conversion |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
53 coding-category-sjis sjis |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
54 coding-category-big5 big5 |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
55 " |
17301 | 56 (interactive) |
57 (setq-default enable-multibyte-characters t) | |
58 | |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
59 (setq coding-category-iso-7 'iso-2022-7 |
17301 | 60 coding-category-iso-8-1 'iso-8859-1 |
61 coding-category-iso-8-2 'iso-8859-1 | |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
62 coding-category-iso-else 'iso-2022-lock |
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
63 coding-category-emacs-mule 'emacs-mule |
17301 | 64 coding-category-sjis 'sjis |
65 coding-category-big5 'big5 | |
66 coding-category-binary 'no-conversion) | |
67 | |
68 (set-coding-priority | |
69 '(coding-category-iso-7 | |
70 coding-category-iso-8-2 | |
71 coding-category-iso-8-1 | |
72 coding-category-iso-else | |
17841
084d922fcd78
Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents:
17767
diff
changeset
|
73 coding-category-emacs-mule |
17301 | 74 coding-category-sjis |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
75 coding-category-big5 |
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
76 coding-category-binary)) |
17301 | 77 |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
78 (setq-default buffer-file-coding-system nil) |
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
79 (set-terminal-coding-system-internal nil) |
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
80 (set-keyboard-coding-system-internal nil) |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
81 |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
82 (setq sendmail-coding-system nil |
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
83 rmail-file-coding-system nil) |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
84 |
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
85 (setq nonascii-insert-offset 0) |
17301 | 86 ) |
87 | |
88 (set-language-info-alist | |
89 "English" '((setup-function . setup-english-environment) | |
90 (tutorial . "TUTORIAL") | |
91 (charset . (ascii)) | |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
92 (sample-text . "Hello!, Hi!, How are you?") |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
93 (documentation . "\ |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
94 There's nothing special you should care to handle English in Emacs. |
17994
28d45a11ac18
(setup-english-environment): Set several
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
95 You can use English both with enable-multibyte-characters t and nil.") |
17767
d93b9414ff2b
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17301
diff
changeset
|
96 )) |
17301 | 97 |
98 (register-input-method "English" | |
99 '("quail-dvorak" quail-use-package "quail/latin")) | |
100 | |
101 ;;; english.el ends here |