annotate man/macos.texi @ 66037:89bec3b605ff

(desktop-load-file): Do nothing when FUNCTION is nil.
author Lars Hansen <larsh@soem.dk>
date Wed, 12 Oct 2005 09:16:35 +0000
parents cef93d58fdb4
children e58128155819 ee12d75eb214
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.
64890
3723093a21fd Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 59798
diff changeset
2 @c Copyright (C) 2000, 2001, 2002, 2003, 2004,
3723093a21fd Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 59798
diff changeset
3 @c 2005 Free Software Foundation, Inc.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4 @c See file emacs.texi for copying conditions.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
5 @node Mac OS, MS-DOS, Antinews, Top
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
6 @appendix Emacs and Mac OS
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7 @cindex Mac OS
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8 @cindex Macintosh
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
10 This section briefly describes the peculiarities of using Emacs
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
11 under Mac OS with native window system support. For Mac OS X, Emacs
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
12 can be built either without window system support, with X11, or with
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
13 Carbon API. This section only applies to the Carbon build. For Mac
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
14 OS Classic, Emacs can be built with or without Carbon API, and this
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
15 section applies to either of them because they run on the native
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
16 window system.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
18 Emacs built on Mac OS X supports most of its major features except
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
19 display support of PostScript images. The following features of Emacs
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
20 are not supported on Mac OS Classic: unexec (@code{dump-emacs}),
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
21 asynchronous subprocesses (@code{start-process}), and networking
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
22 (@code{open-network-stream}). As a result, packages such as Gnus,
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
23 GUD, and Comint do not work. Synchronous subprocesses
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
24 (@code{call-process}) are supported on non-Carbon build, but
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
25 specially-crafted external programs are needed. Since external
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
26 programs to handle commands such as @code{print-buffer} and
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
27 @code{diff} are not available on Mac OS Classic, they are not
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
28 supported. Non-Carbon build on Mac OS Classic does not support some
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
29 features such as file dialogs, drag-and-drop, and Unicode menus.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
30
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
31 @menu
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
32 * Input: Mac Input. Keyboard and mouse input on Mac.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
33 * Intl: Mac International. International character sets on Mac.
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
34 * Env: Mac Environment Variables. Setting environment variables for Emacs.
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
35 * Directories: Mac Directories. Volumes and directories on Mac.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
36 * Font: Mac Font Specs. Specifying fonts on Mac.
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
37 * Functions: Mac Functions. Mac-specific Lisp functions.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
38 @end menu
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
39
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
40 @node Mac Input
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
41 @section Keyboard and Mouse Input on Mac
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
42 @cindex Meta (Mac OS)
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
43 @cindex keyboard coding (Mac OS)
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
44
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
45 @vindex mac-command-key-is-meta
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
46 On Mac, Emacs can use either the @key{option} key or the
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
47 @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
48 @code{mac-command-key-is-meta} is non-@code{nil} (its default value),
36503
d7815b5b49d7 Minor clarifications. Explain that one normally specifies face attributes
Richard M. Stallman <rms@gnu.org>
parents: 36499
diff changeset
49 Emacs uses the @key{command} key as the @key{META} key. Otherwise it
d7815b5b49d7 Minor clarifications. Explain that one normally specifies face attributes
Richard M. Stallman <rms@gnu.org>
parents: 36499
diff changeset
50 uses the @key{option} key as the @key{META} key.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
51
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
52 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
53 so that dead-key processing with the @key{option} key will still work. This is
52979
3649390c0f91 Replace @sc{ascii} and ASCII with @acronym{ASCII}.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
54 useful for entering non-@acronym{ASCII} Latin characters directly from the Mac
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
55 keyboard, for example.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
56
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
57 Emacs recognizes the setting in the Keyboard control panel (Mac OS
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
58 Classic) or the International system preference pane (Mac OS X) and
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
59 supports international and alternative keyboard layouts (e.g., Dvorak)
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
60 if its script is either Roman, Japanese, Traditional Chinese, Korean,
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
61 Cyrillic, Simplified Chinese, or Central European. Keyboard layouts
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
62 based on Unicode may not work properly. Selecting one of the layouts
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
63 from the keyboard layout pull-down menu will affect how the keys typed
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
64 on the keyboard are interpreted.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
65
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
66 @vindex mac-pass-command-to-system
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
67 @vindex mac-pass-control-to-system
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
68 Mac OS intercepts and handles certain key combinations (e.g.,
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
69 @key{command}-@key{SPC} for switching input languages). These will not
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
70 be passed to Emacs. One can disable this interception by setting
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
71 @code{mac-pass-command-to-system} or @code{mac-pass-control-to-system}
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
72 to @code{nil}.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
73
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
74 @vindex mac-emulate-three-button-mouse
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
75 Especially for one-button mice, the multiple button feature can be
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
76 emulated by setting @code{mac-emulate-three-button-mouse} to @code{t}
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
77 or @code{reverse}. If set to @code{t} (@code{reverse}, respectively),
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
78 pressing the mouse button with the @key{option} key is recognized as
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
79 the second (third) button, and that with the @key{command} key is
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
80 recognized as the third (second) button.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
81
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
82 @vindex mac-wheel-button-is-mouse-2
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
83 For multi-button mice, the wheel button and the secondary button are
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
84 recognized as the second and the third button, respectively. If
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
85 @code{mac-wheel-button-is-mouse-2} is set to @code{nil}, their roles
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
86 are exchanged.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
87
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
88 @node Mac International
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
89 @section International Character Set Support on Mac
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
90 @cindex Mac Roman coding system
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
91 @cindex clipboard support (Mac OS)
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
92
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
93 Mac uses non-standard encodings for the upper 128 single-byte
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
94 characters. They also deviate from the ISO 2022 standard by using
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
95 character codes in the range 128-159. The coding systems
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
96 @code{mac-roman}, @code{mac-centraleurroman}, and @code{mac-cyrillic}
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
97 are used to represent these Mac encodings.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
98
36413
f5625ac53fba Made minor editing changes.
Andrew Choi <akochoi@shaw.ca>
parents: 36263
diff changeset
99 The fontset @code{fontset-mac} is created automatically when Emacs
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
100 is run on Mac, and used by default. It displays as many kinds of
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
101 characters as possible using 12-point Monaco as a base font. If you
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
102 see some character as a hollow box with this fontset, then it's almost
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
103 impossible to display it only by customizing font settings (@pxref{Mac
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
104 Font Specs}).
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
105
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
106 You can use input methods provided either by LEIM (@pxref{Input
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
107 Methods}) or Mac OS to enter international characters. To use the
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
108 former, see the International Character Set Support section of the
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
109 manual (@pxref{International}).
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
110
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
111 Emacs on Mac OS automatically changes the value of
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
112 @code{keyboard-coding-system} according to the current keyboard
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
113 layout. So users don't need to set it manually, and even if set, it
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
114 will be changed when the keyboard layout change is detected next time.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
115
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
116 The Mac clipboard and the Emacs kill ring (@pxref{Killing}) are
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
117 synchronized by default: you can yank a piece of text and paste it
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
118 into another Mac application, or cut or copy one in another Mac
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
119 application and yank it into a Emacs buffer. This feature can be
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
120 disabled by setting @code{x-select-enable-clipboard} to @code{nil}.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
121 One can still do copy and paste with another application from the Edit
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
122 menu.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
123
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
124 On Mac, the role of the coding system for selection that is set by
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
125 @code{set-selection-coding-system} (@pxref{Specify Coding}) is
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
126 two-fold. First, it is used as a preferred coding system for the
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
127 traditional text flavor that does not specify any particular encodings
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
128 and is mainly used by applications on Mac OS Classic. Second, it
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
129 specifies the intermediate encoding for the UTF-16 text flavor that is
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
130 mainly used by applications on Mac OS X.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
131
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
132 When pasting UTF-16 text data from the clipboard, it is first
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
133 converted to the encoding specified by the selection coding system
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
134 using the converter in the Mac OS system, and then decoded into the
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
135 Emacs internal encoding using the converter in Emacs. If the first
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
136 conversion failed, then the UTF-16 data is directly converted to Emacs
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
137 internal encoding using the converter in Emacs. Copying UTF-16 text
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
138 to the clipboard goes through the inverse path. The reason for this
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
139 two-path decoding is to avoid subtle differences in Unicode mappings
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
140 between the Mac OS system and Emacs such as various kinds of hyphens,
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
141 and to minimize users' customization. For example, users that mainly
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
142 use Latin characters would prefer Greek characters to be decoded into
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
143 the @code{mule-unicode-0100-24ff} charset, but Japanese users would
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
144 prefer them to be decoded into the @code{japanese-jisx0208} charset.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
145 Since the coding system for selection is automatically set according
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
146 to the system locale setting, users usually don't have to set it
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
147 manually.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
148
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
149 The default language environment (@pxref{Language Environments}) is
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
150 set according to the locale setting at the startup time. On Mac OS,
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
151 the locale setting is consulted in the following order:
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
152
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
153 @enumerate
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
154 @item
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
155 Environment variables @env{LC_ALL}, @env{LC_CTYPE} and @env{LANG} as
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
156 in other systems.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
157
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
158 @item
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
159 Preference @code{AppleLocale} that is set by default on Mac OS X 10.3
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
160 and later.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
161
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
162 @item
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
163 Preference @code{AppleLanguages} that is set by default on Mac OS X
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
164 10.1 and later.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
165
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
166 @item
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
167 Variable @code{mac-system-locale} that is derived from the system
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
168 language and region codes. This variable is available on all
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
169 supported Mac OS versions including Mac OS Classic.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
170 @end enumerate
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
171
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
172 The default values of almost all variables about coding systems are
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
173 also set according to the language environment. So usually you don't
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
174 have to customize these variables manually.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
175
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
176 @node Mac Environment Variables
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
177 @section Environment Variables and Command Line Arguments.
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
178 @cindex environment variables (Mac OS)
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
179
44890
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
180 On Mac OS X, when Emacs is run in a terminal, it inherits the values
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
181 of environment variables from the shell from which it is invoked.
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
182 However, when it is run from the Finder as a GUI application, it only
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
183 inherits environment variable values defined in the file
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
184 @file{~/.MacOSX/environment.plist} that affects all the applications
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
185 invoked from the Finder or the @command{open} command.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
186
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
187 Command line arguments are specified like
44890
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
188
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
189 @example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
190 /Applications/Emacs.app/Contents/MacOS/Emacs -geometry 80x25 &
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
191 @end example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
192
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
193 @noindent
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
194 if Emacs is installed at @file{/Applications/Emacs.app}. If Emacs is
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
195 invoked like this, then it also inherits the values of environment
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
196 variables from the shell from which it is invoked.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
197
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
198 On Mac OS Classic, environment variables and command line arguments
44890
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
199 for Emacs can be set by modifying the @samp{STR#} resources 128 and
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
200 129, respectively. A common environment variable that one may want to
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
201 set is @samp{HOME}.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
202
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
203 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
204 form
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
205
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
206 @example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
207 ENV_VAR=VALUE
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
208 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
209
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
210 @noindent
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
211 to resource @samp{STR#} number 128 using @code{ResEdit}. To set up the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
212 program to use unibyte characters exclusively, for example, add the
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
213 string
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
214
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
215 @example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
216 EMACS_UNIBYTE=1
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
217 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
218
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
219 @cindex Mac Preferences
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
220 Although Emacs on Mac does not support X resources (@pxref{X
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
221 Resources}) directly, one can use the Preferences system in place of X
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
222 resources. For example, adding the line
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
223
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
224 @example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
225 Emacs.cursorType: bar
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
226 @end example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
227
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
228 @noindent
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
229 to @file{~/.Xresources} in X11 corresponds to the execution of
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
230
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
231 @example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
232 defaults write org.gnu.Emacs Emacs.cursorType bar
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
233 @end example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
234
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
235 @noindent
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
236 on Mac OS X. One can use boolean or numeric values as well as string
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
237 values as follows:
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
238
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
239 @example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
240 defaults write org.gnu.Emacs Emacs.toolBar -bool false
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
241 defaults write org.gnu.Emacs Emacs.lineSpacing -int 3
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
242 @end example
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
243
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
244 @noindent
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
245 Try @kbd{M-x man RET defaults RET} for the usage of the
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
246 @command{defaults} command. Alternatively, if you have Developer
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
247 Tools installed on Mac OS X, you can use Property List Editor to edit
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
248 the file @file{~/Library/Preferences/org.gnu.Emacs.plist}.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
249
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
250
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
251 @node Mac Directories
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
252 @section Volumes and Directories on Mac
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
253 @cindex file names (Mac OS)
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
254
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
255 This node applies to Mac OS Classic only.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
256
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
257 The directory structure in Mac OS Classic is seen by Emacs as
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
258
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
259 @example
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
260 /@var{volumename}/@var{filename}
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
261 @end example
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
262
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
263 So when Emacs requests a file name, doing file name completion on
38865
62e02f5ae533 Avoid saying "Unix" in a way that includes GNU.
Richard M. Stallman <rms@gnu.org>
parents: 38021
diff changeset
264 @file{/} will display all volumes on the system. You can use @file{..}
62e02f5ae533 Avoid saying "Unix" in a way that includes GNU.
Richard M. Stallman <rms@gnu.org>
parents: 38021
diff changeset
265 to go up a directory level.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
266
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
267 On Mac OS Classic, to access files and folders on the desktop, look
44890
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
268 in the folder @file{Desktop Folder} in your boot volume (this folder
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
269 is usually invisible in the Mac @code{Finder}).
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
270
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
271 On Mac OS Classic, Emacs creates the Mac folder
44890
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
272 @file{:Preferences:Emacs:} in the @file{System Folder} and uses it as
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
273 the temporary directory. Emacs maps the directory name @file{/tmp/}
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
274 to that. Therefore it is best to avoid naming a volume @file{tmp}.
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
275 If everything works correctly, the program should leave no files in it
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
276 when it exits. You should be able to set the environment variable
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
277 @code{TMPDIR} to use another directory but this folder will still be
01b93e5e53a7 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents: 39287
diff changeset
278 created.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
279
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
280
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
281 @node Mac Font Specs
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
282 @section Specifying Fonts on Mac
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
283 @cindex font names (Mac OS)
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
284
36503
d7815b5b49d7 Minor clarifications. Explain that one normally specifies face attributes
Richard M. Stallman <rms@gnu.org>
parents: 36499
diff changeset
285 It is rare that you need to specify a font name in Emacs; usually
d7815b5b49d7 Minor clarifications. Explain that one normally specifies face attributes
Richard M. Stallman <rms@gnu.org>
parents: 36499
diff changeset
286 you specify face attributes instead. But when you do need to specify
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
287 a font name in Emacs on Mac, use a standard X font name:
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
288
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
289 @smallexample
36413
f5625ac53fba Made minor editing changes.
Andrew Choi <akochoi@shaw.ca>
parents: 36263
diff changeset
290 -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{}
f5625ac53fba Made minor editing changes.
Andrew Choi <akochoi@shaw.ca>
parents: 36263
diff changeset
291 @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{charset}
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
292 @end smallexample
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
293
36163
159cc113a7b0 Small cleanups in usage.
Richard M. Stallman <rms@gnu.org>
parents: 34201
diff changeset
294 @noindent
36503
d7815b5b49d7 Minor clarifications. Explain that one normally specifies face attributes
Richard M. Stallman <rms@gnu.org>
parents: 36499
diff changeset
295 @xref{Font X}. Wildcards are supported as they are on X.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
296
36413
f5625ac53fba Made minor editing changes.
Andrew Choi <akochoi@shaw.ca>
parents: 36263
diff changeset
297 Native Apple fonts in Mac Roman encoding has maker name @code{apple}
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
298 and charset @code{mac-roman}. For example 12-point Monaco can be
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
299 specified by the name @samp{-apple-monaco-*-12-*-mac-roman}. When
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
300 using a particular size of scalable fonts, it must be specified in a
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
301 format containing 14 @samp{-}s like
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
302 @samp{-apple-monaco-medium-r-normal--13-*-*-*-*-*-mac-roman}.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
303
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
304 You can specify a @code{mac-roman} font for @acronym{ASCII}
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
305 characters like
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
306
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
307 @lisp
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
308 (add-to-list
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
309 'default-frame-alist
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
310 '(font . "-apple-monaco-medium-r-normal--13-*-*-*-*-*-mac-roman"))
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
311 @end lisp
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
312
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
313 @noindent
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
314 but that does not extend to ISO-8859-1: specifying a @code{mac-roman}
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
315 font for Latin-1 characters introduces wrong glyphs.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
316
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
317 Native Apple Traditional Chinese, Simplified Chinese, Japanese,
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
318 Korean, Central European, Cyrillic, Symbol, and Dingbats fonts have
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
319 charsets @samp{big5-0}, @samp{gb2312.1980-0},
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
320 @samp{jisx0208.1983-sjis} and @samp{jisx0201.1976-0},
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
321 @samp{ksc5601.1989-0}, @samp{mac-centraleurroman},
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
322 @samp{mac-cyrillic}, @samp{mac-symbol}, and @samp{mac-dingbats},
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
323 respectively.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
324
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
325 Since Emacs as of the current version uses QuickDraw Text routines
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
326 for drawing texts, only characters in the charsets listed above can be
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
327 displayed with the OS-bundled fonts, even if other applications that
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
328 use @acronym{ATSUI} or Cocoa can display variety of characters with
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
329 them.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
330
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
331 The use of @code{create-fontset-from-fontset-spec} (@pxref{Defining
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
332 Fontsets}) for defining fontsets often results in wrong ones
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
333 especially when using only OS-bundled fonts. The recommended way is
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
334 to create a fontset using @code{create-fontset-from-mac-roman-font}:
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
335
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
336 @lisp
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
337 (create-fontset-from-mac-roman-font
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
338 "-apple-courier-medium-r-normal--13-*-*-*-*-*-mac-roman"
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
339 nil "foo")
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
340 @end lisp
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
341
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
342 @noindent
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
343 and then optionally specifying Chinese, Japanese, or Korean font
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
344 families using @code{set-fontset-font}:
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
345
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
346 @lisp
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
347 (set-fontset-font "fontset-foo"
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
348 'chinese-gb2312 '("song" . "gb2312.1980-0"))
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
349 @end lisp
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
350
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
351 Single-byte fonts converted from GNU fonts in BDF format, which are not
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
352 in the Mac Roman encoding, have foundry, family, and character sets
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
353 encoded in the names of their font suitcases. E.g., the font suitcase
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
354 @samp{ETL-Fixed-ISO8859-1} contains fonts which can be referred to by
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
355 the name @samp{-ETL-fixed-*-iso8859-1}.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
356
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
357 @vindex mac-allow-anti-aliasing
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
358 Emacs uses the QuickDraw text rendering by default. On Mac OS X
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
359 10.2 and later, it can be changed so that it uses the Quartz 2D text
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
360 rendering (aka CG text rendering) by setting
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
361 @code{mac-allow-anti-aliasing} to @code{t}. However, it is reported
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
362 to sometimes leave some garbages.
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
363
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
364 @node Mac Functions
36165
7ae44c5a0404 One more small cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 36163
diff changeset
365 @section Mac-Specific Lisp Functions
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36165
diff changeset
366 @cindex Lisp functions specific to Mac OS
34198
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
367
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
368 @findex do-applescript
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
369 The function @code{do-applescript} takes a string argument,
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
370 executes it as an AppleScript command, and returns the result as a
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
371 string.
306a480b3f22 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
372
38892
8ae568af6251 2001-08-21 Andrew Choi <akochoi@i-cable.com>
Andrew Choi <akochoi@shaw.ca>
parents: 38865
diff changeset
373 @findex mac-file-name-to-posix
8ae568af6251 2001-08-21 Andrew Choi <akochoi@i-cable.com>
Andrew Choi <akochoi@shaw.ca>
parents: 38865
diff changeset
374 @findex posix-file-name-to-mac
8ae568af6251 2001-08-21 Andrew Choi <akochoi@i-cable.com>
Andrew Choi <akochoi@shaw.ca>
parents: 38865
diff changeset
375 The function @code{mac-file-name-to-posix} takes a Mac file name and
38944
7a42abfb0c82 Minor clarification.
Richard M. Stallman <rms@gnu.org>
parents: 38892
diff changeset
376 returns the GNU or Unix equivalent. The function
38892
8ae568af6251 2001-08-21 Andrew Choi <akochoi@i-cable.com>
Andrew Choi <akochoi@shaw.ca>
parents: 38865
diff changeset
377 @code{posix-file-name-to-mac} performs the opposite conversion. They
8ae568af6251 2001-08-21 Andrew Choi <akochoi@i-cable.com>
Andrew Choi <akochoi@shaw.ca>
parents: 38865
diff changeset
378 are useful for constructing AppleScript commands to be passed to
8ae568af6251 2001-08-21 Andrew Choi <akochoi@i-cable.com>
Andrew Choi <akochoi@shaw.ca>
parents: 38865
diff changeset
379 @code{do-applescript}.
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
380
65633
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
381 @findex mac-set-file-creator
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
382 @findex mac-get-file-creator
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
383 @findex mac-set-file-type
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
384 @findex mac-get-file-type
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
385 The functions @code{mac-set-file-creator},
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
386 @code{mac-get-file-creator}, @code{mac-set-file-type}, and
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
387 @code{mac-get-file-type} can be used to set and get creator and file
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
388 codes.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
389
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
390 @findex mac-get-preference
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
391 The function @code{mac-get-preference} returns the preferences value
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
392 converted to a Lisp object for a specified key and application.
cef93d58fdb4 Change `Mac OS 8 or 9' to `Mac OS Classic'.
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
parents: 64890
diff changeset
393
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
394 @ignore
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
395 arch-tag: a822c2ab-4273-4997-927e-c153bb71dcf6
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
396 @end ignore