diff options
| author | Andreas Schwab | 2002-06-29 19:01:46 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2002-06-29 19:01:46 +0000 |
| commit | eb14066a0bee2ec12a20fdfb6c163da69e522cbb (patch) | |
| tree | 743dba6ed959ca4da104dea5b57ecfc115852762 /lisp/term | |
| parent | 637fff820c1346a3aca21738830aed86190d3bda (diff) | |
| download | emacs-eb14066a0bee2ec12a20fdfb6c163da69e522cbb.tar.gz emacs-eb14066a0bee2ec12a20fdfb6c163da69e522cbb.zip | |
Use directory-free-space-program instead of
obsolete variable dired-free-space-program. On Darwin, don't set
directory-free-space-program, shell-file-name and
process-connection-type; set directory-free-space-args to not
include `-P' and use utf-8 for file name coding system.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/mac-win.el | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el index c4030a86879..2465126dbd6 100644 --- a/lisp/term/mac-win.el +++ b/lisp/term/mac-win.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; mac-win.el --- support for "Macintosh windows" | 1 | ;;; mac-win.el --- support for "Macintosh windows" |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999, 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Andrew Choi <akochoi@mac.com> | 5 | ;; Author: Andrew Choi <akochoi@mac.com> |
| 6 | 6 | ||
| @@ -104,18 +104,20 @@ | |||
| 104 | ;; Don't have this yet. | 104 | ;; Don't have this yet. |
| 105 | (fset 'x-get-resource 'ignore) | 105 | (fset 'x-get-resource 'ignore) |
| 106 | 106 | ||
| 107 | ;; This variable specifies the Unix program to call (as a process) to | 107 | (if (eq system-type 'darwin) |
| 108 | ;; deteremine the amount of free space on a file system (defaults to | 108 | ;; df on Darwin does not understand -P |
| 109 | ;; df). If it is not set to nil, ls-lisp will not work correctly | 109 | (setq directory-free-space-args "-k") |
| 110 | ;; unless an external application df is implemented on the Mac. | ||
| 111 | (require 'dired) | ||
| 112 | 110 | ||
| 113 | (setq dired-free-space-program nil) | 111 | ;; This variable specifies the Unix program to call (as a process) to |
| 112 | ;; deteremine the amount of free space on a file system (defaults to | ||
| 113 | ;; df). If it is not set to nil, ls-lisp will not work correctly | ||
| 114 | ;; unless an external application df is implemented on the Mac. | ||
| 115 | (setq directory-free-space-program nil) | ||
| 114 | 116 | ||
| 115 | ;; Set this so that Emacs calls subprocesses with "sh" as shell to | 117 | ;; Set this so that Emacs calls subprocesses with "sh" as shell to |
| 116 | ;; expand filenames Note no subprocess for the shell is actually | 118 | ;; expand filenames Note no subprocess for the shell is actually |
| 117 | ;; started (see run_mac_command in sysdep.c). | 119 | ;; started (see run_mac_command in sysdep.c). |
| 118 | (setq shell-file-name "sh") | 120 | (setq shell-file-name "sh")) |
| 119 | 121 | ||
| 120 | ;; X Window emulation in macterm.c is not complete enough to start a | 122 | ;; X Window emulation in macterm.c is not complete enough to start a |
| 121 | ;; frame without a minibuffer properly. Call this to tell ediff | 123 | ;; frame without a minibuffer properly. Call this to tell ediff |
| @@ -211,19 +213,23 @@ ascii:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman") | |||
| 211 | (set-fontset-font "fontset-mac" key monaco-font)))) | 213 | (set-fontset-font "fontset-mac" key monaco-font)))) |
| 212 | (get 'mac-roman-encoder 'translation-table))))) | 214 | (get 'mac-roman-encoder 'translation-table))))) |
| 213 | 215 | ||
| 214 | ;; To display filenames in Chinese or Japanese, replace mac-roman with | 216 | (if (eq system-type 'darwin) |
| 215 | ;; big5 or sjis | 217 | ;; On Darwin filenames are encoded in UTF-8 |
| 216 | (setq file-name-coding-system 'mac-roman) | 218 | (setq file-name-coding-system 'utf-8) |
| 219 | ;; To display filenames in Chinese or Japanese, replace mac-roman with | ||
| 220 | ;; big5 or sjis | ||
| 221 | (setq file-name-coding-system 'mac-roman)) | ||
| 217 | 222 | ||
| 218 | ;; If Emacs is started from the Finder, change the default directory | 223 | ;; If Emacs is started from the Finder, change the default directory |
| 219 | ;; to the user's home directory. | 224 | ;; to the user's home directory. |
| 220 | (if (string= default-directory "/") | 225 | (if (string= default-directory "/") |
| 221 | (cd "~")) | 226 | (cd "~")) |
| 222 | 227 | ||
| 223 | ;; Tell Emacs to use pipes instead of pty's for processes because the | 228 | (unless (eq system-type 'darwin) |
| 224 | ;; latter sometimes lose characters. Pty support is compiled in since | 229 | ;; Tell Emacs to use pipes instead of pty's for processes because the |
| 225 | ;; ange-ftp will not work without it. | 230 | ;; latter sometimes lose characters. Pty support is compiled in since |
| 226 | (setq process-connection-type nil) | 231 | ;; ange-ftp will not work without it. |
| 232 | (setq process-connection-type nil)) | ||
| 227 | 233 | ||
| 228 | ;; Assume that fonts are always scalable on the Mac. This sometimes | 234 | ;; Assume that fonts are always scalable on the Mac. This sometimes |
| 229 | ;; results in characters with jagged edges. However, without it, | 235 | ;; results in characters with jagged edges. However, without it, |