aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-02-21 13:11:04 +0000
committerStefan Monnier2005-02-21 13:11:04 +0000
commit2c75eddf9df7d811724439c8e0585a07d22382a2 (patch)
tree0e05f05b596ff4a84ea234bdbbb74c730f26dfc5
parent002dc23966fa58f46a9f6274c365563f56d7eaae (diff)
downloademacs-2c75eddf9df7d811724439c8e0585a07d22382a2.tar.gz
emacs-2c75eddf9df7d811724439c8e0585a07d22382a2.zip
(function-key-map): Use char-names more consistently.
(file-name-coding-system): Only set it for MacOS-9. The other case is already handled in mule-cmds.el (where it also works when mac-win.el is not used).
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/term/mac-win.el26
2 files changed, 20 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b2113b8d0f4..68c6248c6fb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12005-02-21 Stefan <monnier@iro.umontreal.ca>
2
3 * term/mac-win.el (function-key-map): Use char-names more consistently.
4 (file-name-coding-system): Only set it for MacOS-9. The other case is
5 already handled in mule-cmds.el (where it also works when mac-win.el
6 is not used).
7
12005-02-21 Kenichi Handa <handa@m17n.org> 82005-02-21 Kenichi Handa <handa@m17n.org>
2 9
3 * international/mule.el (ctext-pre-write-conversion): Always use 10 * international/mule.el (ctext-pre-write-conversion): Always use
@@ -11,7 +18,7 @@
11 18
122005-02-20 Jonathan Yavner <jyavner@member.fsf.org> 192005-02-20 Jonathan Yavner <jyavner@member.fsf.org>
13 20
14 * ses.el (undo-more): restore defadvice, but only the part that 21 * ses.el (undo-more): Restore defadvice, but only the part that
15 allows changes outside the restricted area of the buffer. 22 allows changes outside the restricted area of the buffer.
16 23
172005-02-20 Kim F. Storm <storm@cua.dk> 242005-02-20 Kim F. Storm <storm@cua.dk>
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index a7ded41103e..d43264f275e 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1,6 +1,7 @@
1;;; mac-win.el --- parse switches controlling interface with Mac window system 1;;; mac-win.el --- parse switches controlling interface with Mac window system
2 2
3;; Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. 3;; Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005
4;; Free Software Foundation, Inc.
4 5
5;; Author: Andrew Choi <akochoi@mac.com> 6;; Author: Andrew Choi <akochoi@mac.com>
6;; Keywords: terminals 7;; Keywords: terminals
@@ -1013,16 +1014,16 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1013(define-key function-key-map [M-return] [?\M-\C-m]) 1014(define-key function-key-map [M-return] [?\M-\C-m])
1014(define-key function-key-map [tab] [?\t]) 1015(define-key function-key-map [tab] [?\t])
1015(define-key function-key-map [M-tab] [?\M-\t]) 1016(define-key function-key-map [M-tab] [?\M-\t])
1016(define-key function-key-map [backspace] [127]) 1017(define-key function-key-map [backspace] [?\d])
1017(define-key function-key-map [M-backspace] [?\M-\d]) 1018(define-key function-key-map [M-backspace] [?\M-\d])
1018(define-key function-key-map [escape] [?\e]) 1019(define-key function-key-map [escape] [?\e])
1019(define-key function-key-map [M-escape] [?\M-\e]) 1020(define-key function-key-map [M-escape] [?\M-\e])
1020 1021
1021;; These tell read-char how to convert 1022;; These tell read-char how to convert
1022;; these special chars to ASCII. 1023;; these special chars to ASCII.
1023(put 'return 'ascii-character 13) 1024(put 'return 'ascii-character ?\C-m)
1024(put 'tab 'ascii-character ?\t) 1025(put 'tab 'ascii-character ?\t)
1025(put 'backspace 'ascii-character 127) 1026(put 'backspace 'ascii-character ?\d)
1026(put 'escape 'ascii-character ?\e) 1027(put 'escape 'ascii-character ?\e)
1027 1028
1028 1029
@@ -1667,7 +1668,7 @@ Switch to a buffer editing the last file dropped."
1667 1668
1668(unless (eq system-type 'darwin) 1669(unless (eq system-type 'darwin)
1669 ;; This variable specifies the Unix program to call (as a process) to 1670 ;; This variable specifies the Unix program to call (as a process) to
1670 ;; deteremine the amount of free space on a file system (defaults to 1671 ;; determine the amount of free space on a file system (defaults to
1671 ;; df). If it is not set to nil, ls-lisp will not work correctly 1672 ;; df). If it is not set to nil, ls-lisp will not work correctly
1672 ;; unless an external application df is implemented on the Mac. 1673 ;; unless an external application df is implemented on the Mac.
1673 (setq directory-free-space-program nil) 1674 (setq directory-free-space-program nil)
@@ -1675,20 +1676,17 @@ Switch to a buffer editing the last file dropped."
1675 ;; Set this so that Emacs calls subprocesses with "sh" as shell to 1676 ;; Set this so that Emacs calls subprocesses with "sh" as shell to
1676 ;; expand filenames Note no subprocess for the shell is actually 1677 ;; expand filenames Note no subprocess for the shell is actually
1677 ;; started (see run_mac_command in sysdep.c). 1678 ;; started (see run_mac_command in sysdep.c).
1678 (setq shell-file-name "sh")) 1679 (setq shell-file-name "sh")
1680
1681 ;; To display filenames in Chinese or Japanese, replace mac-roman with
1682 ;; big5 or sjis
1683 (setq file-name-coding-system 'mac-roman))
1679 1684
1680;; X Window emulation in macterm.c is not complete enough to start a 1685;; X Window emulation in macterm.c is not complete enough to start a
1681;; frame without a minibuffer properly. Call this to tell ediff 1686;; frame without a minibuffer properly. Call this to tell ediff
1682;; library to use a single frame. 1687;; library to use a single frame.
1683; (ediff-toggle-multiframe) 1688; (ediff-toggle-multiframe)
1684 1689
1685(if (eq system-type 'darwin)
1686 ;; On Darwin filenames are encoded in UTF-8
1687 (setq file-name-coding-system 'utf-8)
1688 ;; To display filenames in Chinese or Japanese, replace mac-roman with
1689 ;; big5 or sjis
1690 (setq file-name-coding-system 'mac-roman))
1691
1692;; If Emacs is started from the Finder, change the default directory 1690;; If Emacs is started from the Finder, change the default directory
1693;; to the user's home directory. 1691;; to the user's home directory.
1694(if (string= default-directory "/") 1692(if (string= default-directory "/")
@@ -1706,5 +1704,5 @@ Switch to a buffer editing the last file dropped."
1706 1704
1707;; (prefer-coding-system 'mac-roman) 1705;; (prefer-coding-system 'mac-roman)
1708 1706
1709;;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6 1707;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6
1710;;; mac-win.el ends here 1708;;; mac-win.el ends here