Mercurial > emacs
comparison man/display.texi @ 90105:7e3f621f1dd4
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-15
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-95
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-96
Move Gnus images into etc/images
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-97
- miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-105
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-14
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-15
Update from CVS: lisp/imap.el (imap-log): Doc fix.
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-16
Merge from emacs--cvs-trunk--0
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 18 Feb 2005 00:41:50 +0000 |
parents | fa9654493afb 8116a5e9f2a1 |
children | 29e773288013 |
comparison
equal
deleted
inserted
replaced
90104:a01e7a9f1659 | 90105:7e3f621f1dd4 |
---|---|
21 * Useless Whitespace:: Showing possibly-spurious trailing whitespace. | 21 * Useless Whitespace:: Showing possibly-spurious trailing whitespace. |
22 * Follow Mode:: Follow mode lets two windows scroll as one. | 22 * Follow Mode:: Follow mode lets two windows scroll as one. |
23 * Selective Display:: Hiding lines with lots of indentation. | 23 * Selective Display:: Hiding lines with lots of indentation. |
24 * Optional Mode Line:: Optional mode line display features. | 24 * Optional Mode Line:: Optional mode line display features. |
25 * Text Display:: How text characters are normally displayed. | 25 * Text Display:: How text characters are normally displayed. |
26 * Cursor Display:: Features for displaying the cursor. | |
26 * Display Custom:: Information on variables for customizing display. | 27 * Display Custom:: Information on variables for customizing display. |
27 * Cursor Display:: Features for displaying the cursor. | |
28 @end menu | 28 @end menu |
29 | 29 |
30 @node Faces | 30 @node Faces |
31 @section Using Multiple Typefaces | 31 @section Using Multiple Typefaces |
32 @cindex faces | 32 @cindex faces |
33 | 33 |
34 Emacs supports using multiple styles of displaying characters. Each | 34 You can specify various styles for displaying text using |
35 style is called a @dfn{face}. Each face can specify various @dfn{face | 35 @dfn{faces}. Each face can specify various @dfn{face attributes}, |
36 attributes}, such as the font family, the height, weight and slant of | 36 such as the font family, the height, weight and slant of the |
37 the characters, the foreground and background color, and underlining | 37 characters, the foreground and background color, and underlining or |
38 or overlining. A face does not have to specify all of these | 38 overlining. A face does not have to specify all of these attributes; |
39 attributes; often it inherits many of them from another face. | 39 often it inherits most of them from another face. |
40 | 40 |
41 On a window system, all the Emacs face attributes are meaningful. | 41 On a window system, all the Emacs face attributes are meaningful. |
42 On a character terminal, only some of them work. Some character | 42 On a character terminal, only some of them work. Some character |
43 terminals support inverse video, bold, and underline attributes; some | 43 terminals support inverse video, bold, and underline attributes; some |
44 support colors. Character terminals generally do not support changing | 44 support colors. Character terminals generally do not support changing |
194 @cindex Font Lock mode | 194 @cindex Font Lock mode |
195 @cindex mode, Font Lock | 195 @cindex mode, Font Lock |
196 @cindex syntax highlighting and coloring | 196 @cindex syntax highlighting and coloring |
197 | 197 |
198 Font Lock mode is a minor mode, always local to a particular buffer, | 198 Font Lock mode is a minor mode, always local to a particular buffer, |
199 which highlights (or ``fontifies'') using various faces according to | 199 which highlights (or ``fontifies'') the buffer contents according to |
200 the syntax of the text you are editing. It can recognize comments and | 200 the syntax of the text you are editing. It can recognize comments and |
201 strings in most languages; in several languages, it can also recognize | 201 strings in most languages; in several languages, it can also recognize |
202 and properly highlight various other important constructs---for | 202 and properly highlight various other important constructs---for |
203 example, names of functions being defined or reserved keywords. | 203 example, names of functions being defined or reserved keywords. |
204 Some special modes, such as Occur mode and Info mode, have completely | 204 Some special modes, such as Occur mode and Info mode, have completely |
225 | 225 |
226 @example | 226 @example |
227 (global-font-lock-mode 1) | 227 (global-font-lock-mode 1) |
228 @end example | 228 @end example |
229 | 229 |
230 @noindent | |
231 You can also specify this using the menu bar Options menu, specifying | |
232 first Syntax Highlighting and then Save Options. | |
233 | |
230 Font Lock mode uses several specifically named faces to do its job, | 234 Font Lock mode uses several specifically named faces to do its job, |
231 including @code{font-lock-string-face}, @code{font-lock-comment-face}, | 235 including @code{font-lock-string-face}, @code{font-lock-comment-face}, |
232 and others. The easiest way to find them all is to use completion | 236 and others. The easiest way to find them all is to use completion |
233 on the face name in @code{set-face-foreground}. | 237 on the face name in @code{set-face-foreground}. |
234 | 238 |
245 | 249 |
246 @item | 250 @item |
247 Customize the faces interactively with @kbd{M-x customize-face}, as | 251 Customize the faces interactively with @kbd{M-x customize-face}, as |
248 described in @ref{Face Customization}. | 252 described in @ref{Face Customization}. |
249 @end itemize | 253 @end itemize |
250 | |
251 To get the full benefit of Font Lock mode, you need to choose a | |
252 default font which has bold, italic, and bold-italic variants; or else | |
253 you need to have a color or gray-scale screen. | |
254 | 254 |
255 @vindex font-lock-maximum-decoration | 255 @vindex font-lock-maximum-decoration |
256 The variable @code{font-lock-maximum-decoration} specifies the | 256 The variable @code{font-lock-maximum-decoration} specifies the |
257 preferred level of fontification, for modes that provide multiple | 257 preferred level of fontification, for modes that provide multiple |
258 levels. Level 1 is the least amount of fontification; some modes | 258 levels. Level 1 is the least amount of fontification; some modes |
445 @end table | 445 @end table |
446 | 446 |
447 @kindex C-l | 447 @kindex C-l |
448 @findex recenter | 448 @findex recenter |
449 The most basic scrolling command is @kbd{C-l} (@code{recenter}) with | 449 The most basic scrolling command is @kbd{C-l} (@code{recenter}) with |
450 no argument. It clears the entire screen and redisplays all windows. | 450 no argument. It scrolls the selected window so that point is halfway |
451 In addition, it scrolls the selected window so that point is halfway | 451 down from the top of the window. On a text terminal, it also clears |
452 down from the top of the window. | 452 the screen and redisplays all windows. That is useful in case the |
453 screen is garbled (@pxref{Screen Garbled}). | |
453 | 454 |
454 @kindex C-v | 455 @kindex C-v |
455 @kindex M-v | 456 @kindex M-v |
456 @kindex NEXT | 457 @kindex NEXT |
457 @kindex PRIOR | 458 @kindex PRIOR |
564 @section Horizontal Scrolling | 565 @section Horizontal Scrolling |
565 @cindex horizontal scrolling | 566 @cindex horizontal scrolling |
566 | 567 |
567 @dfn{Horizontal scrolling} means shifting all the lines sideways | 568 @dfn{Horizontal scrolling} means shifting all the lines sideways |
568 within a window---so that some of the text near the left margin is not | 569 within a window---so that some of the text near the left margin is not |
569 displayed at all. Emacs does this automatically in any window that | 570 displayed at all. When the text in a window is scrolled horizontally, |
570 uses line truncation rather than continuation: whenever point moves | 571 text lines are truncated rather than continued (@pxref{Display |
571 off the left or right edge of the screen, Emacs scrolls the buffer | 572 Custom}). Whenever a window shows truncated lines, Emacs |
572 horizontally to make point visible. | 573 automatically updates its horizontal scrolling whenever point moves |
573 | 574 off the left or right edge of the screen. You can also use these |
574 When a window has been scrolled horizontally, text lines are truncated | 575 commands to do explicit horizontal scrolling. |
575 rather than continued (@pxref{Continuation Lines}), with a @samp{$} | |
576 appearing in the first column when there is text truncated to the left, | |
577 and in the last column when there is text truncated to the right. | |
578 | |
579 You can use these commands to do explicit horizontal scrolling. | |
580 | 576 |
581 @table @kbd | 577 @table @kbd |
582 @item C-x < | 578 @item C-x < |
583 Scroll text in current window to the left (@code{scroll-left}). | 579 Scroll text in current window to the left (@code{scroll-left}). |
584 @item C-x > | 580 @item C-x > |
600 normally (with each line starting at the window's left margin); | 596 normally (with each line starting at the window's left margin); |
601 attempting to do so has no effect. This means that you don't have to | 597 attempting to do so has no effect. This means that you don't have to |
602 calculate the argument precisely for @w{@kbd{C-x >}}; any sufficiently large | 598 calculate the argument precisely for @w{@kbd{C-x >}}; any sufficiently large |
603 argument will restore the normal display. | 599 argument will restore the normal display. |
604 | 600 |
605 If you scroll a window horizontally by hand, that sets a lower bound | 601 If you use those commands to scroll a window horizontally, that sets |
606 for automatic horizontal scrolling. Automatic scrolling will continue | 602 a lower bound for automatic horizontal scrolling. Automatic scrolling |
607 to scroll the window, but never farther to the right than the amount | 603 will continue to scroll the window, but never farther to the right |
608 you previously set by @code{scroll-left}. | 604 than the amount you previously set by @code{scroll-left}. |
609 | 605 |
610 @vindex hscroll-margin | 606 @vindex hscroll-margin |
611 The value of the variable @code{hscroll-margin} controls how close | 607 The value of the variable @code{hscroll-margin} controls how close |
612 to the window's edges point is allowed to get before the window will | 608 to the window's edges point is allowed to get before the window will |
613 be automatically scrolled. It is measured in columns. If the value | 609 be automatically scrolled. It is measured in columns. If the value |
706 @cindex mode, Follow | 702 @cindex mode, Follow |
707 @findex follow-mode | 703 @findex follow-mode |
708 @cindex windows, synchronizing | 704 @cindex windows, synchronizing |
709 @cindex synchronizing windows | 705 @cindex synchronizing windows |
710 | 706 |
711 @dfn{Follow mode} is a minor mode that makes two windows showing the | 707 @dfn{Follow mode} is a minor mode that makes two windows, both |
712 same buffer scroll as one tall ``virtual window.'' To use Follow mode, | 708 showing the same buffer, scroll as a single tall ``virtual window.'' |
713 go to a frame with just one window, split it into two side-by-side | 709 To use Follow mode, go to a frame with just one window, split it into |
714 windows using @kbd{C-x 3}, and then type @kbd{M-x follow-mode}. From | 710 two side-by-side windows using @kbd{C-x 3}, and then type @kbd{M-x |
715 then on, you can edit the buffer in either of the two windows, or scroll | 711 follow-mode}. From then on, you can edit the buffer in either of the |
716 either one; the other window follows it. | 712 two windows, or scroll either one; the other window follows it. |
717 | 713 |
718 In Follow mode, if you move point outside the portion visible in one | 714 In Follow mode, if you move point outside the portion visible in one |
719 window and into the portion visible in the other window, that selects | 715 window and into the portion visible in the other window, that selects |
720 the other window---again, treating the two as if they were parts of | 716 the other window---again, treating the two as if they were parts of |
721 one large window. | 717 one large window. |
753 @vindex selective-display-ellipses | 749 @vindex selective-display-ellipses |
754 If you set the variable @code{selective-display-ellipses} to | 750 If you set the variable @code{selective-display-ellipses} to |
755 @code{nil}, the three dots do not appear at the end of a line that | 751 @code{nil}, the three dots do not appear at the end of a line that |
756 precedes hidden lines. Then there is no visible indication of the | 752 precedes hidden lines. Then there is no visible indication of the |
757 hidden lines. This variable becomes local automatically when set. | 753 hidden lines. This variable becomes local automatically when set. |
754 | |
755 See also @ref{Outline Mode} for another way to hide part of | |
756 the text in a buffer. | |
758 | 757 |
759 @node Optional Mode Line | 758 @node Optional Mode Line |
760 @section Optional Mode Line Features | 759 @section Optional Mode Line Features |
761 | 760 |
762 @cindex buffer size display | 761 @cindex buffer size display |
912 as Latin-1 graphics. In unibyte mode, if you enable European display | 911 as Latin-1 graphics. In unibyte mode, if you enable European display |
913 they are displayed using their graphics (assuming your terminal supports | 912 they are displayed using their graphics (assuming your terminal supports |
914 them), otherwise as escape sequences. @xref{Single-Byte Character | 913 them), otherwise as escape sequences. @xref{Single-Byte Character |
915 Support}. | 914 Support}. |
916 | 915 |
917 @node Display Custom | |
918 @section Customization of Display | |
919 | |
920 This section contains information for customization only. Beginning | |
921 users should skip it. | |
922 | |
923 @vindex mode-line-inverse-video | |
924 The variable @code{mode-line-inverse-video} is an obsolete way of | |
925 controlling whether the mode line is displayed in inverse video; the | |
926 preferred way of doing this is to change the @code{mode-line} face. | |
927 @xref{Mode Line}. However, if @code{mode-line-inverse-video} has a | |
928 value of @code{nil}, then the @code{mode-line} face will be ignored, | |
929 and mode-lines will be drawn using the default text face. | |
930 @xref{Faces}. | |
931 | |
932 @vindex inverse-video | |
933 If the variable @code{inverse-video} is non-@code{nil}, Emacs attempts | |
934 to invert all the lines of the display from what they normally are. | |
935 | |
936 @vindex visible-bell | |
937 If the variable @code{visible-bell} is non-@code{nil}, Emacs attempts | |
938 to make the whole screen blink when it would normally make an audible bell | |
939 sound. This variable has no effect if your terminal does not have a way | |
940 to make the screen blink.@refill | |
941 | |
942 @vindex no-redraw-on-reenter | |
943 When you reenter Emacs after suspending, Emacs normally clears the | |
944 screen and redraws the entire display. On some terminals with more than | |
945 one page of memory, it is possible to arrange the termcap entry so that | |
946 the @samp{ti} and @samp{te} strings (output to the terminal when Emacs | |
947 is entered and exited, respectively) switch between pages of memory so | |
948 as to use one page for Emacs and another page for other output. Then | |
949 you might want to set the variable @code{no-redraw-on-reenter} | |
950 non-@code{nil}; this tells Emacs to assume, when resumed, that the | |
951 screen page it is using still contains what Emacs last wrote there. | |
952 | |
953 @vindex echo-keystrokes | |
954 The variable @code{echo-keystrokes} controls the echoing of multi-character | |
955 keys; its value is the number of seconds of pause required to cause echoing | |
956 to start, or zero meaning don't echo at all. @xref{Echo Area}. | |
957 | |
958 @vindex ctl-arrow | |
959 If the variable @code{ctl-arrow} is @code{nil}, all control characters in | |
960 the buffer are displayed with octal escape sequences, except for newline | |
961 and tab. Altering the value of @code{ctl-arrow} makes it local to the | |
962 current buffer; until that time, the default value is in effect. The | |
963 default is initially @code{t}. @xref{Display Tables,, Display Tables, | |
964 elisp, The Emacs Lisp Reference Manual}. | |
965 | |
966 @vindex tab-width | |
967 Normally, a tab character in the buffer is displayed as whitespace which | |
968 extends to the next display tab stop position, and display tab stops come | |
969 at intervals equal to eight spaces. The number of spaces per tab is | |
970 controlled by the variable @code{tab-width}, which is made local by | |
971 changing it, just like @code{ctl-arrow}. Note that how the tab character | |
972 in the buffer is displayed has nothing to do with the definition of | |
973 @key{TAB} as a command. The variable @code{tab-width} must have an | |
974 integer value between 1 and 1000, inclusive. | |
975 | |
976 @c @vindex truncate-lines @c No index entry here, because we have one | |
977 @c in the continuation section. | |
978 If the variable @code{truncate-lines} is non-@code{nil}, then each | |
979 line of text gets just one screen line for display; if the text line is | |
980 too long, display shows only the part that fits. If | |
981 @code{truncate-lines} is @code{nil}, then long text lines display as | |
982 more than one screen line, enough to show the whole text of the line. | |
983 @xref{Continuation Lines}. Altering the value of @code{truncate-lines} | |
984 makes it local to the current buffer; until that time, the default value | |
985 is in effect. The default is initially @code{nil}. | |
986 | |
987 @c @vindex truncate-partial-width-windows @c Idx entry is in Split Windows. | |
988 If the variable @code{truncate-partial-width-windows} is | |
989 non-@code{nil}, it forces truncation rather than continuation in any | |
990 window less than the full width of the screen or frame, regardless of | |
991 the value of @code{truncate-lines}. For information about side-by-side | |
992 windows, see @ref{Split Window}. See also @ref{Display,, Display, | |
993 elisp, The Emacs Lisp Reference Manual}. | |
994 | |
995 @vindex overflow-newline-into-fringe | |
996 If the variable @code{overflow-newline-into-fringe} is | |
997 non-@code{nil} on a window system, it specifies that lines which are | |
998 exactly as wide as the window (not counting the final newline | |
999 character) shall not be broken into two lines on the display (with | |
1000 just the newline on the second line). Instead, the newline | |
1001 overflows into the right fringe, and the cursor will be displayed in | |
1002 the fringe when positioned on that newline. | |
1003 | |
1004 @vindex indicate-buffer-boundaries | |
1005 On a window system, Emacs may indicate the buffer boundaries in the | |
1006 fringes. The buffer boundaries, i.e. first and last line in the | |
1007 buffer, can be marked with angle bitmaps in the left or right fringe. | |
1008 This can be combined with up and down arrow bitmaps shown at the top | |
1009 and bottom of the left or right fringe if the window can be scrolled | |
1010 in either direction. | |
1011 | |
1012 The buffer-local variable @code{indicate-buffer-boundaries} controls | |
1013 how the buffer boundaries and window scrolling is indicated in the | |
1014 fringes. | |
1015 | |
1016 If the value is @code{left} or @code{right}, both angle and arrow | |
1017 bitmaps are displayed in the left or right fringe, respectively. | |
1018 | |
1019 If value is an alist, each element @code{(@var{indicator} . | |
1020 @var{position})} specifies the position of one of the indicators. | |
1021 The @var{indicator} must be one of @code{top}, @code{bottom}, | |
1022 @code{up}, @code{down}, or @code{t} which specifies the default | |
1023 position for the indicators not present in the alist. | |
1024 The @var{position} is one of @code{left}, @code{right}, or @code{ni} | |
1025 which specifies not to show this indicator. | |
1026 | |
1027 For example, @code{((top . left) (t . right))} places the top angle | |
1028 bitmap in left fringe, the bottom angle bitmap in right fringe, and | |
1029 both arrow bitmaps in right fringe. To show just the angle bitmaps in | |
1030 the left fringe, but no arrow bitmaps, use @code{((top . left) | |
1031 (bottom . left))}. | |
1032 | |
1033 @vindex default-indicate-buffer-boundaries | |
1034 The value of the variable @code{default-indicate-buffer-boundaries} | |
1035 is the default value for @code{indicate-buffer-boundaries} in buffers | |
1036 that do not override it. | |
1037 | |
1038 @vindex baud-rate | |
1039 The variable @code{baud-rate} holds the output speed of the | |
1040 terminal, as far as Emacs knows. Setting this variable does not | |
1041 change the speed of actual data transmission, but the value is used | |
1042 for calculations. On terminals, it affects padding, and decisions | |
1043 about whether to scroll part of the screen or redraw it instead. | |
1044 It also affects the behavior of incremental search. | |
1045 | |
1046 On window-systems, @code{baud-rate} is only used to determine how | |
1047 frequently to look for pending input during display updating. A | |
1048 higher value of @code{baud-rate} means that check for pending input | |
1049 will be done less frequently. | |
1050 | |
1051 You can customize the way any particular character code is displayed | |
1052 by means of a display table. @xref{Display Tables,, Display Tables, | |
1053 elisp, The Emacs Lisp Reference Manual}. | |
1054 | |
1055 @cindex hourglass pointer display | |
1056 @vindex hourglass-delay | |
1057 On a window system, Emacs can optionally display the mouse pointer | |
1058 in a special shape to say that Emacs is busy. To turn this feature on | |
1059 or off, customize the group @code{cursor}. You can also control the | |
1060 amount of time Emacs must remain busy before the busy indicator is | |
1061 displayed, by setting the variable @code{hourglass-delay}. | |
1062 | |
1063 @findex tty-suppress-bold-inverse-default-colors | |
1064 On some text-only terminals, bold face and inverse video together | |
1065 result in text that is hard to read. Call the function | |
1066 @code{tty-suppress-bold-inverse-default-colors} with a non-@code{nil} | |
1067 argument to suppress the effect of bold-face in this case. | |
1068 | |
1069 @node Cursor Display | 916 @node Cursor Display |
1070 @section Displaying the Cursor | 917 @section Displaying the Cursor |
1071 | 918 |
1072 @findex blink-cursor-mode | 919 @findex blink-cursor-mode |
1073 @vindex blink-cursor-alist | 920 @vindex blink-cursor-alist |
1104 If you find it hard to see the cursor, you might like HL Line mode, | 951 If you find it hard to see the cursor, you might like HL Line mode, |
1105 a minor mode that highlights the line containing point. Use @kbd{M-x | 952 a minor mode that highlights the line containing point. Use @kbd{M-x |
1106 hl-line-mode} to enable or disable it in the current buffer. @kbd{M-x | 953 hl-line-mode} to enable or disable it in the current buffer. @kbd{M-x |
1107 global-hl-line-mode} enables or disables the same mode globally. | 954 global-hl-line-mode} enables or disables the same mode globally. |
1108 | 955 |
956 @node Display Custom | |
957 @section Customization of Display | |
958 | |
959 This section contains information for customization only. Beginning | |
960 users should skip it. | |
961 | |
962 @vindex mode-line-inverse-video | |
963 The variable @code{mode-line-inverse-video} is an obsolete way of | |
964 controlling whether the mode line is displayed in inverse video; the | |
965 preferred way of doing this is to change the @code{mode-line} face. | |
966 @xref{Mode Line}. However, if @code{mode-line-inverse-video} has a | |
967 value of @code{nil}, then the @code{mode-line} face will be ignored, | |
968 and mode-lines will be drawn using the default text face. | |
969 @xref{Faces}. | |
970 | |
971 @vindex inverse-video | |
972 If the variable @code{inverse-video} is non-@code{nil}, Emacs attempts | |
973 to invert all the lines of the display from what they normally are. | |
974 | |
975 @vindex visible-bell | |
976 If the variable @code{visible-bell} is non-@code{nil}, Emacs attempts | |
977 to make the whole screen blink when it would normally make an audible bell | |
978 sound. This variable has no effect if your terminal does not have a way | |
979 to make the screen blink. | |
980 | |
981 @vindex no-redraw-on-reenter | |
982 On a text terminal, when you reenter Emacs after suspending, Emacs | |
983 normally clears the screen and redraws the entire display. On some | |
984 terminals with more than one page of memory, it is possible to arrange | |
985 the termcap entry so that the @samp{ti} and @samp{te} strings (output | |
986 to the terminal when Emacs is entered and exited, respectively) switch | |
987 between pages of memory so as to use one page for Emacs and another | |
988 page for other output. Then you might want to set the variable | |
989 @code{no-redraw-on-reenter} non-@code{nil}; this tells Emacs to | |
990 assume, when resumed, that the screen page it is using still contains | |
991 what Emacs last wrote there. | |
992 | |
993 @vindex echo-keystrokes | |
994 The variable @code{echo-keystrokes} controls the echoing of multi-character | |
995 keys; its value is the number of seconds of pause required to cause echoing | |
996 to start, or zero meaning don't echo at all. @xref{Echo Area}. | |
997 | |
998 @vindex ctl-arrow | |
999 If the variable @code{ctl-arrow} is @code{nil}, all control characters in | |
1000 the buffer are displayed with octal escape sequences, except for newline | |
1001 and tab. Altering the value of @code{ctl-arrow} makes it local to the | |
1002 current buffer; until that time, the default value is in effect. The | |
1003 default is initially @code{t}. @xref{Display Tables,, Display Tables, | |
1004 elisp, The Emacs Lisp Reference Manual}. | |
1005 | |
1006 @vindex tab-width | |
1007 @vindex default-tab-width | |
1008 Normally, a tab character in the buffer is displayed as whitespace which | |
1009 extends to the next display tab stop position, and display tab stops come | |
1010 at intervals equal to eight spaces. The number of spaces per tab is | |
1011 controlled by the variable @code{tab-width}, which is made local by | |
1012 changing it, just like @code{ctl-arrow}. Note that how the tab character | |
1013 in the buffer is displayed has nothing to do with the definition of | |
1014 @key{TAB} as a command. The variable @code{tab-width} must have an | |
1015 integer value between 1 and 1000, inclusive. The variable | |
1016 @code{default-tab-width} controls the default value of this variable | |
1017 for buffers where you have not set it locally. | |
1018 | |
1019 @cindex truncation | |
1020 @cindex line truncation, and fringes | |
1021 As an alternative to continuation, Emacs can display long lines by | |
1022 @dfn{truncation}. This means that all the characters that do not fit | |
1023 in the width of the screen or window do not appear at all. On | |
1024 graphical terminals, a small straight arrow in the fringe indicates | |
1025 truncation at either end of the line. On text terminals, @samp{$} | |
1026 appears in the first column when there is text truncated to the left, | |
1027 and in the last column when there is text truncated to the right. | |
1028 | |
1029 @vindex truncate-lines | |
1030 @findex toggle-truncate-lines | |
1031 Horizontal scrolling automatically causes line truncation | |
1032 (@pxref{Horizontal Scrolling}). You can explicitly enable line | |
1033 truncation for a particular buffer with the command @kbd{M-x | |
1034 toggle-truncate-lines}. This works by locally changing the variable | |
1035 @code{truncate-lines}. If that variable is non-@code{nil}, long lines | |
1036 are truncated; if it is @code{nil}, they are continued onto multiple | |
1037 screen lines. Setting the variable @code{truncate-lines} in any way | |
1038 makes it local to the current buffer; until that time, the default | |
1039 value is in effect. The default value is normally @code{nil}. | |
1040 | |
1041 @c @vindex truncate-partial-width-windows @c Idx entry is in Split Windows. | |
1042 If the variable @code{truncate-partial-width-windows} is | |
1043 non-@code{nil}, it forces truncation rather than continuation in any | |
1044 window less than the full width of the screen or frame, regardless of | |
1045 the value of @code{truncate-lines}. For information about side-by-side | |
1046 windows, see @ref{Split Window}. See also @ref{Display,, Display, | |
1047 elisp, The Emacs Lisp Reference Manual}. | |
1048 | |
1049 @vindex overflow-newline-into-fringe | |
1050 If the variable @code{overflow-newline-into-fringe} is | |
1051 non-@code{nil} on a window system, it specifies that lines which are | |
1052 exactly as wide as the window (not counting the final newline | |
1053 character) shall not be broken into two lines on the display (with | |
1054 just the newline on the second line). Instead, the newline | |
1055 overflows into the right fringe, and the cursor will be displayed in | |
1056 the fringe when positioned on that newline. | |
1057 | |
1058 @vindex indicate-buffer-boundaries | |
1059 On a window system, Emacs may indicate the buffer boundaries in the | |
1060 fringes. The buffer boundaries, i.e. first and last line in the | |
1061 buffer, can be marked with angle bitmaps in the left or right fringe. | |
1062 This can be combined with up and down arrow bitmaps shown at the top | |
1063 and bottom of the left or right fringe if the window can be scrolled | |
1064 in either direction. | |
1065 | |
1066 The buffer-local variable @code{indicate-buffer-boundaries} controls | |
1067 how the buffer boundaries and window scrolling is indicated in the | |
1068 fringes. | |
1069 | |
1070 If the value is @code{left} or @code{right}, both angle and arrow | |
1071 bitmaps are displayed in the left or right fringe, respectively. | |
1072 | |
1073 If value is an alist, each element @code{(@var{indicator} . | |
1074 @var{position})} specifies the position of one of the indicators. | |
1075 The @var{indicator} must be one of @code{top}, @code{bottom}, | |
1076 @code{up}, @code{down}, or @code{t} which specifies the default | |
1077 position for the indicators not present in the alist. | |
1078 The @var{position} is one of @code{left}, @code{right}, or @code{ni} | |
1079 which specifies not to show this indicator. | |
1080 | |
1081 For example, @code{((top . left) (t . right))} places the top angle | |
1082 bitmap in left fringe, the bottom angle bitmap in right fringe, and | |
1083 both arrow bitmaps in right fringe. To show just the angle bitmaps in | |
1084 the left fringe, but no arrow bitmaps, use @code{((top . left) | |
1085 (bottom . left))}. | |
1086 | |
1087 @vindex default-indicate-buffer-boundaries | |
1088 The value of the variable @code{default-indicate-buffer-boundaries} | |
1089 is the default value for @code{indicate-buffer-boundaries} in buffers | |
1090 that do not override it. | |
1091 | |
1092 @vindex baud-rate | |
1093 The variable @code{baud-rate} holds the output speed of the | |
1094 terminal, as far as Emacs knows. Setting this variable does not | |
1095 change the speed of actual data transmission, but the value is used | |
1096 for calculations. On terminals, it affects padding, and decisions | |
1097 about whether to scroll part of the screen or redraw it instead. | |
1098 It also affects the behavior of incremental search. | |
1099 | |
1100 On window-systems, @code{baud-rate} is only used to determine how | |
1101 frequently to look for pending input during display updating. A | |
1102 higher value of @code{baud-rate} means that check for pending input | |
1103 will be done less frequently. | |
1104 | |
1105 You can customize the way any particular character code is displayed | |
1106 by means of a display table. @xref{Display Tables,, Display Tables, | |
1107 elisp, The Emacs Lisp Reference Manual}. | |
1108 | |
1109 @cindex hourglass pointer display | |
1110 @vindex hourglass-delay | |
1111 On a window system, Emacs can optionally display the mouse pointer | |
1112 in a special shape to say that Emacs is busy. To turn this feature on | |
1113 or off, customize the group @code{cursor}. You can also control the | |
1114 amount of time Emacs must remain busy before the busy indicator is | |
1115 displayed, by setting the variable @code{hourglass-delay}. | |
1116 | |
1117 @findex tty-suppress-bold-inverse-default-colors | |
1118 On some text-only terminals, bold face and inverse video together | |
1119 result in text that is hard to read. Call the function | |
1120 @code{tty-suppress-bold-inverse-default-colors} with a non-@code{nil} | |
1121 argument to suppress the effect of bold-face in this case. | |
1122 | |
1109 @ignore | 1123 @ignore |
1110 arch-tag: 2219f910-2ff0-4521-b059-1bd231a536c4 | 1124 arch-tag: 2219f910-2ff0-4521-b059-1bd231a536c4 |
1111 @end ignore | 1125 @end ignore |