aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-09-30 19:12:17 +0000
committerEli Zaretskii2008-09-30 19:12:17 +0000
commitd073c1ebc066f590dd45e807e80fef3d056b4605 (patch)
tree624879969993cb3aeebcae4fa313ba0ed271f83c
parentf98c9a2379e6974f120d6111d3c3a95c46a38faa (diff)
downloademacs-d073c1ebc066f590dd45e807e80fef3d056b4605.tar.gz
emacs-d073c1ebc066f590dd45e807e80fef3d056b4605.zip
(MS-DOS Printing, MS-DOS and MULE): No need to create cpNNN coding systems
anymore. (MS-DOS and MULE): Don't mention code-pages.el. Don't mention support for unibyte mode. Don't mention line-drawing characters. Don't mention dos-unsupported-char-glyph.
-rw-r--r--doc/emacs/msdog-xtra.texi76
1 files changed, 4 insertions, 72 deletions
diff --git a/doc/emacs/msdog-xtra.texi b/doc/emacs/msdog-xtra.texi
index e9f62b64847..d0ca76f0a99 100644
--- a/doc/emacs/msdog-xtra.texi
+++ b/doc/emacs/msdog-xtra.texi
@@ -402,8 +402,7 @@ MULE}. When you print to such printers from Windows, you can use the
402@kbd{M-x lpr-buffer}; Emacs will then convert the text to the DOS 402@kbd{M-x lpr-buffer}; Emacs will then convert the text to the DOS
403codepage that you specify. For example, @kbd{C-x RET c cp850-dos RET 403codepage that you specify. For example, @kbd{C-x RET c cp850-dos RET
404M-x lpr-region RET} will print the region while converting it to the 404M-x lpr-region RET} will print the region while converting it to the
405codepage 850 encoding. You may need to create the @code{cp@var{nnn}} 405codepage 850 encoding.
406coding system with @kbd{M-x codepage-setup}.
407 406
408@vindex dos-printer 407@vindex dos-printer
409@vindex dos-ps-printer 408@vindex dos-ps-printer
@@ -432,17 +431,12 @@ describes these aspects.
432 431
433 The description below is largely specific to the MS-DOS port of 432 The description below is largely specific to the MS-DOS port of
434Emacs, especially where it talks about practical implications for 433Emacs, especially where it talks about practical implications for
435Emacs users. For other operating systems, see the @file{code-pages.el} 434Emacs users.
436package, which implements support for MS-DOS- and MS-Windows-specific
437encodings for all platforms other than MS-DOS.
438 435
439@table @kbd 436@table @kbd
440@item M-x dos-codepage-setup 437@item M-x dos-codepage-setup
441Set up Emacs display and coding systems as appropriate for the current 438Set up Emacs display and coding systems as appropriate for the current
442DOS codepage. 439DOS codepage.
443
444@item M-x codepage-setup
445Create a coding system for a certain DOS codepage.
446@end table 440@end table
447 441
448@cindex codepage, MS-DOS 442@cindex codepage, MS-DOS
@@ -467,21 +461,6 @@ without rebooting, we describe here how a stock MS-DOS system
467behaves.}. Much the same limitation applies when you run DOS 461behaves.}. Much the same limitation applies when you run DOS
468executables on other systems such as MS-Windows. 462executables on other systems such as MS-Windows.
469 463
470@cindex unibyte operation @r{(MS-DOS)}
471 If you invoke Emacs on MS-DOS with the @samp{--unibyte} option
472@iftex
473(@pxref{Initial Options,,,emacs, the Emacs Manual}),
474@end iftex
475@ifnottex
476(@pxref{Initial Options}),
477@end ifnottex
478Emacs does not perform any conversion of non-@acronym{ASCII}
479characters. Instead, it reads and writes any non-@acronym{ASCII}
480characters verbatim, and sends their 8-bit codes to the display
481verbatim. Thus, unibyte Emacs on MS-DOS supports the current
482codepage, whatever it may be, but cannot even represent any other
483characters.
484
485@vindex dos-codepage 464@vindex dos-codepage
486 For multibyte operation on MS-DOS, Emacs needs to know which 465 For multibyte operation on MS-DOS, Emacs needs to know which
487characters the chosen DOS codepage can display. So it queries the 466characters the chosen DOS codepage can display. So it queries the
@@ -505,7 +484,7 @@ The special features described in the rest of this section mostly
505pertain to codepages that encode ISO 8859 character sets. 484pertain to codepages that encode ISO 8859 character sets.
506 485
507 For the codepages which correspond to one of the ISO character sets, 486 For the codepages which correspond to one of the ISO character sets,
508Emacs knows the character set name based on the codepage number. Emacs 487Emacs knows the character set based on the codepage number. Emacs
509automatically creates a coding system to support reading and writing 488automatically creates a coding system to support reading and writing
510files that use the current codepage, and uses this coding system by 489files that use the current codepage, and uses this coding system by
511default. The name of this coding system is @code{cp@var{nnn}}, where 490default. The name of this coding system is @code{cp@var{nnn}}, where
@@ -554,60 +533,13 @@ knows the language.) Even though the character may occupy several
554columns on the screen, it is really still just a single character, and 533columns on the screen, it is really still just a single character, and
555all Emacs commands treat it as one. 534all Emacs commands treat it as one.
556 535
557@cindex IBM graphics characters (MS-DOS)
558@cindex box-drawing characters (MS-DOS)
559@cindex line-drawing characters (MS-DOS)
560 Not all characters in DOS codepages correspond to ISO 8859
561characters---some are used for other purposes, such as box-drawing
562characters and other graphics. Emacs maps these characters to two
563special character sets called @code{eight-bit-control} and
564@code{eight-bit-graphic}, and displays them as their IBM glyphs.
565However, you should be aware that other systems might display these
566characters differently, so you should avoid them in text that might be
567copied to a different operating system, or even to another DOS machine
568that uses a different codepage.
569
570@vindex dos-unsupported-character-glyph
571 Emacs supports many other characters sets aside from ISO 8859, but it
572cannot display them on MS-DOS. So if one of these multibyte characters
573appears in a buffer, Emacs on MS-DOS displays them as specified by the
574@code{dos-unsupported-character-glyph} variable; by default, this glyph
575is an empty triangle. Use the @kbd{C-u C-x =} command to display the
576actual code and character set of such characters.
577@iftex
578@xref{Position Info,,,emacs, the Emacs Manual}.
579@end iftex
580@ifnottex
581@xref{Position Info}.
582@end ifnottex
583
584@findex codepage-setup
585 By default, Emacs defines a coding system to support the current
586codepage. To define a coding system for some other codepage (e.g., to
587visit a file written on a DOS machine in another country), use the
588@kbd{M-x codepage-setup} command. It prompts for the 3-digit code of
589the codepage, with completion, then creates the coding system for the
590specified codepage. You can then use the new coding system to read and
591write files, but you must specify it explicitly for the file command
592when you want to use it
593@iftex
594(@pxref{Text Coding,,,emacs, the Emacs Manual}).
595@end iftex
596@ifnottex
597(@pxref{Text Coding}).
598@end ifnottex
599
600 These coding systems are also useful for visiting a file encoded using
601a DOS codepage, using Emacs running on some other operating system.
602
603@cindex MS-Windows codepages 536@cindex MS-Windows codepages
604 MS-Windows provides its own codepages, which are different from the 537 MS-Windows provides its own codepages, which are different from the
605DOS codepages for the same locale. For example, DOS codepage 850 538DOS codepages for the same locale. For example, DOS codepage 850
606supports the same character set as Windows codepage 1252; DOS codepage 539supports the same character set as Windows codepage 1252; DOS codepage
607855 supports the same character set as Windows codepage 1251, etc. 540855 supports the same character set as Windows codepage 1251, etc.
608The MS-Windows version of Emacs uses the current codepage for display 541The MS-Windows version of Emacs uses the current codepage for display
609when invoked with the @samp{-nw} option. Support for codepages in the 542when invoked with the @samp{-nw} option.
610Windows port of Emacs is part of the @file{code-pages.el} package.
611 543
612@node MS-DOS Processes 544@node MS-DOS Processes
613@subsection Subprocesses on MS-DOS 545@subsection Subprocesses on MS-DOS