diff options
| author | Karoly Lorentey | 2005-02-23 11:24:05 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-02-23 11:24:05 +0000 |
| commit | e6b2f88783f2c89bedcd2a761c6362fb353dc7a3 (patch) | |
| tree | 1d67d21b81f22dbc2219c9f62ae7b4882bbd9617 /lisp/term | |
| parent | a3ed96394abf826ed794282886c05db599e801df (diff) | |
| parent | dae3211dbdeab1939c610a5138f0f08839bfe3fa (diff) | |
| download | emacs-e6b2f88783f2c89bedcd2a761c6362fb353dc7a3.tar.gz emacs-e6b2f88783f2c89bedcd2a761c6362fb353dc7a3.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 119)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-119
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-299
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/mac-win.el | 26 |
1 files changed, 12 insertions, 14 deletions
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 |