diff options
| author | Richard M. Stallman | 1998-07-09 04:53:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-09 04:53:28 +0000 |
| commit | 16b2eb50164ab81982e0bf9e86342953d0ae3e3f (patch) | |
| tree | 6e7356a2cfd958161c40251d937510569235ce94 | |
| parent | 52d1110dca4467773c37693467c666e838836799 (diff) | |
| download | emacs-16b2eb50164ab81982e0bf9e86342953d0ae3e3f.tar.gz emacs-16b2eb50164ab81982e0bf9e86342953d0ae3e3f.zip | |
Define unibyte-syntax in each of these language environments.
(setup-8-bit-environment): Let unibyte-syntax specify whether to
load a file of syntax settings, and which one.
| -rw-r--r-- | lisp/language/european.el | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index 06c9a8de967..98c5ad377e9 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -44,18 +44,17 @@ | |||
| 44 | (if input-method | 44 | (if input-method |
| 45 | (setq default-input-method input-method))) | 45 | (setq default-input-method input-method))) |
| 46 | 46 | ||
| 47 | ;; If this is a Latin-N character set, set up syntax for it in | 47 | ;; If this language environment supports unibyte operation, |
| 48 | ;; single-byte mode. We can't use require because the file | 48 | ;; load the proper syntax definitions for codes 0240-0377. |
| 49 | ;; must be eval'd each time in case we change from one Latin-N to another. | 49 | (when (get-language-info language 'unibyte-syntax) |
| 50 | (if (string-match "^Latin-\\([1-9]\\)$" language) | 50 | (let ((set-case-syntax-set-multibyte nil)) |
| 51 | (let ((set-case-syntax-set-multibyte nil)) | 51 | (load (get-language-info language 'unibyte-syntax) nil t) |
| 52 | (load (downcase language) nil t) | 52 | (set-standard-case-table (standard-case-table)) |
| 53 | (set-standard-case-table (standard-case-table)) | 53 | (let ((list (buffer-list))) |
| 54 | (let ((list (buffer-list))) | 54 | (while list |
| 55 | (while list | 55 | (with-current-buffer (car list) |
| 56 | (with-current-buffer (car list) | 56 | (set-case-table (standard-case-table))) |
| 57 | (set-case-table (standard-case-table))) | 57 | (setq list (cdr list))))))) |
| 58 | (setq list (cdr list))))))) | ||
| 59 | 58 | ||
| 60 | ;; Latin-1 (ISO-8859-1) | 59 | ;; Latin-1 (ISO-8859-1) |
| 61 | 60 | ||
| @@ -89,6 +88,7 @@ | |||
| 89 | (charset ascii latin-iso8859-1) | 88 | (charset ascii latin-iso8859-1) |
| 90 | (coding-system iso-latin-1) | 89 | (coding-system iso-latin-1) |
| 91 | (coding-priority iso-latin-1) | 90 | (coding-priority iso-latin-1) |
| 91 | (unibyte-syntax . "latin-1") | ||
| 92 | (sample-text | 92 | (sample-text |
| 93 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") | 93 | . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
| 94 | (documentation . "\ | 94 | (documentation . "\ |
| @@ -121,6 +121,7 @@ These languages are supported with the Latin-1 (ISO-8859-1) character set: | |||
| 121 | (charset ascii latin-iso8859-2) | 121 | (charset ascii latin-iso8859-2) |
| 122 | (coding-system iso-latin-2) | 122 | (coding-system iso-latin-2) |
| 123 | (coding-priority iso-latin-2) | 123 | (coding-priority iso-latin-2) |
| 124 | (unibyte-syntax . "latin-2") | ||
| 124 | (documentation . "\ | 125 | (documentation . "\ |
| 125 | These languages are supported with the Latin-2 (ISO-8859-2) character set: | 126 | These languages are supported with the Latin-2 (ISO-8859-2) character set: |
| 126 | Albanian, Czech, English, German, Hungarian, Polish, Romanian, | 127 | Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
| @@ -152,6 +153,7 @@ These languages are supported with the Latin-2 (ISO-8859-2) character set: | |||
| 152 | (charset ascii latin-iso8859-3) | 153 | (charset ascii latin-iso8859-3) |
| 153 | (coding-system iso-latin-3) | 154 | (coding-system iso-latin-3) |
| 154 | (coding-priority iso-latin-3) | 155 | (coding-priority iso-latin-3) |
| 156 | (unibyte-syntax . "latin-3") | ||
| 155 | (documentation . "\ | 157 | (documentation . "\ |
| 156 | These languages are supported with the Latin-3 (ISO-8859-3) character set: | 158 | These languages are supported with the Latin-3 (ISO-8859-3) character set: |
| 157 | Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, | 159 | Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, |
| @@ -182,6 +184,7 @@ These languages are supported with the Latin-3 (ISO-8859-3) character set: | |||
| 182 | (charset ascii latin-iso8859-4) | 184 | (charset ascii latin-iso8859-4) |
| 183 | (coding-system iso-8859-4) | 185 | (coding-system iso-8859-4) |
| 184 | (coding-priority iso-8859-4) | 186 | (coding-priority iso-8859-4) |
| 187 | (unibyte-syntax . "latin-4") | ||
| 185 | (documentation . "\ | 188 | (documentation . "\ |
| 186 | These languages are supported with the Latin-4 (ISO-8859-4) character set: | 189 | These languages are supported with the Latin-4 (ISO-8859-4) character set: |
| 187 | Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, | 190 | Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, |
| @@ -212,6 +215,7 @@ These languages are supported with the Latin-4 (ISO-8859-4) character set: | |||
| 212 | (charset ascii latin-iso8859-9) | 215 | (charset ascii latin-iso8859-9) |
| 213 | (coding-system iso-latin-5) | 216 | (coding-system iso-latin-5) |
| 214 | (coding-priority iso-latin-5) | 217 | (coding-priority iso-latin-5) |
| 218 | (unibyte-syntax . "latin-5") | ||
| 215 | (documentation . "\ | 219 | (documentation . "\ |
| 216 | These languages are supported with the Latin-5 (ISO-8859-9) character set.")) | 220 | These languages are supported with the Latin-5 (ISO-8859-9) character set.")) |
| 217 | '("European")) | 221 | '("European")) |
| @@ -229,6 +233,7 @@ These languages are supported with the Latin-5 (ISO-8859-9) character set.")) | |||
| 229 | (charset ascii latin-iso8859-1) | 233 | (charset ascii latin-iso8859-1) |
| 230 | (coding-system iso-latin-1) | 234 | (coding-system iso-latin-1) |
| 231 | (coding-priority iso-latin-1) | 235 | (coding-priority iso-latin-1) |
| 236 | (unibyte-syntax . "latin-1") | ||
| 232 | (sample-text . "\ | 237 | (sample-text . "\ |
| 233 | German (Deutsch Nord) Guten Tag | 238 | German (Deutsch Nord) Guten Tag |
| 234 | German (Deutsch S,A|(Bd) Gr,A|_(B Gott") | 239 | German (Deutsch S,A|(Bd) Gr,A|_(B Gott") |