Mercurial > emacs
annotate man/msdog-xtra.texi @ 73689:cd0ac1c9a67c
*** empty log message ***
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Sun, 05 Nov 2006 04:11:47 +0000 |
parents | 01e158ca557c |
children | 3d45362f1d38 |
rev | line source |
---|---|
70457 | 1 @c This is part of the Emacs manual. |
2 @c Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. | |
3 @c See file emacs.texi for copying conditions. | |
4 @c | |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
5 @c This file is included either in emacs-xtra.texi (when producing the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
6 @c printed version) or in the main Emacs manual (for the on-line version). |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
7 @node MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
8 @section Emacs and MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
9 @cindex MS-DOG |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
10 @cindex MS-DOS peculiarities |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
11 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
12 This section briefly describes the peculiarities of using Emacs on |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
13 the MS-DOS ``operating system'' (also known as ``MS-DOG''). |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
14 @iftex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
15 Information about Emacs and Microsoft's current operating system |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
16 Windows (also known as ``Losedows) is in the main Emacs manual |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
17 (@pxref{Microsoft Systems,,, emacs, the Emacs Manual}). |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
18 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
19 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
20 Information about peculiarities common to MS-DOS and Microsoft's |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
21 current operating systems Windows (also known as ``Losedows) is in |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
22 @ref{Microsoft Windows}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
23 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
24 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
25 If you build Emacs for MS-DOS, the binary will also run on Windows |
70486 | 26 3.X, Windows NT, Windows 9X/ME, Windows 2000/XP, or OS/2 as a DOS |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
27 application; all of this chapter applies for all of those systems, if |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
28 you use an Emacs that was built for MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
29 |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
30 @iftex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
31 @xref{Text and Binary,,,emacs, the Emacs Manual}, for information |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
32 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
33 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
34 @xref{Text and Binary}, for information |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
35 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
36 about Emacs' special handling of text files under MS-DOS (and Windows). |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
37 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
38 @menu |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
39 * Keyboard: MS-DOS Keyboard. Keyboard conventions on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
40 * Mouse: MS-DOS Mouse. Mouse conventions on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
41 * Display: MS-DOS Display. Fonts, frames and display size on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
42 * Files: MS-DOS File Names. File name conventions on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
43 * Printing: MS-DOS Printing. Printing specifics on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
44 * I18N: MS-DOS and MULE. Support for internationalization on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
45 * Processes: MS-DOS Processes. Running subprocesses on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
46 @end menu |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
47 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
48 @node MS-DOS Keyboard |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
49 @subsection Keyboard Usage on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
50 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
51 @kindex DEL @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
52 @kindex BS @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
53 The key that is called @key{DEL} in Emacs (because that's how it is |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
54 designated on most workstations) is known as @key{BS} (backspace) on a |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
55 PC. That is why the PC-specific terminal initialization remaps the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
56 @key{BS} key to act as @key{DEL}; the @key{DELETE} key is remapped to act |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
57 as @kbd{C-d} for the same reasons. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
58 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
59 @kindex C-g @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
60 @kindex C-BREAK @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
61 @cindex quitting on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
62 Emacs built for MS-DOS recognizes @kbd{C-@key{BREAK}} as a quit |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
63 character, just like @kbd{C-g}. This is because Emacs cannot detect |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
64 that you have typed @kbd{C-g} until it is ready for more input. As a |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
65 consequence, you cannot use @kbd{C-g} to stop a running command |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
66 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
67 (@pxref{Quitting,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
68 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
69 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
70 (@pxref{Quitting}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
71 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
72 By contrast, @kbd{C-@key{BREAK}} @emph{is} detected as soon as you |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
73 type it (as @kbd{C-g} is on other systems), so it can be used to stop |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
74 a running command and for emergency escape |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
75 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
76 (@pxref{Emergency Escape,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
77 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
78 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
79 (@pxref{Emergency Escape}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
80 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
81 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
82 @cindex Meta (under MS-DOS) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
83 @cindex Hyper (under MS-DOS) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
84 @cindex Super (under MS-DOS) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
85 @vindex dos-super-key |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
86 @vindex dos-hyper-key |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
87 The PC keyboard maps use the left @key{ALT} key as the @key{META} key. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
88 You have two choices for emulating the @key{SUPER} and @key{HYPER} keys: |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
89 choose either the right @key{CTRL} key or the right @key{ALT} key by |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
90 setting the variables @code{dos-hyper-key} and @code{dos-super-key} to 1 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
91 or 2 respectively. If neither @code{dos-super-key} nor |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
92 @code{dos-hyper-key} is 1, then by default the right @key{ALT} key is |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
93 also mapped to the @key{META} key. However, if the MS-DOS international |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
94 keyboard support program @file{KEYB.COM} is installed, Emacs will |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
95 @emph{not} map the right @key{ALT} to @key{META}, since it is used for |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
96 accessing characters like @kbd{~} and @kbd{@@} on non-US keyboard |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
97 layouts; in this case, you may only use the left @key{ALT} as @key{META} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
98 key. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
99 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
100 @kindex C-j @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
101 @vindex dos-keypad-mode |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
102 The variable @code{dos-keypad-mode} is a flag variable that controls |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
103 what key codes are returned by keys in the numeric keypad. You can also |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
104 define the keypad @key{ENTER} key to act like @kbd{C-j}, by putting the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
105 following line into your @file{_emacs} file: |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
106 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
107 @smallexample |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
108 ;; @r{Make the @key{ENTER} key from the numeric keypad act as @kbd{C-j}.} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
109 (define-key function-key-map [kp-enter] [?\C-j]) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
110 @end smallexample |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
111 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
112 @node MS-DOS Mouse |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
113 @subsection Mouse Usage on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
114 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
115 @cindex mouse support under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
116 Emacs on MS-DOS supports a mouse (on the default terminal only). |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
117 The mouse commands work as documented, including those that use menus |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
118 and the menu bar |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
119 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
120 (@pxref{Menu Bar,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
121 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
122 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
123 (@pxref{Menu Bar}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
124 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
125 Scroll bars don't work in MS-DOS Emacs. PC mice usually have only |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
126 two buttons; these act as @kbd{Mouse-1} and @kbd{Mouse-2}, but if you |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
127 press both of them together, that has the effect of @kbd{Mouse-3}. If |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
128 the mouse does have 3 buttons, Emacs detects that at startup, and all |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
129 the 3 buttons function normally, as on X. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
130 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
131 Help strings for menu-bar and pop-up menus are displayed in the echo |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
132 area when the mouse pointer moves across the menu items. Highlighting |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
133 of mouse-sensitive text |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
134 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
135 (@pxref{Mouse References,,,emacs, the Emacs Manual}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
136 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
137 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
138 (@pxref{Mouse References}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
139 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
140 is also supported. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
141 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
142 @cindex mouse, set number of buttons |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
143 @findex msdos-set-mouse-buttons |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
144 Some versions of mouse drivers don't report the number of mouse |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
145 buttons correctly. For example, mice with a wheel report that they |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
146 have 3 buttons, but only 2 of them are passed to Emacs; the clicks on |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
147 the wheel, which serves as the middle button, are not passed. In |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
148 these cases, you can use the @kbd{M-x msdos-set-mouse-buttons} command |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
149 to tell Emacs how many mouse buttons to expect. You could make such a |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
150 setting permanent by adding this fragment to your @file{_emacs} init |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
151 file: |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
152 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
153 @example |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
154 ;; @r{Treat the mouse like a 2-button mouse.} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
155 (msdos-set-mouse-buttons 2) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
156 @end example |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
157 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
158 @cindex Windows clipboard support |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
159 Emacs built for MS-DOS supports clipboard operations when it runs on |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
160 Windows. Commands that put text on the kill ring, or yank text from |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
161 the ring, check the Windows clipboard first, just as Emacs does on the |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
162 X Window System |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
163 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
164 (@pxref{Mouse Commands,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
165 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
166 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
167 (@pxref{Mouse Commands}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
168 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
169 Only the primary selection and the cut buffer are supported by MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
170 Emacs on Windows; the secondary selection always appears as empty. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
171 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
172 Due to the way clipboard access is implemented by Windows, the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
173 length of text you can put into the clipboard is limited by the amount |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
174 of free DOS memory that is available to Emacs. Usually, up to 620KB of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
175 text can be put into the clipboard, but this limit depends on the system |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
176 configuration and is lower if you run Emacs as a subprocess of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
177 another program. If the killed text does not fit, Emacs outputs a |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
178 message saying so, and does not put the text into the clipboard. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
179 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
180 Null characters also cannot be put into the Windows clipboard. If the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
181 killed text includes null characters, Emacs does not put such text into |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
182 the clipboard, and displays in the echo area a message to that effect. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
183 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
184 @vindex dos-display-scancodes |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
185 The variable @code{dos-display-scancodes}, when non-@code{nil}, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
186 directs Emacs to display the @acronym{ASCII} value and the keyboard scan code of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
187 each keystroke; this feature serves as a complement to the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
188 @code{view-lossage} command, for debugging. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
189 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
190 @node MS-DOS Display |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
191 @subsection Display on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
192 @cindex faces under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
193 @cindex fonts, emulating under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
194 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
195 Display on MS-DOS cannot use font variants, like bold or italic, but |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
196 it does support multiple faces, each of which can specify a foreground |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
197 and a background color. Therefore, you can get the full functionality |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
198 of Emacs packages that use fonts (such as @code{font-lock}, Enriched |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
199 Text mode, and others) by defining the relevant faces to use different |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
200 colors. Use the @code{list-colors-display} command |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
201 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
202 (@pxref{Frame Parameters,,,emacs, the Emacs Manual}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
203 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
204 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
205 (@pxref{Frame Parameters}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
206 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
207 and the @code{list-faces-display} command |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
208 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
209 (@pxref{Faces,,,emacs, the Emacs Manual}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
210 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
211 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
212 (@pxref{Faces}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
213 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
214 to see what colors and faces are available and what they look like. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
215 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
216 @xref{MS-DOS and MULE}, later in this chapter, for information on |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
217 how Emacs displays glyphs and characters that aren't supported by the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
218 native font built into the DOS display. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
219 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
220 @cindex cursor shape on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
221 When Emacs starts, it changes the cursor shape to a solid box. This |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
222 is for compatibility with other systems, where the box cursor is the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
223 default in Emacs. This default shape can be changed to a bar by |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
224 specifying the @code{cursor-type} parameter in the variable |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
225 @code{default-frame-alist} |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
226 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
227 (@pxref{Creating Frames,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
228 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
229 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
230 (@pxref{Creating Frames}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
231 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
232 The MS-DOS terminal doesn't support a vertical-bar cursor, |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
233 so the bar cursor is horizontal, and the @code{@var{width}} parameter, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
234 if specified by the frame parameters, actually determines its height. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
235 For this reason, the @code{bar} and @code{hbar} cursor types produce |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
236 the same effect on MS-DOS. As an extension, the bar cursor |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
237 specification can include the starting scan line of the cursor as well |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
238 as its width, like this: |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
239 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
240 @example |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
241 '(cursor-type bar @var{width} . @var{start}) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
242 @end example |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
243 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
244 @noindent |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
245 In addition, if the @var{width} parameter is negative, the cursor bar |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
246 begins at the top of the character cell. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
247 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
248 @cindex frames on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
249 The MS-DOS terminal can only display a single frame at a time. The |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
250 Emacs frame facilities work on MS-DOS much as they do on text-only |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
251 terminals |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
252 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
253 (@pxref{Frames,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
254 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
255 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
256 (@pxref{Frames}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
257 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
258 When you run Emacs from a DOS window on MS-Windows, you can make the |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
259 visible frame smaller than the full screen, but Emacs still cannot |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
260 display more than a single frame at a time. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
261 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
262 @cindex frame size under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
263 @findex mode4350 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
264 @findex mode25 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
265 The @code{mode4350} command switches the display to 43 or 50 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
266 lines, depending on your hardware; the @code{mode25} command switches |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
267 to the default 80x25 screen size. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
268 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
269 By default, Emacs only knows how to set screen sizes of 80 columns by |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
270 25, 28, 35, 40, 43 or 50 rows. However, if your video adapter has |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
271 special video modes that will switch the display to other sizes, you can |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
272 have Emacs support those too. When you ask Emacs to switch the frame to |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
273 @var{n} rows by @var{m} columns dimensions, it checks if there is a |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
274 variable called @code{screen-dimensions-@var{n}x@var{m}}, and if so, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
275 uses its value (which must be an integer) as the video mode to switch |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
276 to. (Emacs switches to that video mode by calling the BIOS @code{Set |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
277 Video Mode} function with the value of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
278 @code{screen-dimensions-@var{n}x@var{m}} in the @code{AL} register.) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
279 For example, suppose your adapter will switch to 66x80 dimensions when |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
280 put into video mode 85. Then you can make Emacs support this screen |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
281 size by putting the following into your @file{_emacs} file: |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
282 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
283 @example |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
284 (setq screen-dimensions-66x80 85) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
285 @end example |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
286 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
287 Since Emacs on MS-DOS can only set the frame size to specific |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
288 supported dimensions, it cannot honor every possible frame resizing |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
289 request. When an unsupported size is requested, Emacs chooses the next |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
290 larger supported size beyond the specified size. For example, if you |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
291 ask for 36x80 frame, you will get 40x80 instead. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
292 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
293 The variables @code{screen-dimensions-@var{n}x@var{m}} are used only |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
294 when they exactly match the specified size; the search for the next |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
295 larger supported size ignores them. In the above example, even if your |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
296 VGA supports 38x80 dimensions and you define a variable |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
297 @code{screen-dimensions-38x80} with a suitable value, you will still get |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
298 40x80 screen when you ask for a 36x80 frame. If you want to get the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
299 38x80 size in this case, you can do it by setting the variable named |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
300 @code{screen-dimensions-36x80} with the same video mode value as |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
301 @code{screen-dimensions-38x80}. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
302 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
303 Changing frame dimensions on MS-DOS has the effect of changing all the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
304 other frames to the new dimensions. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
305 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
306 @node MS-DOS File Names |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
307 @subsection File Names on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
308 @cindex file names under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
309 @cindex init file, default name under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
310 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
311 On MS-DOS, file names are case-insensitive and limited to eight |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
312 characters, plus optionally a period and three more characters. Emacs |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
313 knows enough about these limitations to handle file names that were |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
314 meant for other operating systems. For instance, leading dots |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
315 @samp{.} in file names are invalid in MS-DOS, so Emacs transparently |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
316 converts them to underscores @samp{_}; thus your default init file |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
317 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
318 (@pxref{Init File,,,emacs, the Emacs Manual}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
319 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
320 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
321 (@pxref{Init File}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
322 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
323 is called @file{_emacs} on MS-DOS. Excess characters before or after |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
324 the period are generally ignored by MS-DOS itself; thus, if you visit |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
325 the file @file{LongFileName.EvenLongerExtension}, you will silently |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
326 get @file{longfile.eve}, but Emacs will still display the long file |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
327 name on the mode line. Other than that, it's up to you to specify |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
328 file names which are valid under MS-DOS; the transparent conversion as |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
329 described above only works on file names built into Emacs. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
330 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
331 @cindex backup file names on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
332 The above restrictions on the file names on MS-DOS make it almost |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
333 impossible to construct the name of a backup file |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
334 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
335 (@pxref{Backup Names,,,emacs, the Emacs Manual}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
336 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
337 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
338 (@pxref{Backup Names}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
339 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
340 without losing some of the original file name characters. For |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
341 example, the name of a backup file for @file{docs.txt} is |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
342 @file{docs.tx~} even if single backup is used. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
343 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
344 @cindex file names under Windows 95/NT |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
345 @cindex long file names in DOS box under Windows 95/NT |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
346 If you run Emacs as a DOS application under Windows 9X, Windows ME, or |
70486 | 347 Windows 2000/XP, you can turn on support for long file names. If you do |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
348 that, Emacs doesn't truncate file names or convert them to lower case; |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
349 instead, it uses the file names that you specify, verbatim. To enable |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
350 long file name support, set the environment variable @env{LFN} to |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
351 @samp{y} before starting Emacs. Unfortunately, Windows NT doesn't allow |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
352 DOS programs to access long file names, so Emacs built for MS-DOS will |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
353 only see their short 8+3 aliases. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
354 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
355 @cindex @env{HOME} directory under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
356 MS-DOS has no notion of home directory, so Emacs on MS-DOS pretends |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
357 that the directory where it is installed is the value of the @env{HOME} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
358 environment variable. That is, if your Emacs binary, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
359 @file{emacs.exe}, is in the directory @file{c:/utils/emacs/bin}, then |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
360 Emacs acts as if @env{HOME} were set to @samp{c:/utils/emacs}. In |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
361 particular, that is where Emacs looks for the init file @file{_emacs}. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
362 With this in mind, you can use @samp{~} in file names as an alias for |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
363 the home directory, as you would on GNU or Unix. You can also set |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
364 @env{HOME} variable in the environment before starting Emacs; its |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
365 value will then override the above default behavior. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
366 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
367 Emacs on MS-DOS handles the directory name @file{/dev} specially, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
368 because of a feature in the emulator libraries of DJGPP that pretends |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
369 I/O devices have names in that directory. We recommend that you avoid |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
370 using an actual directory named @file{/dev} on any disk. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
371 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
372 @node MS-DOS Printing |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
373 @subsection Printing and MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
374 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
375 Printing commands, such as @code{lpr-buffer} |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
376 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
377 (@pxref{Printing,,,emacs, the Emacs Manual}) and @code{ps-print-buffer} |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
378 (@pxref{PostScript,,,emacs, the Emacs Manual}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
379 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
380 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
381 (@pxref{Printing}) and @code{ps-print-buffer} (@pxref{PostScript}) |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
382 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
383 can work on MS-DOS by sending the output to one of the printer ports, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
384 if a Posix-style @code{lpr} program is unavailable. The same Emacs |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
385 variables control printing on all systems, but in some cases they have |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
386 different default values on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
387 |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
388 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
389 @xref{Windows Printing,,,emacs, the Emacs Manual}, |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
390 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
391 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
392 @xref{Windows Printing}, |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
393 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
394 for details about setting up printing to a networked printer. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
395 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
396 Some printers expect DOS codepage encoding of non-@acronym{ASCII} text, even |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
397 though they are connected to a Windows machine which uses a different |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
398 encoding for the same locale. For example, in the Latin-1 locale, DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
399 uses codepage 850 whereas Windows uses codepage 1252. @xref{MS-DOS and |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
400 MULE}. When you print to such printers from Windows, you can use the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
401 @kbd{C-x RET c} (@code{universal-coding-system-argument}) command before |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
402 @kbd{M-x lpr-buffer}; Emacs will then convert the text to the DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
403 codepage that you specify. For example, @kbd{C-x RET c cp850-dos RET |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
404 M-x lpr-region RET} will print the region while converting it to the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
405 codepage 850 encoding. You may need to create the @code{cp@var{nnn}} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
406 coding system with @kbd{M-x codepage-setup}. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
407 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
408 @vindex dos-printer |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
409 @vindex dos-ps-printer |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
410 For backwards compatibility, the value of @code{dos-printer} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
411 (@code{dos-ps-printer}), if it has a value, overrides the value of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
412 @code{printer-name} (@code{ps-printer-name}), on MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
413 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
414 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
415 @node MS-DOS and MULE |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
416 @subsection International Support on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
417 @cindex international support @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
418 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
419 Emacs on MS-DOS supports the same international character sets as it |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
420 does on GNU, Unix and other platforms |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
421 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
422 (@pxref{International,,,emacs, the Emacs Manual}), |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
423 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
424 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
425 (@pxref{International}), |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
426 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
427 including coding systems for converting between the different |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
428 character sets. However, due to incompatibilities between |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
429 MS-DOS/MS-Windows and other systems, there are several DOS-specific |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
430 aspects of this support that you should be aware of. This section |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
431 describes these aspects. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
432 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
433 The description below is largely specific to the MS-DOS port of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
434 Emacs, especially where it talks about practical implications for |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
435 Emacs users. For other operating systems, see the @file{code-pages.el} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
436 package, which implements support for MS-DOS- and MS-Windows-specific |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
437 encodings for all platforms other than MS-DOS. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
438 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
439 @table @kbd |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
440 @item M-x dos-codepage-setup |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
441 Set up Emacs display and coding systems as appropriate for the current |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
442 DOS codepage. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
443 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
444 @item M-x codepage-setup |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
445 Create a coding system for a certain DOS codepage. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
446 @end table |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
447 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
448 @cindex codepage, MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
449 @cindex DOS codepages |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
450 MS-DOS is designed to support one character set of 256 characters at |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
451 any given time, but gives you a variety of character sets to choose |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
452 from. The alternative character sets are known as @dfn{DOS codepages}. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
453 Each codepage includes all 128 @acronym{ASCII} characters, but the other 128 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
454 characters (codes 128 through 255) vary from one codepage to another. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
455 Each DOS codepage is identified by a 3-digit number, such as 850, 862, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
456 etc. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
457 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
458 In contrast to X, which lets you use several fonts at the same time, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
459 MS-DOS normally doesn't allow use of several codepages in a single |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
460 session. MS-DOS was designed to load a single codepage at system |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
461 startup, and require you to reboot in order to change |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
462 it@footnote{Normally, one particular codepage is burnt into the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
463 display memory, while other codepages can be installed by modifying |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
464 system configuration files, such as @file{CONFIG.SYS}, and rebooting. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
465 While there is third-party software that allows changing the codepage |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
466 without rebooting, we describe here how a stock MS-DOS system |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
467 behaves.}. Much the same limitation applies when you run DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
468 executables on other systems such as MS-Windows. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
469 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
470 @cindex unibyte operation @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
471 If you invoke Emacs on MS-DOS with the @samp{--unibyte} option |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
472 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
473 (@pxref{Initial Options,,,emacs, the Emacs Manual}), |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
474 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
475 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
476 (@pxref{Initial Options}), |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
477 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
478 Emacs does not perform any conversion of non-@acronym{ASCII} |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
479 characters. Instead, it reads and writes any non-@acronym{ASCII} |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
480 characters verbatim, and sends their 8-bit codes to the display |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
481 verbatim. Thus, unibyte Emacs on MS-DOS supports the current |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
482 codepage, whatever it may be, but cannot even represent any other |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
483 characters. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
484 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
485 @vindex dos-codepage |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
486 For multibyte operation on MS-DOS, Emacs needs to know which |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
487 characters the chosen DOS codepage can display. So it queries the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
488 system shortly after startup to get the chosen codepage number, and |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
489 stores the number in the variable @code{dos-codepage}. Some systems |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
490 return the default value 437 for the current codepage, even though the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
491 actual codepage is different. (This typically happens when you use the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
492 codepage built into the display hardware.) You can specify a different |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
493 codepage for Emacs to use by setting the variable @code{dos-codepage} in |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
494 your init file. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
495 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
496 @cindex language environment, automatic selection on @r{MS-DOS} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
497 Multibyte Emacs supports only certain DOS codepages: those which can |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
498 display Far-Eastern scripts, like the Japanese codepage 932, and those |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
499 that encode a single ISO 8859 character set. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
500 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
501 The Far-Eastern codepages can directly display one of the MULE |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
502 character sets for these countries, so Emacs simply sets up to use the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
503 appropriate terminal coding system that is supported by the codepage. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
504 The special features described in the rest of this section mostly |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
505 pertain to codepages that encode ISO 8859 character sets. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
506 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
507 For the codepages which correspond to one of the ISO character sets, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
508 Emacs knows the character set name based on the codepage number. Emacs |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
509 automatically creates a coding system to support reading and writing |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
510 files that use the current codepage, and uses this coding system by |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
511 default. The name of this coding system is @code{cp@var{nnn}}, where |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
512 @var{nnn} is the codepage number.@footnote{The standard Emacs coding |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
513 systems for ISO 8859 are not quite right for the purpose, because |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
514 typically the DOS codepage does not match the standard ISO character |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
515 codes. For example, the letter @samp{@,{c}} (@samp{c} with cedilla) has |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
516 code 231 in the standard Latin-1 character set, but the corresponding |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
517 DOS codepage 850 uses code 135 for this glyph.} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
518 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
519 @cindex mode line @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
520 All the @code{cp@var{nnn}} coding systems use the letter @samp{D} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
521 (for ``DOS'') as their mode-line mnemonic. Since both the terminal |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
522 coding system and the default coding system for file I/O are set to |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
523 the proper @code{cp@var{nnn}} coding system at startup, it is normal |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
524 for the mode line on MS-DOS to begin with @samp{-DD\-}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
525 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
526 @xref{Mode Line,,,emacs, the Emacs Manual}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
527 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
528 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
529 @xref{Mode Line}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
530 @end ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
531 Far-Eastern DOS terminals do not use the @code{cp@var{nnn}} coding |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
532 systems, and thus their initial mode line looks like the Emacs |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
533 default. |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
534 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
535 Since the codepage number also indicates which script you are using, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
536 Emacs automatically runs @code{set-language-environment} to select the |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
537 language environment for that script |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
538 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
539 (@pxref{Language Environments,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
540 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
541 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
542 (@pxref{Language Environments}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
543 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
544 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
545 If a buffer contains a character belonging to some other ISO 8859 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
546 character set, not the one that the chosen DOS codepage supports, Emacs |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
547 displays it using a sequence of @acronym{ASCII} characters. For example, if the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
548 current codepage doesn't have a glyph for the letter @samp{@`o} (small |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
549 @samp{o} with a grave accent), it is displayed as @samp{@{`o@}}, where |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
550 the braces serve as a visual indication that this is a single character. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
551 (This may look awkward for some non-Latin characters, such as those from |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
552 Greek or Hebrew alphabets, but it is still readable by a person who |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
553 knows the language.) Even though the character may occupy several |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
554 columns on the screen, it is really still just a single character, and |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
555 all Emacs commands treat it as one. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
556 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
557 @cindex IBM graphics characters (MS-DOS) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
558 @cindex box-drawing characters (MS-DOS) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
559 @cindex line-drawing characters (MS-DOS) |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
560 Not all characters in DOS codepages correspond to ISO 8859 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
561 characters---some are used for other purposes, such as box-drawing |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
562 characters and other graphics. Emacs maps these characters to two |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
563 special character sets called @code{eight-bit-control} and |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
564 @code{eight-bit-graphic}, and displays them as their IBM glyphs. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
565 However, you should be aware that other systems might display these |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
566 characters differently, so you should avoid them in text that might be |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
567 copied to a different operating system, or even to another DOS machine |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
568 that uses a different codepage. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
569 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
570 @vindex dos-unsupported-character-glyph |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
571 Emacs supports many other characters sets aside from ISO 8859, but it |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
572 cannot display them on MS-DOS. So if one of these multibyte characters |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
573 appears in a buffer, Emacs on MS-DOS displays them as specified by the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
574 @code{dos-unsupported-character-glyph} variable; by default, this glyph |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
575 is an empty triangle. Use the @kbd{C-u C-x =} command to display the |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
576 actual code and character set of such characters. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
577 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
578 @xref{Position Info,,,emacs, the Emacs Manual}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
579 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
580 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
581 @xref{Position Info}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
582 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
583 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
584 @findex codepage-setup |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
585 By default, Emacs defines a coding system to support the current |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
586 codepage. To define a coding system for some other codepage (e.g., to |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
587 visit a file written on a DOS machine in another country), use the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
588 @kbd{M-x codepage-setup} command. It prompts for the 3-digit code of |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
589 the codepage, with completion, then creates the coding system for the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
590 specified codepage. You can then use the new coding system to read and |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
591 write files, but you must specify it explicitly for the file command |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
592 when you want to use it |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
593 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
594 (@pxref{Text Coding,,,emacs, the Emacs Manual}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
595 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
596 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
597 (@pxref{Text Coding}). |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
598 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
599 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
600 These coding systems are also useful for visiting a file encoded using |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
601 a DOS codepage, using Emacs running on some other operating system. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
602 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
603 @cindex MS-Windows codepages |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
604 MS-Windows provides its own codepages, which are different from the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
605 DOS codepages for the same locale. For example, DOS codepage 850 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
606 supports the same character set as Windows codepage 1252; DOS codepage |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
607 855 supports the same character set as Windows codepage 1251, etc. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
608 The MS-Windows version of Emacs uses the current codepage for display |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
609 when invoked with the @samp{-nw} option. Support for codepages in the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
610 Windows port of Emacs is part of the @file{code-pages.el} package. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
611 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
612 @node MS-DOS Processes |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
613 @subsection Subprocesses on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
614 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
615 @cindex compilation under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
616 @cindex inferior processes under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
617 @findex compile @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
618 @findex grep @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
619 Because MS-DOS is a single-process ``operating system,'' |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
620 asynchronous subprocesses are not available. In particular, Shell |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
621 mode and its variants do not work. Most Emacs features that use |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
622 asynchronous subprocesses also don't work on MS-DOS, including |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
623 Shell mode and GUD. When in doubt, try and see; commands that |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
624 don't work output an error message saying that asynchronous processes |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
625 aren't supported. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
626 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
627 Compilation under Emacs with @kbd{M-x compile}, searching files with |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
628 @kbd{M-x grep} and displaying differences between files with @kbd{M-x |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
629 diff} do work, by running the inferior processes synchronously. This |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
630 means you cannot do any more editing until the inferior process |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
631 finishes. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
632 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
633 Spell checking also works, by means of special support for synchronous |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
634 invocation of the @code{ispell} program. This is slower than the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
635 asynchronous invocation on other platforms |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
636 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
637 Instead of the Shell mode, which doesn't work on MS-DOS, you can use |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
638 the @kbd{M-x eshell} command. This invokes the Eshell package that |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
639 implements a Posix-like shell entirely in Emacs Lisp. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
640 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
641 By contrast, Emacs compiled as a native Windows application |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
642 @strong{does} support asynchronous subprocesses. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
643 @iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
644 @xref{Windows Processes,,,emacs, the Emacs Manual}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
645 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
646 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
647 @xref{Windows Processes}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
648 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
649 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
650 @cindex printing under MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
651 Printing commands, such as @code{lpr-buffer} |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
652 @iftex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
653 (@pxref{Printing,,,emacs, the Emacs Manual}) and |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
654 @code{ps-print-buffer} (@pxref{PostScript,,,emacs, the Emacs Manual}), |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
655 work in MS-DOS by sending the output to one of the printer ports. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
656 @xref{MS-DOS Printing,,,emacs, the Emacs Manual}. |
70465
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
657 @end iftex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
658 @ifnottex |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
659 (@pxref{Printing}) and @code{ps-print-buffer} (@pxref{PostScript}), |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
660 work in MS-DOS by sending the output to one of the printer ports. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
661 @xref{MS-DOS Printing}. |
5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
Eli Zaretskii <eliz@gnu.org>
parents:
70461
diff
changeset
|
662 @end ifnottex |
70440
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
663 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
664 When you run a subprocess synchronously on MS-DOS, make sure the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
665 program terminates and does not try to read keyboard input. If the |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
666 program does not terminate on its own, you will be unable to terminate |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
667 it, because MS-DOS provides no general way to terminate a process. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
668 Pressing @kbd{C-c} or @kbd{C-@key{BREAK}} might sometimes help in these |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
669 cases. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
670 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
671 Accessing files on other machines is not supported on MS-DOS. Other |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
672 network-oriented commands such as sending mail, Web browsing, remote |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
673 login, etc., don't work either, unless network access is built into |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
674 MS-DOS with some network redirector. |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
675 |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
676 @cindex directory listing on MS-DOS |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
677 @vindex dired-listing-switches @r{(MS-DOS)} |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
678 Dired on MS-DOS uses the @code{ls-lisp} package where other |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
679 platforms use the system @code{ls} command. Therefore, Dired on |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
680 MS-DOS supports only some of the possible options you can mention in |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
681 the @code{dired-listing-switches} variable. The options that work are |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
682 @samp{-A}, @samp{-a}, @samp{-c}, @samp{-i}, @samp{-r}, @samp{-S}, |
5e1c038e4afa
New file, a portion of emacs-xtra.texi.
Eli Zaretskii <eliz@gnu.org>
parents:
diff
changeset
|
683 @samp{-s}, @samp{-t}, and @samp{-u}. |
70461 | 684 |
685 @ignore | |
686 arch-tag: 868d50ff-07f8-4a13-a807-dab6f1cdb431 | |
687 @end ignore |