diff options
| author | Eli Zaretskii | 2011-11-26 15:51:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-11-26 15:51:58 +0200 |
| commit | a3dcc84e76ab44bf0855a1392a7e0b9bde45e1c3 (patch) | |
| tree | f81203e0a306c29db579853a2128484847f2f284 /doc/lispref | |
| parent | 394305db3457d6799f87cc058ac58ff577991b4e (diff) | |
| download | emacs-a3dcc84e76ab44bf0855a1392a7e0b9bde45e1c3.tar.gz emacs-a3dcc84e76ab44bf0855a1392a7e0b9bde45e1c3.zip | |
Update and enhance documentation of display of control characters.
doc/emacs/display.texi (Text Display): Update the description,
cross-references, and indexing related to display of control
characters and raw bytes.
doc/lispref/display.texi (Usual Display): Update the description,
cross-references, and indexing related to display of control
characters and raw bytes.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 53 |
2 files changed, 36 insertions, 23 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index b0a7ce4ae47..72efbee0b5a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-11-26 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Usual Display): Update the description, | ||
| 4 | cross-references, and indexing related to display of control | ||
| 5 | characters and raw bytes. | ||
| 6 | |||
| 1 | 2011-11-25 Martin Rudalics <rudalics@gmx.at> | 7 | 2011-11-25 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * windows.texi (Splitting Windows): Fix description of | 9 | * windows.texi (Splitting Windows): Fix description of |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 9849420b1f5..2032ecdc5bc 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -5638,39 +5638,45 @@ code. You can override these conventions by setting up a display table | |||
| 5638 | @itemize @bullet | 5638 | @itemize @bullet |
| 5639 | @item | 5639 | @item |
| 5640 | Character codes 32 through 126 map to glyph codes 32 through 126. | 5640 | Character codes 32 through 126 map to glyph codes 32 through 126. |
| 5641 | Normally this means they display as themselves. | 5641 | Normally this means they display as themselves, but a display table |
| 5642 | can change that. | ||
| 5642 | 5643 | ||
| 5643 | @item | 5644 | @item |
| 5644 | Character code 9 is a horizontal tab. It displays as whitespace | 5645 | Character code 9 is a horizontal tab. It displays as whitespace |
| 5645 | up to a position determined by @code{tab-width}. | 5646 | up to a position determined by @code{tab-width}. |
| 5646 | 5647 | ||
| 5647 | @item | 5648 | @item |
| 5648 | Character code 10 is a newline. | 5649 | Character code 10 is a newline. It is normally invisible on display, |
| 5650 | and has the effect of ending the preceding line and starting a new | ||
| 5651 | line. | ||
| 5649 | 5652 | ||
| 5650 | @item | 5653 | @item |
| 5651 | All other codes in the range 0 through 31, and code 127, display in one | 5654 | All other codes in the range 0 through 31 display in one of two ways |
| 5652 | of two ways according to the value of @code{ctl-arrow}. If it is | 5655 | according to the value of @code{ctl-arrow}. If it is non-@code{nil}, |
| 5653 | non-@code{nil}, these codes map to sequences of two glyphs, where the | 5656 | these codes map to sequences of two glyphs, where the first glyph is |
| 5654 | first glyph is the @acronym{ASCII} code for @samp{^}. (A display table can | 5657 | the @acronym{ASCII} code for @samp{^}. (A display table can specify a |
| 5655 | specify a glyph to use instead of @samp{^}.) Otherwise, these codes map | 5658 | glyph to use instead of @samp{^}.) Otherwise, these codes map just |
| 5656 | just like the codes in the range 128 to 255. | 5659 | like the raw bytes in the range 128 to 255 (described below). |
| 5657 | 5660 | ||
| 5658 | On MS-DOS terminals, Emacs arranges by default for the character code | 5661 | @cindex octal escapes |
| 5659 | 127 to be mapped to the glyph code 127, which normally displays as an | ||
| 5660 | empty polygon. This glyph is used to display non-@acronym{ASCII} characters | ||
| 5661 | that the MS-DOS terminal doesn't support. @xref{MS-DOS and MULE,,, | ||
| 5662 | emacs, The GNU Emacs Manual}. | ||
| 5663 | |||
| 5664 | @item | 5662 | @item |
| 5665 | Character codes 128 through 255 map to sequences of four glyphs, where | 5663 | Raw bytes (@pxref{Text Representations}) with codes 128 through 255, |
| 5666 | the first glyph is the @acronym{ASCII} code for @samp{\}, and the others are | 5664 | and the @acronym{ASCII} control character with code 127, display as |
| 5667 | digit characters representing the character code in octal. (A display | 5665 | sequences of four glyphs, where the first glyph is the @acronym{ASCII} |
| 5668 | table can specify a glyph to use instead of @samp{\}.) | 5666 | code for @samp{\}, and the others are digit characters representing |
| 5667 | the character code in octal. (A display table can specify a glyph to | ||
| 5668 | use instead of @samp{\}.) This is known as the @dfn{octal escape} | ||
| 5669 | display. | ||
| 5669 | 5670 | ||
| 5670 | @item | 5671 | @item |
| 5671 | Multibyte character codes above 256 are displayed as themselves, or as | 5672 | Non-@acronym{ASCII} character codes above 127 are displayed as |
| 5672 | a question mark or a hex code or an empty box if the terminal cannot | 5673 | themselves, if the terminal and the available fonts support them. |
| 5673 | display that character. | 5674 | Characters that are not supported by the terminal, or (on window |
| 5675 | systems) have no fonts available for them, are displayed as a question | ||
| 5676 | mark or a hex code or an empty box. @xref{Glyphless Chars}, for how | ||
| 5677 | to control display of the characters not supported by the terminal or | ||
| 5678 | fonts. Display tables can change how a character is displayed, even | ||
| 5679 | if it is supported. | ||
| 5674 | @end itemize | 5680 | @end itemize |
| 5675 | 5681 | ||
| 5676 | The usual display conventions apply even when there is a display | 5682 | The usual display conventions apply even when there is a display |
| @@ -5695,7 +5701,8 @@ mode line using the new values, call the function | |||
| 5695 | This buffer-local variable controls how control characters are | 5701 | This buffer-local variable controls how control characters are |
| 5696 | displayed. If it is non-@code{nil}, they are displayed as a caret | 5702 | displayed. If it is non-@code{nil}, they are displayed as a caret |
| 5697 | followed by the character: @samp{^A}. If it is @code{nil}, they are | 5703 | followed by the character: @samp{^A}. If it is @code{nil}, they are |
| 5698 | displayed as a backslash followed by three octal digits: @samp{\001}. | 5704 | displayed as octal escapes: a backslash followed by three octal |
| 5705 | digits, as in @samp{\001}. | ||
| 5699 | @end defopt | 5706 | @end defopt |
| 5700 | 5707 | ||
| 5701 | @defopt tab-width | 5708 | @defopt tab-width |