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 | |
| 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.
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/display.texi | 26 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 53 |
4 files changed, 57 insertions, 34 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 8cef196c90d..9abed71d1c7 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-11-26 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Text Display): Update the description, | ||
| 4 | cross-references, and indexing related to display of control | ||
| 5 | characters and raw bytes. | ||
| 6 | |||
| 1 | 2011-11-25 Chong Yidong <cyd@gnu.org> | 7 | 2011-11-25 Chong Yidong <cyd@gnu.org> |
| 2 | 8 | ||
| 3 | * frames.texi (Frames): Rewrite introduction. | 9 | * frames.texi (Frames): Rewrite introduction. |
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index a7ecc0dc551..4334d99461f 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -1216,7 +1216,7 @@ characters include @acronym{ASCII} numbers, letters, and punctuation | |||
| 1216 | characters, as well as many non-@acronym{ASCII} characters. | 1216 | characters, as well as many non-@acronym{ASCII} characters. |
| 1217 | 1217 | ||
| 1218 | @vindex tab-width | 1218 | @vindex tab-width |
| 1219 | @cindex control character | 1219 | @cindex control characters on display |
| 1220 | The @acronym{ASCII} character set contains non-printing @dfn{control | 1220 | The @acronym{ASCII} character set contains non-printing @dfn{control |
| 1221 | characters}. Two of these are displayed specially: the newline | 1221 | characters}. Two of these are displayed specially: the newline |
| 1222 | character (Unicode code point @code{U+000A}) is displayed by starting | 1222 | character (Unicode code point @code{U+000A}) is displayed by starting |
| @@ -1228,19 +1228,21 @@ value between 1 and 1000, inclusive. Note that how the tab character | |||
| 1228 | in the buffer is displayed has nothing to do with the definition of | 1228 | in the buffer is displayed has nothing to do with the definition of |
| 1229 | @key{TAB} as a command. | 1229 | @key{TAB} as a command. |
| 1230 | 1230 | ||
| 1231 | Other @acronym{ASCII} control characters are displayed as a caret | 1231 | Other @acronym{ASCII} control characters, whose codes are below |
| 1232 | @code{U+0020} (octal 40, decimal 32), are displayed as a caret | ||
| 1232 | (@samp{^}) followed by the non-control version of the character, with | 1233 | (@samp{^}) followed by the non-control version of the character, with |
| 1233 | the @code{escape-glyph} face. For instance, the @samp{control-A} | 1234 | the @code{escape-glyph} face. For instance, the @samp{control-A} |
| 1234 | character, @code{U+0001}, is displayed as @samp{^A}. | 1235 | character, @code{U+0001}, is displayed as @samp{^A}. |
| 1235 | 1236 | ||
| 1237 | @cindex octal escapes | ||
| 1236 | @vindex ctl-arrow | 1238 | @vindex ctl-arrow |
| 1237 | The non-@acronym{ASCII}, non-printing characters @code{U+0080} | 1239 | The raw bytes with codes @code{U+0080} (octal 200) through |
| 1238 | (octal 200) through @code{U+009F} (octal 237) are displayed as octal | 1240 | @code{U+009F} (octal 237) are displayed as @dfn{octal escape |
| 1239 | escape sequences, with the @code{escape-glyph} face. For instance, | 1241 | sequences}, with the @code{escape-glyph} face. For instance, |
| 1240 | character code @code{U+0098} (octal 230) is displayed as @samp{\230}. | 1242 | character code @code{U+0098} (octal 230) is displayed as @samp{\230}. |
| 1241 | If you change the buffer-local variable @code{ctl-arrow} to | 1243 | If you change the buffer-local variable @code{ctl-arrow} to |
| 1242 | @code{nil}, @acronym{ASCII} control characters are also displayed as | 1244 | @code{nil}, the @acronym{ASCII} control characters are also displayed |
| 1243 | octal escape sequences instead of caret escape sequences. | 1245 | as octal escape sequences instead of caret escape sequences. |
| 1244 | 1246 | ||
| 1245 | @vindex nobreak-char-display | 1247 | @vindex nobreak-char-display |
| 1246 | @cindex non-breaking space | 1248 | @cindex non-breaking space |
| @@ -1270,10 +1272,12 @@ elisp, The Emacs Lisp Reference Manual}. | |||
| 1270 | On graphical displays, some characters may have no glyphs in any of | 1272 | On graphical displays, some characters may have no glyphs in any of |
| 1271 | the fonts available to Emacs. These @dfn{glyphless characters} are | 1273 | the fonts available to Emacs. These @dfn{glyphless characters} are |
| 1272 | normally displayed as boxes containing the hexadecimal character code. | 1274 | normally displayed as boxes containing the hexadecimal character code. |
| 1273 | You can control the display method by customizing the variable | 1275 | Similarly, on text terminals, characters that cannot be displayed |
| 1274 | @code{glyphless-char-display-control}. @xref{Glyphless Chars,, | 1276 | using the terminal encoding (@pxref{Terminal Coding}) are normally |
| 1275 | Glyphless Character Display, elisp, The Emacs Lisp Reference Manual}, | 1277 | displayed as question signs. You can control the display method by |
| 1276 | for details. | 1278 | customizing the variable @code{glyphless-char-display-control}. |
| 1279 | @xref{Glyphless Chars,, Glyphless Character Display, elisp, The Emacs | ||
| 1280 | Lisp Reference Manual}, for details. | ||
| 1277 | 1281 | ||
| 1278 | @node Cursor Display | 1282 | @node Cursor Display |
| 1279 | @section Displaying the Cursor | 1283 | @section Displaying the Cursor |
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 |