aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-04-14 09:28:21 +0000
committerYAMAMOTO Mitsuharu2005-04-14 09:28:21 +0000
commit9bf2510aa5b8fa64155f9e8d8c7f98d4ba2080cb (patch)
treee736bbf68d684b1288a07289fcff153e891d7391
parent0ed0babf887d4c5faa90a6e9d2656421b23725ef (diff)
downloademacs-9bf2510aa5b8fa64155f9e8d8c7f98d4ba2080cb.tar.gz
emacs-9bf2510aa5b8fa64155f9e8d8c7f98d4ba2080cb.zip
Don't set file-name-coding-system. Decode variables system-name,
emacs-build-system, user-login-name, and user-full-name by mac-system-coding-system on Mac OS Classic. (mac-system-coding-system): New variable.
-rw-r--r--lisp/term/mac-win.el26
1 files changed, 15 insertions, 11 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index ca2a5707af9..d5fd541c727 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1085,7 +1085,7 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1085(put 'escape 'ascii-character ?\e) 1085(put 'escape 'ascii-character ?\e)
1086 1086
1087 1087
1088;;;; Keyboard layout/language change events 1088;;;; Script codes and coding systems
1089(defconst mac-script-code-coding-systems 1089(defconst mac-script-code-coding-systems
1090 '((0 . mac-roman) ; smRoman 1090 '((0 . mac-roman) ; smRoman
1091 (1 . japanese-shift-jis) ; smJapanese 1091 (1 . japanese-shift-jis) ; smJapanese
@@ -1097,6 +1097,15 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1097 ) 1097 )
1098 "Alist of Mac script codes vs Emacs coding systems.") 1098 "Alist of Mac script codes vs Emacs coding systems.")
1099 1099
1100(defconst mac-system-coding-system
1101 (let ((base (or (cdr (assq mac-system-script-code
1102 mac-script-code-coding-systems))
1103 'mac-roman)))
1104 (if (eq system-type 'darwin)
1105 base
1106 (coding-system-change-eol-conversion base 'mac)))
1107 "Coding system derived from the system script code.")
1108
1100;;;; Keyboard layout/language change events 1109;;;; Keyboard layout/language change events
1101(defun mac-handle-language-change (event) 1110(defun mac-handle-language-change (event)
1102 (interactive "e") 1111 (interactive "e")
@@ -1739,14 +1748,11 @@ Switch to a buffer editing the last file dropped."
1739 ;; started (see run_mac_command in sysdep.c). 1748 ;; started (see run_mac_command in sysdep.c).
1740 (setq shell-file-name "sh") 1749 (setq shell-file-name "sh")
1741 1750
1742 ;; To display filenames in Chinese or Japanese, replace mac-roman with 1751 ;; Some system variables are encoded with the system script code.
1743 ;; big5 or sjis 1752 (dolist (v '(system-name
1744 (setq file-name-coding-system 'mac-roman)) 1753 emacs-build-system ; Mac OS 9 version cannot dump
1745 1754 user-login-name user-real-login-name user-full-name))
1746;; X Window emulation in macterm.c is not complete enough to start a 1755 (set v (decode-coding-string (symbol-value v) mac-system-coding-system))))
1747;; frame without a minibuffer properly. Call this to tell ediff
1748;; library to use a single frame.
1749; (ediff-toggle-multiframe)
1750 1756
1751;; If Emacs is started from the Finder, change the default directory 1757;; If Emacs is started from the Finder, change the default directory
1752;; to the user's home directory. 1758;; to the user's home directory.
@@ -1763,7 +1769,5 @@ Switch to a buffer editing the last file dropped."
1763;; or bold bitmap versions will not display these variants correctly. 1769;; or bold bitmap versions will not display these variants correctly.
1764(setq scalable-fonts-allowed t) 1770(setq scalable-fonts-allowed t)
1765 1771
1766;; (prefer-coding-system 'mac-roman)
1767
1768;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6 1772;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6
1769;;; mac-win.el ends here 1773;;; mac-win.el ends here