diff options
| author | Kenichi Handa | 2005-10-06 08:11:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2005-10-06 08:11:14 +0000 |
| commit | 01017d922c94a5cd3efe1e5f8160bc28d9031f93 (patch) | |
| tree | 85aa07fc6dcf29771cb2a13c7711f8923ccaed1d | |
| parent | c8d21d09f1bf6c922feb8d81d5d8935107076a8f (diff) | |
| download | emacs-01017d922c94a5cd3efe1e5f8160bc28d9031f93.tar.gz emacs-01017d922c94a5cd3efe1e5f8160bc28d9031f93.zip | |
(set-language-environment): Fix
setting up of case-table for unibyte mode.
| -rw-r--r-- | lisp/international/mule-cmds.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index f1c7a65a5a5..c84a66bcd63 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1867,16 +1867,18 @@ specifies the character set for the major languages of Western Europe." | |||
| 1867 | (load syntax nil t)) | 1867 | (load syntax nil t)) |
| 1868 | ;; No information for syntax and case. Reset to the defaults. | 1868 | ;; No information for syntax and case. Reset to the defaults. |
| 1869 | (let ((syntax-table (standard-syntax-table)) | 1869 | (let ((syntax-table (standard-syntax-table)) |
| 1870 | (case-table (standard-case-table)) | 1870 | (standard-table (standard-case-table)) |
| 1871 | (case-table (make-char-table 'case-table)) | ||
| 1871 | (ch (if (eq window-system 'pc) 128 160))) | 1872 | (ch (if (eq window-system 'pc) 128 160))) |
| 1872 | (while (< ch 256) | 1873 | (while (< ch 256) |
| 1873 | (modify-syntax-entry ch " " syntax-table) | 1874 | (modify-syntax-entry ch " " syntax-table) |
| 1874 | (aset case-table ch ch) | ||
| 1875 | (setq ch (1+ ch))) | 1875 | (setq ch (1+ ch))) |
| 1876 | (dotimes (i 128) | ||
| 1877 | (aset case-table i (aref standard-table i))) | ||
| 1876 | (set-char-table-extra-slot case-table 0 nil) | 1878 | (set-char-table-extra-slot case-table 0 nil) |
| 1877 | (set-char-table-extra-slot case-table 1 nil) | 1879 | (set-char-table-extra-slot case-table 1 nil) |
| 1878 | (set-char-table-extra-slot case-table 2 nil)) | 1880 | (set-char-table-extra-slot case-table 2 nil) |
| 1879 | (set-standard-case-table (standard-case-table)) | 1881 | (set-standard-case-table case-table)) |
| 1880 | (let ((list (buffer-list))) | 1882 | (let ((list (buffer-list))) |
| 1881 | (while list | 1883 | (while list |
| 1882 | (with-current-buffer (car list) | 1884 | (with-current-buffer (car list) |