annotate man/macos.texi @ 34660:75866a7ebaec

(wait_reading_process_input): Check for pending input when running timers.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 18 Dec 2000 10:53:51 +0000
parents 650803574987
children 159cc113a7b0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 @c This is part of the Emacs manual.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2 @c Copyright (C) 2000 Free Software Foundation, Inc.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 @c See file emacs.texi for copying conditions.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4 @node Mac OS, MS-DOS, Antinews, Top
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
5 @appendix Emacs and the Mac OS
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
6 @cindex Mac OS
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7 @cindex Macintosh
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9 Emacs built on the Mac OS supports many of its major features:
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
10 multiple frames, colors, scroll bars, menu bars, use of the mouse,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
11 fontsets, international characters, input methods, coding systems, and
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
12 synchronous subprocesses (@code{call-process}). Much of this works in
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
13 the same way as on other platforms and is therefore documented in the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
14 rest of this manual. This section describes the peculiarities of using
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
15 Emacs under the Mac OS.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
16
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17 The following features of Emacs are not yet supported on the Mac:
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
18 unexec (@code{dump-emacs}), asynchronous subprocesses
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19 (@code{start-process}), and networking (@code{open-network-connection}).
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
20 As a result, packages such as Gnus, Ispell, and Comint do not work.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22 Since external Unix programs to handle commands such as
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 @code{print-buffer} and @code{diff} are not available on the Mac OS,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24 they are not supported in the Mac OS version.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
25
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
26 @menu
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
27 * Mac Input:: Keyboard input on the Mac.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
28 * Mac International:: International character set support on the Mac.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
29 * Mac Environment Variables:: Setting environment variables for Emacs.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
30 * Mac Directories:: Volumes and directories on the Mac.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
31 * Mac Font Specs:: Specifying fonts on the Mac.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
32 * Mac Functions:: Mac specific Lisp functions.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
33 @end menu
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
34
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
35
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
36 @node Mac Input
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
37 @section Keyboard Input on the Mac
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
38 @cindex Meta (under Mac OS)
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
39 @cindex Mac keyboard coding
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
40 @vindex mac-command-key-is-meta
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
41 @vindex mac-keyboard-text-encoding
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
42
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
43 On the Mac, Emacs can use either the @key{option} key or the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
44 @key{command} key as the @key{META} key. If the value of the variable
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
45 @code{mac-command-key-is-meta} is non-@code{nil} (its default value),
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
46 Emacs uses the @key{command} key as the @key{META} key. Otherwise it uses the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
47 @key{option} key as the @key{META} key.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
48
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
49 Most people should want to use the @key{command} key as the @key{META} key,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
50 so that dead-key processing with the @key{option} key will still work. This is
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
51 useful for entering non-ASCII Latin characters directly from the Mac
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
52 keyboard, for example.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
53
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
54 Emacs recognizes the setting in the Keyboard control panel and
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
55 supports international and alternative keyboard layouts (e.g., Dvorak).
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
56 Selecting one of the layouts from the keyboard layout pull-down menu
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
57 will affect how the keys typed on the keyboard are interpreted.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
58
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
59 The Mac OS intercepts and handles certain key combinations (e.g.,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
60 @key{command}-@key{SPC} for switching input languages). These will not
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
61 be passed to Emacs.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
62
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
63 The Mac keyboard ordinarily generates characters in the Mac Roman
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
64 encoding. To use it for entering ISO Latin-1 characters directly, set
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
65 the value of the variable @code{mac-keyboard-text-encoding} to
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
66 @code{kTextEncodingISOLatin1}. Note that that not all Mac Roman
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
67 characters that can be entered at the keyboard can be converted to ISO
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
68 Latin-1 characters.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
69
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
70 To enter ISO Latin-2 characters directly from the Mac keyboard. Set
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
71 the value of @code{mac-keyboard-text-encoding} to
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
72 @code{kTextEncodingISOLatin2}. Then let Emacs know that the keyboard
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
73 generates Latin-2 codes by typink @kbd{C-x RET k iso-latin-2 RET}. To
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
74 make this setting permanent, put this in your @file{.emacs} init file:
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
75
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
76 @lisp
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
77 (set-keyboard-coding-system 'iso-latin-2)
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
78 @end lisp
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
79
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
80 @node Mac International
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
81 @section International Character Set Support on the Mac
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
82 @cindex Mac Roman coding system
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
83 @cindex Mac clipboard support
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
84
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
85 The Mac uses a non-standard encoding for the upper 128 single-byte
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
86 characters. It also deviates from the ISO 2022 standard by using code
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
87 points in the range 128-159. The coding system @code{mac-roman} is used
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
88 to represent this Mac encoding. It is used for editing files stored in
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
89 this native encoding, and for displaying filenames in Dired mode.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
90
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
91 Any native (non-symbol) Mac font can be used to correctly display
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
92 characters in the @code{mac-roman} coding system.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
93
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
94 The fontset @code{fontset-mac} is created automatically when Emacs is
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
95 run on the Mac by the following expression. It displays characters in
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
96 the @code{mac-roman} coding system using 12-point Monaco.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
97
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
98 To insert characters directly in the @code{mac-roman} coding system,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
99 type @kbd{C-x RET k mac-roman RET}, or put this in your @file{.emacs}
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
100 init file:
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
101
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
102 @lisp
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
103 (set-keyboard-coding-system 'mac-roman)
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
104 @end lisp
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
105
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
106 @noindent
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
107 This is useful for editing documents in native Mac encoding.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
108
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
109 You can use input methods provided either by LEIM (@pxref{Input
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
110 Methods}) or the Mac OS to enter international characters.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
111
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
112 To use the former, see the International Character Set Support section
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
113 of the manual.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
114
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
115 To use input methods provided by the Mac OS, set the keyboard coding
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
116 system accordingly using the @kbd{C-x RET k} command
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
117 (@code{set-keyboard-coding-system}). For example, for Traditional
34201
650803574987 Fix two typos.
Eli Zaretskii <eliz@gnu.org>
parents: 34198
diff changeset
118 Chinese, use @samp{chinese-big5} as keyboard coding system; for
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
119 Japanese, use @samp{sjis}, etc. Then select the desired input method in
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
120 the keyboard layout pull-down menu.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
121
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
122 The Mac clipboard and the Emacs kill ring (@pxref{Killing}) are
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
123 connected as follows: the most recent kill is copied to the clipboard
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
124 when Emacs is suspended and the contents of the clipboard is inserted
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
125 into the kill ring when Emacs resumes. The result is that you can yank
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
126 a piece of text and paste it into another Mac application, or cut or copy
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
127 one in another Mac application and yank it into a Emacs buffer.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
128
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
129 The encoding of text selections must be specified using the commands
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
130 @kbd{C-x RET x} (@code{set-selection-coding-system}) or @kbd{C-x RET X}
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
131 (@code{set-next-selection-coding-system}) (e.g., for Traditional
34201
650803574987 Fix two typos.
Eli Zaretskii <eliz@gnu.org>
parents: 34198
diff changeset
132 Chinese, use @samp{chinese-big5-mac} and for Japanese,
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
133 @samp{sjis-mac}). @xref{Specify Coding}, for more details.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
134
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
135
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
136 @node Mac Environment Variables
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
137 @section Environment Variables and Command Line Arguments.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
138 @cindex Mac environment variables
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
139
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
140 Environment variables and command line arguments for Emacs can be set
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
141 by modifying the @samp{STR#} resources 128 and 129, respectively. A common
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
142 environment variable that one may want to set is @samp{HOME}.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
143
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
144 The way to set an environment variable is by adding a string of the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
145 form
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
146
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
147 @example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
148 ENV_VAR=VALUE
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
149 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
150
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
151 @noindent
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
152 to resource @samp{STR#} number 128 using @code{ResEdit}. To set up the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
153 program to use unibyte characters exclusively, for example, add the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
154 string
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
155
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
156 @example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
157 EMACS_UNIBYTE=1
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
158 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
159
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
160
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
161 @node Mac Directories
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
162 @section Volumes and Directories on the Mac
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
163 @cindex file names under Mac OS
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
164
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
165 The directory structure in the Mac OS is seen by Emacs as
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
166
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
167 @example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
168 /<volumename>/<pathname>
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
169 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
170
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
171 So when Emacs requests a file name, doing filename completion on
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
172 @file{/} will display all volumes on the system. As in Unix, @file{..}
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
173 can be used to go up a directory level.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
174
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
175 To access files and folders on the desktop, look in the folder
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
176 @file{Desktop Folder} in your boot volume (this folder is usually
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
177 invisible in the Mac @code{Finder}).
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
178
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
179 Emacs creates the Mac folder @file{:Preferences:Emacs:} in the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
180 @file{System Folder} and uses it as the temporary directory. The Unix
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
181 emulation code maps the Unix directory @file{/tmp} to it. Therefore it
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
182 is best to avoid naming a volume @file{tmp}. If everything works
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
183 correctly, the program should leave no files in it when it exits. You
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
184 should be able to set the environment variable @code{TMPDIR} to use
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
185 another directory but this folder will still be created.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
186
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
187
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
188 @node Mac Font Specs
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
189 @section Specifying Fonts on the Mac
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
190 @cindex font names under Mac OS
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
191
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
192 Fonts are specified to Emacs on the Mac in the form of a standard X
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
193 font name. I.e.,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
194
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
195 @example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
196 -FOUNDRY-FAMILY-WEIGHT-SLANT-WIDTH--PIXELS-POINTS-
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
197 HRES-VRES-SPACING-AVEWIDTH-CHARSET
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
198 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
199
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
200 where the fields refer to foundry, font family, weight, slant, width,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
201 pixels, point size, horizontal resolution, vertical resolution, spacing,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
202 average width, and character set, respectively.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
203
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
204 Wildcards are supported as they are on X.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
205
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
206 Native Apple fonts in Mac Roman encoding has foundry name @code{apple}
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
207 and charset @code{mac-roman}. For example 12-point Monaco can be
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
208 specified by the name @samp{-apple-monaco-*-12-*-mac-roman}.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
209
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
210 Native Apple Traditional Chinese, Simplified Chinese, Japanese, and
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
211 Korean fonts have charsets @samp{big5-0}, @samp{gb2312-0},
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
212 @samp{jisx0208.1983-sjis}, and @samp{ksc5601-1}, respectively.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
213
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
214 Single-byte fonts converted from GNU fonts in BDF format, which are not
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
215 in the Mac Roman encoding, have foundry, family, and character sets
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
216 encoded in the names of their font suitcases. E.g., the font suitcase
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
217 @samp{ETL-Fixed-ISO8859-1} contains fonts which can be referred to by
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
218 the name @samp{-ETL-fixed-*-iso8859-1}.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
219
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
220
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
221 @node Mac Functions
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
222 @section Mac Specific Lisp Functions
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
223 @cindex Lisp functions on the Mac OS
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
224
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
225 @findex do-applescript
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
226 The function @code{do-applescript} takes a string argument,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
227 executes it as an AppleScript command, and returns the result as a
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
228 string.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
229
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
230 @findex mac-filename-to-unix
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
231 @findex unix-filename-to-mac
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
232 The function @code{mac-filename-to-unix} takes a Mac pathname and
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
233 returns the Unix equivalent. The function @code{unix-filename-to-mac}
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
234 performs the opposite conversion. They are useful for constructing
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
235 AppleScript commands to be passed to @code{do-applescript}.