aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-01 16:18:59 +0000
committerEli Zaretskii2008-10-01 16:18:59 +0000
commit970c93912747b36cecfa7586ea2d08755061e534 (patch)
treee95d09753403a965eeda532d4cef4f895a35468c
parent819ab95f726e46dfec4718de9185b288eb7fa8c6 (diff)
downloademacs-970c93912747b36cecfa7586ea2d08755061e534.tar.gz
emacs-970c93912747b36cecfa7586ea2d08755061e534.zip
(set-language-environment-nonascii-translation): Fix nonascii value for
`pc' ``window-system''. (set-display-table-and-terminal-coding-system, set-default-coding-systems): Don't special-case `pc'.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/international/mule-cmds.el13
2 files changed, 12 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 54d2634ced3..4c5fbe99dcd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12008-10-01 Eli Zaretskii <eliz@gnu.org>
2
3 * international/mule-cmds.el
4 (set-language-environment-nonascii-translation): Fix nonascii
5 value for `pc' ``window-system''.
6 (set-display-table-and-terminal-coding-system)
7 (set-default-coding-systems): Don't special-case `pc'.
8
12008-10-01 Glenn Morris <rgm@gnu.org> 92008-10-01 Glenn Morris <rgm@gnu.org>
2 10
3 * filesets.el (filesets-menu-name): Fix type. 11 * filesets.el (filesets-menu-name): Fix type.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index a5312599b31..72b7e049b88 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -344,10 +344,7 @@ This also sets the following values:
344 (or (not coding-system) 344 (or (not coding-system)
345 (coding-system-get coding-system 'ascii-compatible-p))) 345 (coding-system-get coding-system 'ascii-compatible-p)))
346 (setq default-file-name-coding-system coding-system))) 346 (setq default-file-name-coding-system coding-system)))
347 ;; If coding-system is nil, honor that on MS-DOS as well, so 347 (setq default-terminal-coding-system coding-system)
348 ;; that they could reset the terminal coding system.
349 (unless (and (eq window-system 'pc) coding-system)
350 (setq default-terminal-coding-system coding-system))
351 (setq default-keyboard-coding-system coding-system) 348 (setq default-keyboard-coding-system coding-system)
352 ;; Preserve eol-type from existing default-process-coding-systems. 349 ;; Preserve eol-type from existing default-process-coding-systems.
353 ;; On non-unix-like systems in particular, these may have been set 350 ;; On non-unix-like systems in particular, these may have been set
@@ -1789,13 +1786,11 @@ The default status is as follows:
1789 ;; The following 2 lines undo the 8-bit display that we set up 1786 ;; The following 2 lines undo the 8-bit display that we set up
1790 ;; in standard-display-european-internal, which see. This is in 1787 ;; in standard-display-european-internal, which see. This is in
1791 ;; case the user has used standard-display-european earlier in 1788 ;; case the user has used standard-display-european earlier in
1792 ;; this session. (The MS-DOS port doesn't use that setup, so it 1789 ;; this session.
1793 ;; doesn't need to undo it.)
1794 (when standard-display-table 1790 (when standard-display-table
1795 (dotimes (i 128) 1791 (dotimes (i 128)
1796 (aset standard-display-table (+ i 128) nil)))) 1792 (aset standard-display-table (+ i 128) nil))))
1797 (or (eq window-system 'pc) 1793 (set-terminal-coding-system (or coding-system coding) display)))
1798 (set-terminal-coding-system (or coding-system coding) display))))
1799 1794
1800(defun set-language-environment (language-name) 1795(defun set-language-environment (language-name)
1801 "Set up multi-lingual environment for using LANGUAGE-NAME. 1796 "Set up multi-lingual environment for using LANGUAGE-NAME.
@@ -1967,7 +1962,7 @@ Setting this variable directly does not take effect. See
1967 ;; defined. 1962 ;; defined.
1968 (let ((nonascii (get-language-info language-name 'nonascii-translation))) 1963 (let ((nonascii (get-language-info language-name 'nonascii-translation)))
1969 (if (eq window-system 'pc) 1964 (if (eq window-system 'pc)
1970 (setq nonascii (intern "cp%d" dos-codepage))) 1965 (setq nonascii (intern (format "cp%d" dos-codepage))))
1971 (or (and (charsetp nonascii) 1966 (or (and (charsetp nonascii)
1972 (get-charset-property nonascii :ascii-compatible-p)) 1967 (get-charset-property nonascii :ascii-compatible-p))
1973 (setq nonascii 'iso-8859-1)) 1968 (setq nonascii 'iso-8859-1))