diff options
| author | Richard M. Stallman | 2001-02-17 17:52:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-02-17 17:52:52 +0000 |
| commit | 8e375db276c58f0d54d169bcb8b78911bf31e2fd (patch) | |
| tree | a10409fde01576b452410929a9df1b39cc269976 | |
| parent | df9d7630f46e4011be1227836c183082964f118f (diff) | |
| download | emacs-8e375db276c58f0d54d169bcb8b78911bf31e2fd.tar.gz emacs-8e375db276c58f0d54d169bcb8b78911bf31e2fd.zip | |
Delete find-file-text and find-file-binary.
Misc cleanups.
| -rw-r--r-- | man/msdog.texi | 128 |
1 files changed, 53 insertions, 75 deletions
diff --git a/man/msdog.texi b/man/msdog.texi index fcc83810ce7..099686215de 100644 --- a/man/msdog.texi +++ b/man/msdog.texi | |||
| @@ -105,19 +105,17 @@ supported. | |||
| 105 | @cindex mouse, set number of buttons | 105 | @cindex mouse, set number of buttons |
| 106 | @findex msdos-set-mouse-buttons | 106 | @findex msdos-set-mouse-buttons |
| 107 | Some versions of mouse drivers don't report the number of mouse | 107 | Some versions of mouse drivers don't report the number of mouse |
| 108 | buttons correctly. For example, mice with a wheel report that they have | 108 | buttons correctly. For example, mice with a wheel report that they |
| 109 | 3 buttons, but only 2 of them are passed to Emacs; the clicks on the | 109 | have 3 buttons, but only 2 of them are passed to Emacs; the clicks on |
| 110 | wheel, which serves as the middle button, are not passed. In these | 110 | the wheel, which serves as the middle button, are not passed. In |
| 111 | cases, you can use the @kbd{M-x msdos-set-mouse-buttons} command to set | 111 | these cases, you can use the @kbd{M-x msdos-set-mouse-buttons} command |
| 112 | the notion of number of buttons used by Emacs. This command prompts for | 112 | to tell Emacs how many mouse buttons to expect. You could make such a |
| 113 | the number of buttons, and forces Emacs to behave as if your mouse had | 113 | setting permanent by adding this fragment to your @file{_emacs} init |
| 114 | that number of buttons. You could make such a setting permanent by | 114 | file: |
| 115 | adding this fragment to your @file{_emacs} init file: | ||
| 116 | 115 | ||
| 117 | @example | 116 | @example |
| 118 | ;; Force Emacs to behave as if the mouse had | 117 | ;; @r{Treat the mouse like a 2-button mouse.} |
| 119 | ;; only 2 buttons | 118 | (msdos-set-mouse-buttons 2) |
| 120 | (msdos-set-mouse-buttons 2) | ||
| 121 | @end example | 119 | @end example |
| 122 | 120 | ||
| 123 | @cindex Windows clipboard support | 121 | @cindex Windows clipboard support |
| @@ -167,15 +165,15 @@ native font built into the DOS display. | |||
| 167 | 165 | ||
| 168 | @cindex cursor shape on MS-DOS | 166 | @cindex cursor shape on MS-DOS |
| 169 | When Emacs starts, it changes the cursor shape to a solid box. This | 167 | When Emacs starts, it changes the cursor shape to a solid box. This |
| 170 | is for compatibility with the Unix version, where the box cursor is the | 168 | is for compatibility with other systems, where the box cursor is the |
| 171 | default. This default shape can be changed to a bar by specifying the | 169 | default in Emacs. This default shape can be changed to a bar by |
| 172 | @code{cursor-type} parameter in the variable @code{default-frame-alist} | 170 | specifying the @code{cursor-type} parameter in the variable |
| 173 | (@pxref{Creating Frames}). The MS-DOS terminal doesn't support a | 171 | @code{default-frame-alist} (@pxref{Creating Frames}). The MS-DOS |
| 174 | vertical-bar cursor, so the bar cursor is horizontal, and the | 172 | terminal doesn't support a vertical-bar cursor, so the bar cursor is |
| 175 | @code{@var{width}} parameter, if specified by the frame parameters, | 173 | horizontal, and the @code{@var{width}} parameter, if specified by the |
| 176 | actually determines its height. As an extension, the bar cursor | 174 | frame parameters, actually determines its height. As an extension, |
| 177 | specification can include the starting scan line of the cursor as well | 175 | the bar cursor specification can include the starting scan line of the |
| 178 | as its width, like this: | 176 | cursor as well as its width, like this: |
| 179 | 177 | ||
| 180 | @example | 178 | @example |
| 181 | '(cursor-type bar @var{width} . @var{start}) | 179 | '(cursor-type bar @var{width} . @var{start}) |
| @@ -186,12 +184,12 @@ In addition, if the @var{width} parameter is negative, the cursor bar | |||
| 186 | begins at the top of the character cell. | 184 | begins at the top of the character cell. |
| 187 | 185 | ||
| 188 | @cindex frames on MS-DOS | 186 | @cindex frames on MS-DOS |
| 189 | Multiple frames (@pxref{Frames}) are supported on MS-DOS, but they all | 187 | The MS-DOS terminal can only display a single frame at a time. The |
| 190 | overlap, so you only see a single frame at any given moment. That | 188 | Emacs frame facilities work on MS-DOS much as they do on text-only |
| 191 | single visible frame occupies the entire screen. When you run Emacs | 189 | terminals (@pxref{Frames}). When you run Emacs from a DOS window on |
| 192 | from MS-Windows DOS box, you can make the visible frame smaller than | 190 | MS-Windows, you can make the visible frame smaller than the full |
| 193 | the full screen, but Emacs still cannot display more than a single | 191 | screen, but Emacs still cannot display more than a single frame at a |
| 194 | frame at a time. | 192 | time. |
| 195 | 193 | ||
| 196 | @cindex frame size under MS-DOS | 194 | @cindex frame size under MS-DOS |
| 197 | @findex mode4350 | 195 | @findex mode4350 |
| @@ -287,9 +285,9 @@ environment variable. That is, if your Emacs binary, | |||
| 287 | Emacs acts as if @env{HOME} were set to @samp{c:/utils/emacs}. In | 285 | Emacs acts as if @env{HOME} were set to @samp{c:/utils/emacs}. In |
| 288 | particular, that is where Emacs looks for the init file @file{_emacs}. | 286 | particular, that is where Emacs looks for the init file @file{_emacs}. |
| 289 | With this in mind, you can use @samp{~} in file names as an alias for | 287 | With this in mind, you can use @samp{~} in file names as an alias for |
| 290 | the home directory, as you would in Unix. You can also set @env{HOME} | 288 | the home directory, as you would on GNU or Unix. You can also set |
| 291 | variable in the environment before starting Emacs; its value will then | 289 | @env{HOME} variable in the environment before starting Emacs; its |
| 292 | override the above default behavior. | 290 | value will then override the above default behavior. |
| 293 | 291 | ||
| 294 | Emacs on MS-DOS handles the directory name @file{/dev} specially, | 292 | Emacs on MS-DOS handles the directory name @file{/dev} specially, |
| 295 | because of a feature in the emulator libraries of DJGPP that pretends | 293 | because of a feature in the emulator libraries of DJGPP that pretends |
| @@ -301,8 +299,7 @@ using an actual directory named @file{/dev} on any disk. | |||
| 301 | @cindex text and binary files on MS-DOS/MS-Windows | 299 | @cindex text and binary files on MS-DOS/MS-Windows |
| 302 | 300 | ||
| 303 | GNU Emacs uses newline characters to separate text lines. This is the | 301 | GNU Emacs uses newline characters to separate text lines. This is the |
| 304 | convention used on Unix, on which GNU Emacs was developed, and on GNU | 302 | convention used on GNU and Unix. |
| 305 | systems since they are modeled on Unix. | ||
| 306 | 303 | ||
| 307 | @cindex end-of-line conversion on MS-DOS/MS-Windows | 304 | @cindex end-of-line conversion on MS-DOS/MS-Windows |
| 308 | MS-DOS and MS-Windows normally use carriage-return linefeed, a | 305 | MS-DOS and MS-Windows normally use carriage-return linefeed, a |
| @@ -323,9 +320,10 @@ not agree with the file size information known to the operating system. | |||
| 323 | 320 | ||
| 324 | In addition, if Emacs recognizes from a file's contents that it uses | 321 | In addition, if Emacs recognizes from a file's contents that it uses |
| 325 | newline rather than carriage-return linefeed as its line separator, it | 322 | newline rather than carriage-return linefeed as its line separator, it |
| 326 | does not perform EOL conversion when reading or writing that file. Thus, | 323 | does not perform EOL conversion when reading or writing that file. |
| 327 | you can read and edit files from Unix or GNU systems on MS-DOS with no | 324 | Thus, you can read and edit files from GNU and Unix systems on MS-DOS |
| 328 | special effort, and they will be left with their Unix-style EOLs. | 325 | with no special effort, and they will retain their Unix-style |
| 326 | end-of-line convention after you edit them. | ||
| 329 | 327 | ||
| 330 | The mode line indicates whether end-of-line translation was used for | 328 | The mode line indicates whether end-of-line translation was used for |
| 331 | the current buffer. If MS-DOS end-of-line translation is in use for the | 329 | the current buffer. If MS-DOS end-of-line translation is in use for the |
| @@ -336,25 +334,22 @@ instead of the backslash, to alert you that the file's EOL format is not | |||
| 336 | the usual carriage-return linefeed. | 334 | the usual carriage-return linefeed. |
| 337 | 335 | ||
| 338 | @cindex DOS-to-Unix conversion of files | 336 | @cindex DOS-to-Unix conversion of files |
| 339 | @pindex dos2unix | 337 | To visit a file and specify whether it uses DOS-style or Unix-style |
| 340 | End-of-line conversion is part of the general coding system conversion | 338 | end-of-line, specify a coding system (@pxref{Specify Coding}). For |
| 341 | mechanism, so the way to control whether to treat a text file as | 339 | example, @kbd{C-x @key{RET} c unix @key{RET} C-x C-f foobar.txt} |
| 342 | DOS-style or Unix-style is with the commands for specifying a coding | 340 | visits the file @file{foobar.txt} without converting the EOLs; if some |
| 343 | system (@pxref{Specify Coding}). For example, @kbd{C-x @key{RET} c unix | 341 | line ends with a carriage-return linefeed pair, Emacs will display |
| 344 | @key{RET} C-x C-f foobar.txt} visits the file @file{foobar.txt} without | 342 | @samp{^M} at the end of that line. Similarly, you can direct Emacs to |
| 345 | converting the EOLs; if that file has carriage-return linefeed pairs at | 343 | save a buffer in a specified EOL format with the @kbd{C-x @key{RET} f} |
| 346 | the end of its lines, Emacs will display @samp{^M} at the end of each | 344 | command. For example, to save a buffer with Unix EOL format, type |
| 347 | line. Similarly, you can force Emacs to save a buffer with specific EOL | 345 | @kbd{C-x @key{RET} f unix @key{RET} C-x C-s}. If you visit a file |
| 348 | format with the @kbd{C-x @key{RET} f} command. For example, to save a | 346 | with DOS EOL conversion, then save it with Unix EOL format, that |
| 349 | buffer with Unix EOL format, type @kbd{C-x @key{RET} f unix @key{RET} | 347 | effectively converts the file to Unix EOL style, like @code{dos2unix}. |
| 350 | C-x C-s}. Thus, visiting a file with DOS EOL conversion, then saving it | ||
| 351 | with Unix EOL format effectively converts the file to Unix text style, | ||
| 352 | like the popular program @code{dos2unix} does. | ||
| 353 | 348 | ||
| 354 | @cindex untranslated file system | 349 | @cindex untranslated file system |
| 355 | @findex add-untranslated-filesystem | 350 | @findex add-untranslated-filesystem |
| 356 | When you use NFS or Samba to access file systems that reside on | 351 | When you use NFS or Samba to access file systems that reside on |
| 357 | computers using Unix or GNU systems, Emacs should not perform | 352 | computers using GNU or Unix systems, Emacs should not perform |
| 358 | end-of-line translation on any files in these file systems--not even | 353 | end-of-line translation on any files in these file systems--not even |
| 359 | when you create a new file. To request this, designate these file | 354 | when you create a new file. To request this, designate these file |
| 360 | systems as @dfn{untranslated} file systems by calling the function | 355 | systems as @dfn{untranslated} file systems by calling the function |
| @@ -387,10 +382,10 @@ the function @code{remove-untranslated-filesystem}. This function takes | |||
| 387 | one argument, which should be a string just like the one that was used | 382 | one argument, which should be a string just like the one that was used |
| 388 | previously with @code{add-untranslated-filesystem}. | 383 | previously with @code{add-untranslated-filesystem}. |
| 389 | 384 | ||
| 390 | Designating a file system as untranslated does @strong{not} disable | 385 | Designating a file system as untranslated does not affect character |
| 391 | code conversions as specified by the coding systems set up by your | 386 | set conversion, only end-of-line conversion. Essentially, it directs |
| 392 | language environment, it only affects the EOL conversions, by forcing | 387 | Emacs to create new files with the Unix-style convention of using |
| 393 | Emacs to create new files with Unix-style newline-only EOLs. | 388 | newline at the end of a line. @xref{Coding Systems}. |
| 394 | 389 | ||
| 395 | @vindex file-name-buffer-file-type-alist | 390 | @vindex file-name-buffer-file-type-alist |
| 396 | @cindex binary files, on MS-DOS/MS-Windows | 391 | @cindex binary files, on MS-DOS/MS-Windows |
| @@ -415,33 +410,16 @@ always writes those files with DOS-style EOLs. | |||
| 415 | the file-name patterns in @code{file-name-buffer-file-type-alist}, the | 410 | the file-name patterns in @code{file-name-buffer-file-type-alist}, the |
| 416 | EOL conversion is determined by @code{file-name-buffer-file-type-alist}. | 411 | EOL conversion is determined by @code{file-name-buffer-file-type-alist}. |
| 417 | 412 | ||
| 418 | @findex find-file-text | ||
| 419 | @findex find-file-binary | ||
| 420 | You can visit a file and specify whether to treat it as text or binary | ||
| 421 | using the commands @code{find-file-text} and @code{find-file-binary}. | ||
| 422 | @code{find-file-text} specifies DOS EOL conversions, but leaves the | ||
| 423 | other coding conversions unspecified (Emacs determines the required | ||
| 424 | conversions via the usual defaults and coding-detection mechanisms). On | ||
| 425 | the other hand, @code{find-file-binary} turns off @emph{all} | ||
| 426 | coding-system conversions. | ||
| 427 | |||
| 428 | @findex find-file-literally@r{, and binary files} | ||
| 429 | The @code{find-file-text} and @code{find-file-binary} commands are | ||
| 430 | only available when Emacs runs on MS-DOS or MS-Windows. The command | ||
| 431 | @code{find-file-literally}, which is available on all platforms, | ||
| 432 | produces the same effect as @code{find-file-binary}. | ||
| 433 | |||
| 434 | @node MS-DOS Printing | 413 | @node MS-DOS Printing |
| 435 | @section Printing and MS-DOS | 414 | @section Printing and MS-DOS |
| 436 | 415 | ||
| 437 | Printing commands, such as @code{lpr-buffer} (@pxref{Hardcopy}) and | 416 | Printing commands, such as @code{lpr-buffer} (@pxref{Hardcopy}) and |
| 438 | @code{ps-print-buffer} (@pxref{PostScript}) can work in MS-DOS and | 417 | @code{ps-print-buffer} (@pxref{PostScript}) can work in MS-DOS and |
| 439 | MS-Windows by sending the output to one of the printer ports, if a | 418 | MS-Windows by sending the output to one of the printer ports, if a |
| 440 | Unix-style @code{lpr} program is unavailable. This behaviour is | 419 | Unix-style @code{lpr} program is unavailable. The same Emacs |
| 441 | controlled by the same variables that control printing with @code{lpr} | 420 | variables control printing on all systems (@pxref{Hardcopy}), but in |
| 442 | on Unix (@pxref{Hardcopy}, @pxref{PostScript Variables}), but the | 421 | some cases they have different default values on MS-DOS and |
| 443 | defaults for these variables on MS-DOS and MS-Windows are not the same | 422 | MS-Windows. |
| 444 | as the defaults on Unix. | ||
| 445 | 423 | ||
| 446 | @vindex printer-name @r{(MS-DOS)} | 424 | @vindex printer-name @r{(MS-DOS)} |
| 447 | If you want to use your local printer, printing on it in the usual DOS | 425 | If you want to use your local printer, printing on it in the usual DOS |
| @@ -703,7 +681,7 @@ when you want to use it (@pxref{Specify Coding}). | |||
| 703 | a DOS codepage, using Emacs running on some other operating system. | 681 | a DOS codepage, using Emacs running on some other operating system. |
| 704 | 682 | ||
| 705 | @cindex MS-Windows codepages | 683 | @cindex MS-Windows codepages |
| 706 | MS-Windows features its own codepages, which are different from the | 684 | MS-Windows provides its own codepages, which are different from the |
| 707 | DOS codepages for the same locale. For example, DOS codepage 850 | 685 | DOS codepages for the same locale. For example, DOS codepage 850 |
| 708 | supports the same character set as Windows codepage 1252; DOS codepage | 686 | supports the same character set as Windows codepage 1252; DOS codepage |
| 709 | 855 supports the same character set as Windows codepage 1251, etc. | 687 | 855 supports the same character set as Windows codepage 1251, etc. |