Mercurial > emacs
annotate doc/emacs/msdog.texi @ 91640:5c66006150b2
Typo fix
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Fri, 08 Feb 2008 00:02:57 +0000 |
parents | da85a08cc3c1 |
children | 9238e113ea4f |
rev | line source |
---|---|
84259 | 1 @c This is part of the Emacs manual. |
2 @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2000, 2001, | |
87903 | 3 @c 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
84259 | 4 @c See file emacs.texi for copying conditions. |
5 @node Microsoft Windows, Manifesto, Mac OS, Top | |
6 @appendix Emacs and Microsoft Windows/MS-DOS | |
7 @cindex Microsoft Windows | |
8 @cindex MS-Windows, Emacs peculiarities | |
9 | |
10 This section describes peculiarities of using Emacs on Microsoft | |
11 Windows. Some of these peculiarities are also relevant to Microsoft's | |
12 older MS-DOS ``operating system'' (also known as ``MS-DOG''). | |
13 However, Emacs features that are relevant @emph{only} to MS-DOS are | |
14 described in a separate | |
15 @iftex | |
16 manual (@pxref{MS-DOS,,, emacs-xtra, Specialized Emacs Features}). | |
17 @end iftex | |
18 @ifnottex | |
19 section (@pxref{MS-DOS}). | |
20 @end ifnottex | |
21 | |
22 | |
23 The behavior of Emacs on MS-Windows is reasonably similar to what is | |
24 documented in the rest of the manual, including support for long file | |
25 names, multiple frames, scroll bars, mouse menus, and subprocesses. | |
26 However, a few special considerations apply, and they are described | |
27 here. | |
28 | |
29 @menu | |
30 * Text and Binary:: Text files use CRLF to terminate lines. | |
31 * Windows Files:: File-name conventions on Windows. | |
32 * ls in Lisp:: Emulation of @code{ls} for Dired. | |
33 * Windows HOME:: Where Emacs looks for your @file{.emacs}. | |
34 * Windows Keyboard:: Windows-specific keyboard features. | |
35 * Windows Mouse:: Windows-specific mouse features. | |
36 * Windows Processes:: Running subprocesses on Windows. | |
37 * Windows Printing:: How to specify the printer on MS-Windows. | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
38 * Windows Fonts:: Specifying fonts on MS-Windows. |
84259 | 39 * Windows Misc:: Miscellaneous Windows features. |
40 @ifnottex | |
41 * MS-DOS:: Using Emacs on MS-DOS (otherwise known as @dfn{MS-DOG}). | |
42 @end ifnottex | |
43 @end menu | |
44 | |
45 @node Text and Binary | |
46 @section Text Files and Binary Files | |
47 @cindex text and binary files on MS-DOS/MS-Windows | |
48 | |
49 GNU Emacs uses newline characters to separate text lines. This is the | |
50 convention used on GNU, Unix, and other Posix-compliant systems. | |
51 | |
52 @cindex end-of-line conversion on MS-DOS/MS-Windows | |
53 By contrast, MS-DOS and MS-Windows normally use carriage-return linefeed, | |
54 a two-character sequence, to separate text lines. (Linefeed is the same | |
55 character as newline.) Therefore, convenient editing of typical files | |
56 with Emacs requires conversion of these end-of-line (EOL) sequences. | |
57 And that is what Emacs normally does: it converts carriage-return | |
58 linefeed into newline when reading files, and converts newline into | |
59 carriage-return linefeed when writing files. The same mechanism that | |
60 handles conversion of international character codes does this conversion | |
61 also (@pxref{Coding Systems}). | |
62 | |
63 @cindex cursor location, on MS-DOS | |
64 @cindex point location, on MS-DOS | |
65 One consequence of this special format-conversion of most files is | |
66 that character positions as reported by Emacs (@pxref{Position Info}) do | |
67 not agree with the file size information known to the operating system. | |
68 | |
69 In addition, if Emacs recognizes from a file's contents that it uses | |
70 newline rather than carriage-return linefeed as its line separator, it | |
71 does not perform EOL conversion when reading or writing that file. | |
72 Thus, you can read and edit files from GNU and Unix systems on MS-DOS | |
73 with no special effort, and they will retain their Unix-style | |
74 end-of-line convention after you edit them. | |
75 | |
76 The mode line indicates whether end-of-line translation was used for | |
77 the current buffer. If MS-DOS end-of-line translation is in use for the | |
78 buffer, the MS-Windows build of Emacs displays a backslash @samp{\} after | |
79 the coding system mnemonic near the beginning of the mode line | |
80 (@pxref{Mode Line}). If no EOL translation was performed, the string | |
81 @samp{(Unix)} is displayed instead of the backslash, to alert you that the | |
82 file's EOL format is not the usual carriage-return linefeed. | |
83 | |
84 @cindex DOS-to-Unix conversion of files | |
85 To visit a file and specify whether it uses DOS-style or Unix-style | |
86 end-of-line, specify a coding system (@pxref{Text Coding}). For | |
87 example, @kbd{C-x @key{RET} c unix @key{RET} C-x C-f foobar.txt} | |
88 visits the file @file{foobar.txt} without converting the EOLs; if some | |
89 line ends with a carriage-return linefeed pair, Emacs will display | |
90 @samp{^M} at the end of that line. Similarly, you can direct Emacs to | |
91 save a buffer in a specified EOL format with the @kbd{C-x @key{RET} f} | |
92 command. For example, to save a buffer with Unix EOL format, type | |
93 @kbd{C-x @key{RET} f unix @key{RET} C-x C-s}. If you visit a file | |
94 with DOS EOL conversion, then save it with Unix EOL format, that | |
95 effectively converts the file to Unix EOL style, like @code{dos2unix}. | |
96 | |
97 @cindex untranslated file system | |
98 @findex add-untranslated-filesystem | |
99 When you use NFS, Samba, or some other similar method to access file | |
100 systems that reside on computers using GNU or Unix systems, Emacs | |
101 should not perform end-of-line translation on any files in these file | |
102 systems---not even when you create a new file. To request this, | |
103 designate these file systems as @dfn{untranslated} file systems by | |
104 calling the function @code{add-untranslated-filesystem}. It takes one | |
105 argument: the file system name, including a drive letter and | |
106 optionally a directory. For example, | |
107 | |
108 @example | |
109 (add-untranslated-filesystem "Z:") | |
110 @end example | |
111 | |
112 @noindent | |
113 designates drive Z as an untranslated file system, and | |
114 | |
115 @example | |
116 (add-untranslated-filesystem "Z:\\foo") | |
117 @end example | |
118 | |
119 @noindent | |
120 designates directory @file{\foo} on drive Z as an untranslated file | |
121 system. | |
122 | |
123 Most often you would use @code{add-untranslated-filesystem} in your | |
124 @file{.emacs} file, or in @file{site-start.el} so that all the users at | |
125 your site get the benefit of it. | |
126 | |
127 @findex remove-untranslated-filesystem | |
128 To countermand the effect of @code{add-untranslated-filesystem}, use | |
129 the function @code{remove-untranslated-filesystem}. This function takes | |
130 one argument, which should be a string just like the one that was used | |
131 previously with @code{add-untranslated-filesystem}. | |
132 | |
133 Designating a file system as untranslated does not affect character | |
134 set conversion, only end-of-line conversion. Essentially, it directs | |
135 Emacs to create new files with the Unix-style convention of using | |
136 newline at the end of a line. @xref{Coding Systems}. | |
137 | |
138 @vindex file-name-buffer-file-type-alist | |
139 @cindex binary files, on MS-DOS/MS-Windows | |
140 Some kinds of files should not be converted at all, because their | |
141 contents are not really text. Therefore, Emacs on MS-Windows distinguishes | |
142 certain files as @dfn{binary files}. (This distinction is not part of | |
143 MS-Windows; it is made by Emacs only.) Binary files include executable | |
144 programs, compressed archives, etc. Emacs uses the file name to decide | |
145 whether to treat a file as binary: the variable | |
146 @code{file-name-buffer-file-type-alist} defines the file-name patterns | |
147 that indicate binary files. If a file name matches one of the patterns | |
148 for binary files (those whose associations are of the type | |
149 @code{(@var{pattern} . t)}, Emacs reads and writes that file using the | |
150 @code{no-conversion} coding system (@pxref{Coding Systems}) which turns | |
151 off @emph{all} coding-system conversions, not only the EOL conversion. | |
152 @code{file-name-buffer-file-type-alist} also includes file-name patterns | |
153 for files which are known to be Windows-style text files with | |
154 carriage-return linefeed EOL format, such as @file{CONFIG.SYS}; Emacs | |
155 always writes those files with Windows-style EOLs. | |
156 | |
157 If a file which belongs to an untranslated file system matches one of | |
158 the file-name patterns in @code{file-name-buffer-file-type-alist}, the | |
159 EOL conversion is determined by @code{file-name-buffer-file-type-alist}. | |
160 | |
161 @node Windows Files | |
162 @section File Names on MS-Windows | |
163 @cindex file names on MS-Windows | |
164 | |
165 MS-Windows and MS-DOS normally use a backslash, @samp{\}, to | |
166 separate name units within a file name, instead of the slash used on | |
167 other systems. Emacs on MS-DOS/MS-Windows permits use of either slash or | |
168 backslash, and also knows about drive letters in file names. | |
169 | |
170 @cindex file-name completion, on MS-Windows | |
171 On MS-DOS/MS-Windows, file names are case-insensitive, so Emacs by | |
172 default ignores letter-case in file names during completion. | |
173 | |
174 @vindex w32-get-true-file-attributes | |
175 If the variable @code{w32-get-true-file-attributes} is | |
176 non-@code{nil} (the default), Emacs tries to determine the accurate | |
177 link counts for files. This option is only useful on NTFS volumes, | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
178 and it considerably slows down Dired and other features, so disable it |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
179 on slow machines. |
84259 | 180 |
181 @node ls in Lisp | |
182 @section Emulation of @code{ls} on MS-Windows | |
183 @cindex Dired, and MS-Windows/MS-DOS | |
184 @cindex @code{ls} emulation | |
185 | |
186 Dired normally uses the external program @code{ls} (or its close | |
187 work-alike) to produce the directory listing displayed in Dired | |
188 buffers (@pxref{Dired}). However, MS-Windows and MS-DOS systems don't | |
189 come with such a program, although several ports of @sc{gnu} @code{ls} | |
190 are available. Therefore, Emacs on those systems @emph{emulates} | |
191 @code{ls} in Lisp, by using the @file{ls-lisp.el} package. While | |
192 @file{ls-lisp.el} provides a reasonably full emulation of @code{ls}, | |
193 there are some options and features peculiar to that emulation; | |
194 @iftex | |
195 for more details, see the documentation of the variables whose names | |
196 begin with @code{ls-lisp}. | |
197 @end iftex | |
198 @ifnottex | |
199 they are described in this section. | |
200 | |
201 The @code{ls} emulation supports many of the @code{ls} switches, but | |
202 it doesn't support all of them. Here's the list of the switches it | |
203 does support: @option{-A}, @option{-a}, @option{-B}, @option{-C}, | |
204 @option{-c}, @option{-i}, @option{-G}, @option{-g}, @option{-R}, | |
205 @option{-r}, @option{-S}, @option{-s}, @option{-t}, @option{-U}, | |
206 @option{-u}, and @option{-X}. The @option{-F} switch is partially | |
207 supported (it appends the character that classifies the file, but does | |
208 not prevent symlink following). | |
209 | |
210 @vindex ls-lisp-use-insert-directory-program | |
211 On MS-Windows and MS-DOS, @file{ls-lisp.el} is preloaded when Emacs | |
212 is built, so the Lisp emulation of @code{ls} is always used on those | |
213 platforms. If you have a ported @code{ls}, setting | |
214 @code{ls-lisp-use-insert-directory-program} to a non-@code{nil} value | |
215 will revert to using an external program named by the variable | |
216 @code{insert-directory-program}. | |
217 | |
218 @vindex ls-lisp-ignore-case | |
219 By default, @file{ls-lisp.el} uses a case-sensitive sort order for | |
220 the directory listing it produces; this is so the listing looks the | |
221 same as on other platforms. If you wish that the files be sorted in | |
222 case-insensitive order, set the variable @code{ls-lisp-ignore-case} to | |
223 a non-@code{nil} value. | |
224 | |
225 @vindex ls-lisp-dirs-first | |
226 By default, files and subdirectories are sorted together, to emulate | |
227 the behavior of @code{ls}. However, native MS-Windows/MS-DOS file | |
228 managers list the directories before the files; if you want that | |
229 behavior, customize the option @code{ls-lisp-dirs-first} to a | |
230 non-@code{nil} value. | |
231 | |
232 @vindex ls-lisp-verbosity | |
233 The variable @code{ls-lisp-verbosity} controls the file attributes | |
234 that @file{ls-lisp.el} displays. The value should be a list that | |
235 contains one or more of the symbols @code{links}, @code{uid}, and | |
236 @code{gid}. @code{links} means display the count of different file | |
237 names that are associated with (a.k.a.@: @dfn{links to}) the file's | |
238 data; this is only useful on NTFS volumes. @code{uid} means display | |
239 the numerical identifier of the user who owns the file. @code{gid} | |
240 means display the numerical identifier of the file owner's group. The | |
241 default value is @code{(links uid gid)} i.e.@: all the 3 optional | |
242 attributes are displayed. | |
243 | |
244 @vindex ls-lisp-emulation | |
245 The variable @code{ls-lisp-emulation} controls the flavour of the | |
246 @code{ls} emulation by setting the defaults for the 3 options | |
247 described above: @code{ls-lisp-ignore-case}, | |
248 @code{ls-lisp-dirs-first}, and @code{ls-lisp-verbosity}. The value of | |
249 this option can be one of the following symbols: | |
250 | |
251 @table @code | |
252 @item GNU | |
253 @itemx nil | |
254 Emulate @sc{gnu} systems; this is the default. This sets | |
255 @code{ls-lisp-ignore-case} and @code{ls-lisp-dirs-first} to | |
256 @code{nil}, and @code{ls-lisp-verbosity} to @code{(links uid gid)}. | |
257 @item UNIX | |
258 Emulate Unix systems. Like @code{GNU}, but sets | |
259 @code{ls-lisp-verbosity} to @code{(links uid)}. | |
260 @item MacOS | |
261 Emulate MacOS. Sets @code{ls-lisp-ignore-case} to @code{t}, and | |
262 @code{ls-lisp-dirs-first} and @code{ls-lisp-verbosity} to @code{nil}. | |
263 @item MS-Windows | |
264 Emulate MS-Windows. Sets @code{ls-lisp-ignore-case} and | |
265 @code{ls-lisp-dirs-first} to @code{t}, and @code{ls-lisp-verbosity} to | |
266 @code{(links)} on Windows NT/2K/XP/2K3 and to @code{nil} on Windows 9X. | |
267 Note that the default emulation is @emph{not} @code{MS-Windows}, even | |
268 on Windows, since many users of Emacs on those platforms prefer the | |
269 @sc{gnu} defaults. | |
270 @end table | |
271 | |
272 @noindent | |
273 Any other value of @code{ls-lisp-emulation} means the same as | |
274 @code{GNU}. Note that this option needs to be set @emph{before} | |
275 @file{ls-lisp.el} is loaded, which means that on MS-Windows and MS-DOS | |
276 you will have to set the value from your @file{.emacs} file and then | |
277 restart Emacs, since @file{ls-lisp.el} is preloaded. | |
278 | |
279 @vindex ls-lisp-support-shell-wildcards | |
280 The variable @code{ls-lisp-support-shell-wildcards} controls how | |
281 file-name patterns are supported: if it is non-@code{nil} (the | |
282 default), they are treated as shell-style wildcards; otherwise they | |
283 are treated as Emacs regular expressions. | |
284 | |
285 @vindex ls-lisp-format-time-list | |
286 The variable @code{ls-lisp-format-time-list} defines how to format | |
287 the date and time of files. @emph{The value of this variable is | |
288 ignored}, unless Emacs cannot determine the current locale. (However, | |
289 if the value of @code{ls-lisp-use-localized-time-format} is | |
290 non-@code{nil}, Emacs obeys @code{ls-lisp-format-time-list} even if | |
291 the current locale is available; see below.) | |
292 | |
293 The value of @code{ls-lisp-format-time-list} is a list of 2 strings. | |
294 The first string is used if the file was modified within the current | |
295 year, while the second string is used for older files. In each of | |
296 these two strings you can use @samp{%}-sequences to substitute parts | |
297 of the time. For example: | |
298 @lisp | |
299 ("%b %e %H:%M" "%b %e %Y") | |
300 @end lisp | |
301 | |
302 @noindent | |
303 Note that the strings substituted for these @samp{%}-sequences depend | |
304 on the current locale. @xref{Time Parsing,,, elisp, The Emacs Lisp | |
305 Reference Manual}, for more about format time specs. | |
306 | |
307 @vindex ls-lisp-use-localized-time-format | |
308 Normally, Emacs formats the file time stamps in either traditional | |
309 or ISO-style time format. However, if the value of the variable | |
310 @code{ls-lisp-use-localized-time-format} is non-@code{nil}, Emacs | |
311 formats file time stamps according to what | |
312 @code{ls-lisp-format-time-list} specifies. The @samp{%}-sequences in | |
313 @code{ls-lisp-format-time-list} produce locale-dependent month and day | |
314 names, which might cause misalignment of columns in Dired display. | |
315 @end ifnottex | |
316 | |
317 @node Windows HOME | |
318 @section HOME Directory on MS-Windows | |
319 @cindex @code{HOME} directory on MS-Windows | |
320 | |
321 The Windows equivalent of the @code{HOME} directory is the | |
322 @dfn{user-specific application data directory}. The actual location | |
323 depends on your Windows version and system configuration; typical values | |
324 are @file{C:\Documents and Settings\@var{username}\Application Data} on | |
325 Windows 2K/XP and later, and either @file{C:\WINDOWS\Application Data} | |
326 or @file{C:\WINDOWS\Profiles\@var{username}\Application Data} on the | |
327 older Windows 9X/ME systems. | |
328 | |
329 @cindex init file @file{.emacs} on MS-Windows | |
330 The home directory is where your init file @file{.emacs} is stored. | |
331 When Emacs starts, it first checks whether the environment variable | |
332 @env{HOME} is set. If it is, it looks for the init file in the | |
333 directory pointed by @env{HOME}. If @env{HOME} is not defined, Emacs | |
334 checks for an existing @file{.emacs} file in @file{C:\}, the root | |
335 directory of drive @file{C:}@footnote{ | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
336 The check in @file{C:\} is for compatibility with older versions of Emacs, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
337 which didn't check the application data directory. |
84259 | 338 }. If there's no such file in @file{C:\}, Emacs next uses the Windows |
339 system calls to find out the exact location of your application data | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
340 directory. If that system call fails, Emacs falls back to @file{C:\}. |
84259 | 341 |
342 Whatever the final place is, Emacs sets the value of the @env{HOME} | |
343 environment variable to point to it, and it will use that location for | |
344 other files and directories it normally creates in the user's home | |
345 directory. | |
346 | |
347 You can always find out where Emacs thinks is your home directory's | |
348 location by typing @kbd{C-x d ~/ @key{RET}}. This should present the | |
349 list of files in the home directory, and show its full name on the | |
350 first line. Likewise, to visit your init file, type @kbd{C-x C-f | |
351 ~/.emacs @key{RET}}. | |
352 | |
353 @cindex @file{_emacs} init file, MS-Windows | |
354 Because MS-DOS does not allow file names with leading dots, and | |
355 because older Windows systems made it hard to create files with such | |
356 names, the Windows port of Emacs supports an alternative name | |
357 @file{_emacs} as a fallback, if such a file exists in the home | |
358 directory, whereas @file{.emacs} does not. | |
359 | |
360 @node Windows Keyboard | |
361 @section Keyboard Usage on MS-Windows | |
362 @cindex keyboard, MS-Windows | |
363 | |
364 This section describes the Windows-specific features related to | |
365 keyboard input in Emacs. | |
366 | |
367 @cindex MS-Windows keyboard shortcuts | |
368 Many key combinations (known as ``keyboard shortcuts'') that have | |
369 conventional uses in MS-Windows programs conflict with traditional | |
370 Emacs key bindings. (These Emacs key bindings were established years | |
371 before Microsoft was founded.) Examples of conflicts include | |
372 @kbd{C-c}, @kbd{C-x}, @kbd{C-z}, @kbd{C-a}, and @kbd{W-@key{SPC}}. | |
373 You can redefine some of them with meanings more like the MS-Windows | |
374 meanings by enabling CUA Mode (@pxref{CUA Bindings}). | |
375 | |
376 @kindex F10 @r{(MS-Windows)} | |
377 @cindex menu bar access using keyboard @r{(MS-Windows)} | |
378 The @key{F10} key on Windows activates the menu bar in a way that | |
379 makes it possible to use the menus without a mouse. In this mode, the | |
380 arrow keys traverse the menus, @key{RET} selects a highlighted menu | |
381 item, and @key{ESC} closes the menu. | |
382 | |
383 @iftex | |
384 @inforef{Windows Keyboard, , emacs}, for information about additional | |
385 Windows-specific variables in this category. | |
386 @end iftex | |
387 @ifnottex | |
388 @vindex w32-alt-is-meta | |
389 @cindex @code{Alt} key (MS-Windows) | |
390 By default, the key labeled @key{Alt} is mapped as the @key{META} | |
391 key. If you wish it to produce the @code{Alt} modifier instead, set | |
392 the variable @code{w32-alt-is-meta} to a @code{nil} value. | |
393 | |
394 @vindex w32-capslock-is-shiftlock | |
395 By default, the @key{CapsLock} key only affects normal character | |
396 keys (it converts lower-case characters to their upper-case | |
397 variants). However, if you set the variable | |
398 @code{w32-capslock-is-shiftlock} to a non-@code{nil} value, the | |
399 @key{CapsLock} key will affect non-character keys as well, as if you | |
400 pressed the @key{Shift} key while typing the non-character key. | |
401 | |
402 @vindex w32-enable-caps-lock | |
403 If the variable @code{w32-enable-caps-lock} is set to a @code{nil} | |
404 value, the @key{CapsLock} key produces the symbol @code{capslock} | |
405 instead of the shifted version of they keys. The default value is | |
406 @code{t}. | |
407 | |
408 @vindex w32-enable-num-lock | |
409 @cindex keypad keys (MS-Windows) | |
410 Similarly, if @code{w32-enable-num-lock} is @code{nil}, the | |
411 @key{NumLock} key will produce the symbol @code{kp-numlock}. The | |
412 default is @code{t}, which causes @key{NumLock} to work as expected: | |
413 toggle the meaning of the keys on the numeric keypad. | |
414 @end ifnottex | |
415 | |
416 @vindex w32-apps-modifier | |
417 The variable @code{w32-apps-modifier} controls the effect of the | |
418 @key{Apps} key (usually located between the right @key{Alt} and the | |
419 right @key{Ctrl} keys). Its value can be one of the symbols | |
420 @code{hyper}, @code{super}, @code{meta}, @code{alt}, @code{control}, | |
421 or @code{shift} for the respective modifier, or @code{nil} to appear | |
422 as the key @code{apps}. The default is @code{nil}. | |
423 | |
424 @vindex w32-lwindow-modifier | |
425 @vindex w32-rwindow-modifier | |
426 @vindex w32-scroll-lock-modifier | |
427 The variable @code{w32-lwindow-modifier} determines the effect of | |
428 the left Windows key (usually labeled with @key{start} and the Windows | |
429 logo). If its value is @code{nil} (the default), the key will produce | |
430 the symbol @code{lwindow}. Setting it to one of the symbols | |
431 @code{hyper}, @code{super}, @code{meta}, @code{alt}, @code{control}, | |
432 or @code{shift} will produce the respective modifier. A similar | |
433 variable @code{w32-rwindow-modifier} controls the effect of the right | |
434 Windows key, and @code{w32-scroll-lock-modifier} does the same for the | |
435 @key{ScrLock} key. If these variables are set to @code{nil}, the | |
436 right Windows key produces the symbol @code{rwindow} and @key{ScrLock} | |
437 produces the symbol @code{scroll}. | |
438 | |
439 @vindex w32-pass-alt-to-system | |
440 @cindex Windows system menu | |
441 @cindex @code{Alt} key invokes menu (Windows) | |
442 Emacs compiled as a native Windows application normally turns off | |
443 the Windows feature that tapping the @key{ALT} key invokes the Windows | |
444 menu. The reason is that the @key{ALT} serves as @key{META} in Emacs. | |
445 When using Emacs, users often press the @key{META} key temporarily and | |
446 then change their minds; if this has the effect of bringing up the | |
447 Windows menu, it alters the meaning of subsequent commands. Many | |
448 users find this frustrating. | |
449 | |
450 You can re-enable Windows' default handling of tapping the @key{ALT} | |
451 key by setting @code{w32-pass-alt-to-system} to a non-@code{nil} | |
452 value. | |
453 | |
454 @ifnottex | |
455 @vindex w32-pass-lwindow-to-system | |
456 @vindex w32-pass-rwindow-to-system | |
457 The variables @code{w32-pass-lwindow-to-system} and | |
458 @code{w32-pass-rwindow-to-system} determine whether the respective | |
459 keys are passed to Windows or swallowed by Emacs. If the value is | |
460 @code{nil}, the respective key is silently swallowed by Emacs, | |
461 otherwise it is passed to Windows. The default is @code{t} for both | |
462 of these variables. Passing each of these keys to Windows produces | |
463 its normal effect: for example, @kbd{@key{Lwindow}} opens the | |
464 @code{Start} menu, etc.@footnote{ | |
465 Some combinations of the ``Windows'' keys with other keys are caught | |
466 by Windows at low level in a way that Emacs currently cannot prevent. | |
467 For example, @kbd{@key{Lwindow} r} always pops up the Windows | |
468 @samp{Run} dialog. Customizing the value of | |
469 @code{w32-phantom-key-code} might help in some cases, though.} | |
470 | |
471 @vindex w32-recognize-altgr | |
472 @kindex AltGr @r{(MS-Windows)} | |
473 @cindex AltGr key (MS-Windows) | |
474 The variable @code{w32-recognize-altgr} controls whether the | |
475 @key{AltGr} key (if it exists on your keyboard), or its equivalent, | |
476 the combination of the right @key{Alt} and left @key{Ctrl} keys | |
477 pressed together, is recognized as the @key{AltGr} key. The default | |
478 is @code{t}, which means these keys produce @code{AltGr}; setting it | |
479 to @code{nil} causes @key{AltGr} or the equivalent key combination to | |
480 be interpreted as the combination of @key{CTRL} and @key{META} | |
481 modifiers. | |
482 @end ifnottex | |
483 | |
484 @node Windows Mouse | |
485 @section Mouse Usage on MS-Windows | |
486 @cindex mouse, and MS-Windows | |
487 | |
488 This section describes the Windows-specific variables related to | |
489 mouse. | |
490 | |
491 @vindex w32-mouse-button-tolerance | |
492 @cindex simulation of middle mouse button | |
493 The variable @code{w32-mouse-button-tolerance} specifies the | |
494 time interval, in milliseconds, for faking middle mouse button press | |
495 on 2-button mice. If both mouse buttons are depressed within this | |
496 time interval, Emacs generates a middle mouse button click event | |
497 instead of a double click on one of the buttons. | |
498 | |
499 @vindex w32-pass-extra-mouse-buttons-to-system | |
500 If the variable @code{w32-pass-extra-mouse-buttons-to-system} is | |
501 non-@code{nil}, Emacs passes the fourth and fifth mouse buttons to | |
502 Windows. | |
503 | |
504 @vindex w32-swap-mouse-buttons | |
505 The variable @code{w32-swap-mouse-buttons} controls which of the 3 | |
506 mouse buttons generates the @kbd{mouse-2} events. When it is | |
507 @code{nil} (the default), the middle button generates @kbd{mouse-2} | |
508 and the right button generates @kbd{mouse-3} events. If this variable | |
509 is non-@code{nil}, the roles of these two buttons are reversed. | |
510 | |
511 @node Windows Processes | |
512 @section Subprocesses on Windows 9X/ME and Windows NT/2K/XP | |
513 @cindex subprocesses on MS-Windows | |
514 | |
515 @cindex DOS applications, running from Emacs | |
516 Emacs compiled as a native Windows application (as opposed to the DOS | |
517 version) includes full support for asynchronous subprocesses. | |
518 In the Windows version, synchronous and asynchronous subprocesses work | |
519 fine on both | |
520 Windows 9X/ME and Windows NT/2K/XP as long as you run only 32-bit Windows | |
521 applications. However, when you run a DOS application in a subprocess, | |
522 you may encounter problems or be unable to run the application at all; | |
523 and if you run two DOS applications at the same time in two | |
524 subprocesses, you may have to reboot your system. | |
525 | |
526 Since the standard command interpreter (and most command line utilities) | |
527 on Windows 9X are DOS applications, these problems are significant when | |
528 using that system. But there's nothing we can do about them; only | |
529 Microsoft can fix them. | |
530 | |
531 If you run just one DOS application subprocess, the subprocess should | |
532 work as expected as long as it is ``well-behaved'' and does not perform | |
533 direct screen access or other unusual actions. If you have a CPU | |
534 monitor application, your machine will appear to be 100% busy even when | |
535 the DOS application is idle, but this is only an artifact of the way CPU | |
536 monitors measure processor load. | |
537 | |
538 You must terminate the DOS application before you start any other DOS | |
539 application in a different subprocess. Emacs is unable to interrupt or | |
540 terminate a DOS subprocess. The only way you can terminate such a | |
541 subprocess is by giving it a command that tells its program to exit. | |
542 | |
543 If you attempt to run two DOS applications at the same time in separate | |
544 subprocesses, the second one that is started will be suspended until the | |
545 first one finishes, even if either or both of them are asynchronous. | |
546 | |
547 @cindex kill DOS application | |
548 If you can go to the first subprocess, and tell it to exit, the second | |
549 subprocess should continue normally. However, if the second subprocess | |
550 is synchronous, Emacs itself will be hung until the first subprocess | |
551 finishes. If it will not finish without user input, then you have no | |
552 choice but to reboot if you are running on Windows 9X. If you are | |
553 running on Windows NT/2K/XP, you can use a process viewer application to kill | |
554 the appropriate instance of NTVDM instead (this will terminate both DOS | |
555 subprocesses). | |
556 | |
557 If you have to reboot Windows 9X in this situation, do not use the | |
558 @code{Shutdown} command on the @code{Start} menu; that usually hangs the | |
559 system. Instead, type @kbd{CTL-ALT-@key{DEL}} and then choose | |
560 @code{Shutdown}. That usually works, although it may take a few minutes | |
561 to do its job. | |
562 | |
563 @vindex w32-quote-process-args | |
564 The variable @code{w32-quote-process-args} controls how Emacs quotes | |
565 the process arguments. Non-@code{nil} means quote with the @code{"} | |
566 character. If the value is a character, use that character to escape | |
567 any quote characters that appear; otherwise chose a suitable escape | |
568 character based on the type of the program. | |
569 | |
570 @ifnottex | |
571 @findex w32-shell-execute | |
572 The function @code{w32-shell-execute} can be useful for writing | |
573 customized commands that run MS-Windows applications registered to | |
574 handle a certain standard Windows operation for a specific type of | |
575 document or file. This function is a wrapper around the Windows | |
576 @code{ShellExecute} API. See the MS-Windows API documentation for | |
577 more details. | |
578 @end ifnottex | |
579 | |
580 @node Windows Printing | |
581 @section Printing and MS-Windows | |
582 | |
583 Printing commands, such as @code{lpr-buffer} (@pxref{Printing}) and | |
584 @code{ps-print-buffer} (@pxref{PostScript}) work in MS-DOS and | |
585 MS-Windows by sending the output to one of the printer ports, if a | |
586 Posix-style @code{lpr} program is unavailable. The same Emacs | |
587 variables control printing on all systems, but in some cases they have | |
588 different default values on MS-DOS and MS-Windows. | |
589 | |
590 Emacs on Windows automatically determines your default printer and | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
591 sets the variable @code{printer-name} to that printer's name. But in |
84259 | 592 some rare cases this can fail, or you may wish to use a different |
593 printer from within Emacs. The rest of this section explains how to | |
594 tell Emacs which printer to use. | |
595 | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
596 @vindex printer-name@r{, (MS-DOS/MS-Windows)} |
84259 | 597 If you want to use your local printer, then set the Lisp variable |
598 @code{lpr-command} to @code{""} (its default value on Windows) and | |
599 @code{printer-name} to the name of the printer port---for example, | |
600 @code{"PRN"}, the usual local printer port or @code{"LPT2"}, or | |
601 @code{"COM1"} for a serial printer. You can also set | |
602 @code{printer-name} to a file name, in which case ``printed'' output | |
603 is actually appended to that file. If you set @code{printer-name} to | |
604 @code{"NUL"}, printed output is silently discarded (sent to the system | |
605 null device). | |
606 | |
607 You can also use a printer shared by another machine by setting | |
608 @code{printer-name} to the UNC share name for that printer---for | |
609 example, @code{"//joes_pc/hp4si"}. (It doesn't matter whether you use | |
610 forward slashes or backslashes here.) To find out the names of shared | |
611 printers, run the command @samp{net view} from the command prompt to | |
612 obtain a list of servers, and @samp{net view @var{server-name}} to see | |
613 the names of printers (and directories) shared by that server. | |
614 Alternatively, click the @samp{Network Neighborhood} icon on your | |
615 desktop, and look for machines which share their printers via the | |
616 network. | |
617 | |
618 @cindex @samp{net use}, and printing on MS-Windows | |
619 @cindex networked printers (MS-Windows) | |
620 If the printer doesn't appear in the output of @samp{net view}, or | |
621 if setting @code{printer-name} to the UNC share name doesn't produce a | |
622 hardcopy on that printer, you can use the @samp{net use} command to | |
623 connect a local print port such as @code{"LPT2"} to the networked | |
624 printer. For example, typing @kbd{net use LPT2: \\joes_pc\hp4si}@footnote{ | |
625 Note that the @samp{net use} command requires the UNC share name to be | |
626 typed with the Windows-style backslashes, while the value of | |
627 @code{printer-name} can be set with either forward- or backslashes.} | |
628 causes Windows to @dfn{capture} the @code{LPT2} port and redirect the | |
629 printed material to the printer connected to the machine @code{joes_pc}. | |
630 After this command, setting @code{printer-name} to @code{"LPT2"} | |
631 should produce the hardcopy on the networked printer. | |
632 | |
633 With some varieties of Windows network software, you can instruct | |
634 Windows to capture a specific printer port such as @code{"LPT2"}, and | |
635 redirect it to a networked printer via the @w{@code{Control | |
636 Panel->Printers}} applet instead of @samp{net use}. | |
637 | |
638 If you set @code{printer-name} to a file name, it's best to use an | |
639 absolute file name. Emacs changes the working directory according to | |
640 the default directory of the current buffer, so if the file name in | |
641 @code{printer-name} is relative, you will end up with several such | |
642 files, each one in the directory of the buffer from which the printing | |
643 was done. | |
644 | |
645 If the value of @code{printer-name} is correct, but printing does | |
646 not produce the hardcopy on your printer, it is possible that your | |
647 printer does not support printing plain text (some cheap printers omit | |
648 this functionality). In that case, try the PostScript print commands, | |
649 described below. | |
650 | |
651 @findex print-buffer @r{(MS-DOS)} | |
652 @findex print-region @r{(MS-DOS)} | |
653 @vindex lpr-headers-switches @r{(MS-DOS)} | |
654 The commands @code{print-buffer} and @code{print-region} call the | |
655 @code{pr} program, or use special switches to the @code{lpr} program, to | |
656 produce headers on each printed page. MS-DOS and MS-Windows don't | |
657 normally have these programs, so by default, the variable | |
658 @code{lpr-headers-switches} is set so that the requests to print page | |
659 headers are silently ignored. Thus, @code{print-buffer} and | |
660 @code{print-region} produce the same output as @code{lpr-buffer} and | |
661 @code{lpr-region}, respectively. If you do have a suitable @code{pr} | |
662 program (for example, from GNU Coreutils), set | |
663 @code{lpr-headers-switches} to @code{nil}; Emacs will then call | |
664 @code{pr} to produce the page headers, and print the resulting output as | |
665 specified by @code{printer-name}. | |
666 | |
667 @vindex print-region-function @r{(MS-DOS)} | |
668 @cindex lpr usage under MS-DOS | |
669 @vindex lpr-command @r{(MS-DOS)} | |
670 @vindex lpr-switches @r{(MS-DOS)} | |
671 Finally, if you do have an @code{lpr} work-alike, you can set the | |
672 variable @code{lpr-command} to @code{"lpr"}. Then Emacs will use | |
673 @code{lpr} for printing, as on other systems. (If the name of the | |
674 program isn't @code{lpr}, set @code{lpr-command} to specify where to | |
675 find it.) The variable @code{lpr-switches} has its standard meaning | |
676 when @code{lpr-command} is not @code{""}. If the variable | |
677 @code{printer-name} has a string value, it is used as the value for the | |
678 @code{-P} option to @code{lpr}, as on Unix. | |
679 | |
680 @findex ps-print-buffer @r{(MS-DOS)} | |
681 @findex ps-spool-buffer @r{(MS-DOS)} | |
682 @vindex ps-printer-name @r{(MS-DOS)} | |
683 @vindex ps-lpr-command @r{(MS-DOS)} | |
684 @vindex ps-lpr-switches @r{(MS-DOS)} | |
685 A parallel set of variables, @code{ps-lpr-command}, | |
686 @code{ps-lpr-switches}, and @code{ps-printer-name} (@pxref{PostScript | |
687 Variables}), defines how PostScript files should be printed. These | |
688 variables are used in the same way as the corresponding variables | |
689 described above for non-PostScript printing. Thus, the value of | |
690 @code{ps-printer-name} is used as the name of the device (or file) to | |
691 which PostScript output is sent, just as @code{printer-name} is used | |
692 for non-PostScript printing. (There are two distinct sets of | |
693 variables in case you have two printers attached to two different | |
694 ports, and only one of them is a PostScript printer.) | |
695 | |
696 The default value of the variable @code{ps-lpr-command} is @code{""}, | |
697 which causes PostScript output to be sent to the printer port specified | |
698 by @code{ps-printer-name}, but @code{ps-lpr-command} can also be set to | |
699 the name of a program which will accept PostScript files. Thus, if you | |
700 have a non-PostScript printer, you can set this variable to the name of | |
701 a PostScript interpreter program (such as Ghostscript). Any switches | |
702 that need to be passed to the interpreter program are specified using | |
703 @code{ps-lpr-switches}. (If the value of @code{ps-printer-name} is a | |
704 string, it will be added to the list of switches as the value for the | |
705 @code{-P} option. This is probably only useful if you are using | |
706 @code{lpr}, so when using an interpreter typically you would set | |
707 @code{ps-printer-name} to something other than a string so it is | |
708 ignored.) | |
709 | |
710 For example, to use Ghostscript for printing on the system's default | |
711 printer, put this in your @file{.emacs} file: | |
712 | |
713 @example | |
714 (setq ps-printer-name t) | |
715 (setq ps-lpr-command "D:/gs6.01/bin/gswin32c.exe") | |
716 (setq ps-lpr-switches '("-q" "-dNOPAUSE" "-dBATCH" | |
717 "-sDEVICE=mswinpr2" | |
718 "-sPAPERSIZE=a4")) | |
719 @end example | |
720 | |
721 @noindent | |
722 (This assumes that Ghostscript is installed in the | |
723 @file{D:/gs6.01} directory.) | |
724 | |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
725 @node Windows Fonts |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
726 @section Specifying Fonts on MS-Windows |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
727 @cindex font specification (MS Windows) |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
728 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
729 Starting with Emacs 23, fonts are specified by their name, size |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
730 and optional properties. The format for specifying fonts comes from the |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
731 fontconfig library used in modern Free desktops. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
732 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
733 @example |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
734 [Family[-PointSize]][:Option1=Value1[:Option2=Value2[...]]] |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
735 @end example |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
736 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
737 The old XLFD based format is also supported for backwards compatibility. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
738 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
739 Emacs 23 supports a number of backends. Currently on Windows the @code{gdi} |
91640 | 740 font backend is supported. |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
741 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
742 @cindex font properties (MS Windows) |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
743 @noindent |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
744 Optional properties common to all font backends on MS-Windows are: |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
745 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
746 @vindex font-weight-table @r{(MS-Windows)} |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
747 @code{weight} specifies the weight of the font. Special values @code{light}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
748 @code{medium}, @code{demibold}, @code{bold} and @code{black} can be specified |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
749 without the @code{weight=} (eg @samp{Courier New-12:bold}). Otherwise |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
750 the weight should be a numeric value between 100 and 900, or one of the |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
751 named weights in @code{font-weight-table}. If unspecified, a regular font |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
752 is assumed. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
753 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
754 @vindex font-slant-table @r{(MS-Windows)} |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
755 @code{slant} specifies whether the font is italic. Special values |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
756 @code{roman}, @code{italic} and @code{oblique} can be specified |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
757 without the @code{slant=} (eg @samp{Courier New-12:italic}). |
91640 | 758 Otherwise the slant should be a numeric value, or one of the named |
91638
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
759 slants in @code{font-slant-table}. On Windows, any slant above 150 is |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
760 treated as italic, and anything below as roman. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
761 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
762 @code{family} specifies the font family, but normally this will be specified |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
763 at the start of the font name. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
764 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
765 @code{pixelsize} specifies the font size in pixels. This can be used instead |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
766 of the point size specified after the family name. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
767 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
768 @code{adstyle} specifies additional style information for the font. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
769 On MS-Windows, the values @code{mono}, @code{sans}, @code{serif}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
770 @code{script} and @code{decorative} are recognized. These are most useful |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
771 as a fallback with the font family left unspecified. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
772 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
773 @vindex w32-charset-info-alist |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
774 @code{registry} specifies the character set registry that the font is |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
775 expected to cover. Most Truetype and Opentype fonts will be unicode fonts |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
776 that cover several national character sets, but you can narrow down the |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
777 selection of fonts to those that support a particular character set by |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
778 using a specific registry from @code{w32-charset-info-alist} here. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
779 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
780 @code{spacing} specifies how the font is spaced. @code{p} specifies |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
781 a proportional font, and @code{m} or @code{c} specify a monospaced font. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
782 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
783 @code{foundry} is not used on Windows, but for informational purposes and to |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
784 prevent problems with code that expects it to be set, is set internally to |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
785 @code{raster} for bitmapped fonts, @code{outline} for scalable fonts, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
786 or @code{unknown} if the type cannot be determined as one of those. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
787 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
788 @cindex font properties (MS Windows gdi backend) |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
789 Options specific to @code{GDI} fonts |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
790 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
791 @cindex font scripts (MS Windows) |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
792 @cindex font unicode subranges (MS Windows) |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
793 @code{script} specifies a unicode subrange the font should support. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
794 Scripts recognized on Windows are @code{latin}, @code{greek}, @code{coptic}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
795 @code{cyrillic}, @code{armenian}, @code{hebrew}, @code{arabic}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
796 @code{syriac}, @code{nko}, @code{thaana}, @code{devanagari}, @code{bengali}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
797 @code{gurmukhi}, @code{gujarati}, @code{oriya}, @code{tamil}, @code{telugu}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
798 @code{kannada}, @code{malayam}, @code{sinhala}, @code{thai}, @code{lao}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
799 @code{tibetan}, @code{myanmar}, @code{georgian}, @code{hangul}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
800 @code{ethiopic}, @code{cherokee}, @code{canadian-aboriginal}, @code{ogham}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
801 @code{runic}, @code{khmer}, @code{mongolian}, @code{symbol}, @code{braille}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
802 @code{han}, @code{ideographic-description}, @code{cjk-misc}, @code{kana}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
803 @code{bopomofo}, @code{kanbun}, @code{yi}, @code{byzantine-musical-symbol}, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
804 @code{musical-symbol}, and @code{mathematical}. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
805 |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
806 @cindex font antialiasing (MS Windows) |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
807 @code{antialias} specifies the antialiasing to use for the font. @code{none} |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
808 means no antialiasing, @code{standard} means use standard antialiasing, |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
809 @code{subpixel} means use subpixel antialiasing (known as Cleartype on Windows), |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
810 @code{natural} means use subpixel antialiasing with adjusted spacing between |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
811 letters. If unspecified, the font will use the system default antialiasing. |
da85a08cc3c1
(Windows Files): w32-get-true-file-attributes default
Jason Rumney <jasonr@gnu.org>
parents:
87903
diff
changeset
|
812 |
84259 | 813 @node Windows Misc |
814 @section Miscellaneous Windows-specific features | |
815 | |
816 This section describes miscellaneous Windows-specific features. | |
817 | |
818 @vindex w32-use-visible-system-caret | |
819 @cindex screen reader software, MS-Windows | |
820 The variable @code{w32-use-visible-system-caret} is a flag that | |
821 determines whether to make the system caret visible. The default is | |
822 @code{nil}, which means Emacs draws its own cursor to indicate the | |
823 position of point. A non-@code{nil} value means Emacs will indicate | |
824 point location by the system caret; this facilitates use of screen | |
825 reader software. When this variable is non-@code{nil}, other | |
826 variables affecting the cursor display have no effect. | |
827 | |
828 @iftex | |
829 @inforef{Windows Misc, , emacs}, for information about additional | |
830 Windows-specific variables in this category. | |
831 @end iftex | |
832 | |
833 @ifnottex | |
834 @vindex w32-grab-focus-on-raise | |
835 @cindex frame focus policy, MS-Windows | |
836 The variable @code{w32-grab-focus-on-raise}, if set to a | |
837 non-@code{nil} value causes a frame to grab focus when it is raised. | |
838 The default is @code{t}, which fits well with the Windows default | |
839 click-to-focus policy. | |
840 | |
841 @vindex w32-list-proportional-fonts | |
842 The variable @code{w32-list-proportional-fonts} controls whether | |
843 proportional fonts are included in the font selection dialog. If its | |
844 value is non-@code{nil}, these fonts will be included. The default is | |
845 @code{nil}. | |
846 @end ifnottex | |
847 | |
848 @ifnottex | |
849 @include msdog-xtra.texi | |
850 @end ifnottex | |
851 | |
852 @ignore | |
853 arch-tag: f39d2590-5dcc-4318-88d9-0eb73ca10fa2 | |
854 @end ignore |