diff options
| author | Richard M. Stallman | 2006-07-03 15:46:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-07-03 15:46:16 +0000 |
| commit | 43d6731323bf64459bc5a4d9aaa18cceca9c7eb1 (patch) | |
| tree | 7f205c808aeaa2522a983807a082723572490610 | |
| parent | 30123caacd47c92b93d26f99c7dbee44015a3677 (diff) | |
| download | emacs-43d6731323bf64459bc5a4d9aaa18cceca9c7eb1.tar.gz emacs-43d6731323bf64459bc5a4d9aaa18cceca9c7eb1.zip | |
(Auto Scrolling): New node, broken out of Scrolling.
(Scrolling): Substantial local rewrites.
(Display): Update menu and intro.
| -rw-r--r-- | man/display.texi | 84 |
1 files changed, 52 insertions, 32 deletions
diff --git a/man/display.texi b/man/display.texi index eaf2ab212bc..c868d1ad484 100644 --- a/man/display.texi +++ b/man/display.texi | |||
| @@ -6,12 +6,16 @@ | |||
| 6 | @chapter Controlling the Display | 6 | @chapter Controlling the Display |
| 7 | 7 | ||
| 8 | Since only part of a large buffer fits in the window, Emacs tries to | 8 | Since only part of a large buffer fits in the window, Emacs tries to |
| 9 | show a part that is likely to be interesting. Display-control commands | 9 | show a part that is likely to be interesting. Display-control |
| 10 | allow you to specify which part of the text you want to see, and how to | 10 | commands allow you to specify which part of the text you want to see, |
| 11 | display it. | 11 | and how to display it. Many variables also affect the details of |
| 12 | redisplay. Unless otherwise stated, the variables described in this | ||
| 13 | chapter have their effect by customizing redisplay itself; therefore, | ||
| 14 | their values only make a difference at the time of redisplay. | ||
| 12 | 15 | ||
| 13 | @menu | 16 | @menu |
| 14 | * Scrolling:: Moving text up and down in a window. | 17 | * Scrolling:: Commands to move text up and down in a window. |
| 18 | * Auto Scrolling:: Redisplay scrolls text automatically when needed. | ||
| 15 | * Horizontal Scrolling:: Moving text left and right in a window. | 19 | * Horizontal Scrolling:: Moving text left and right in a window. |
| 16 | * Follow Mode:: Follow mode lets two windows scroll as one. | 20 | * Follow Mode:: Follow mode lets two windows scroll as one. |
| 17 | * Faces:: How to change the display style using faces. | 21 | * Faces:: How to change the display style using faces. |
| @@ -82,7 +86,6 @@ screen is garbled (@pxref{Screen Garbled}). | |||
| 82 | @kindex PAGEUP | 86 | @kindex PAGEUP |
| 83 | @findex scroll-up | 87 | @findex scroll-up |
| 84 | @findex scroll-down | 88 | @findex scroll-down |
| 85 | @vindex next-screen-context-lines | ||
| 86 | To read the buffer a windowful at a time, use @kbd{C-v} | 89 | To read the buffer a windowful at a time, use @kbd{C-v} |
| 87 | (@code{scroll-up}) with no argument. This scrolls forward by nearly | 90 | (@code{scroll-up}) with no argument. This scrolls forward by nearly |
| 88 | the whole window height. The effect is to take the two lines at the | 91 | the whole window height. The effect is to take the two lines at the |
| @@ -91,12 +94,13 @@ whole windowful of lines that were not previously visible. If point | |||
| 91 | was in the text that scrolled off the top, it ends up at the new top | 94 | was in the text that scrolled off the top, it ends up at the new top |
| 92 | of the window. | 95 | of the window. |
| 93 | 96 | ||
| 97 | @vindex next-screen-context-lines | ||
| 94 | @kbd{M-v} (@code{scroll-down}) with no argument scrolls backward in | 98 | @kbd{M-v} (@code{scroll-down}) with no argument scrolls backward in |
| 95 | a similar way, also with overlap. The number of lines of overlap | 99 | a similar way, also with overlap. The number of lines of overlap that |
| 96 | across a @kbd{C-v} or @kbd{M-v} is controlled by the variable | 100 | the @kbd{C-v} or @kbd{M-v} commands leave is controlled by the |
| 97 | @code{next-screen-context-lines}; by default, it is 2. The function | 101 | variable @code{next-screen-context-lines}; by default, it is 2. The |
| 98 | keys @key{NEXT} and @key{PRIOR}, or @key{PAGEDOWN} and @key{PAGEUP}, | 102 | function keys @key{NEXT} and @key{PRIOR}, or @key{PAGEDOWN} and |
| 99 | are equivalent to @kbd{C-v} and @kbd{M-v}. | 103 | @key{PAGEUP}, are equivalent to @kbd{C-v} and @kbd{M-v}. |
| 100 | 104 | ||
| 101 | The commands @kbd{C-v} and @kbd{M-v} with a numeric argument scroll | 105 | The commands @kbd{C-v} and @kbd{M-v} with a numeric argument scroll |
| 102 | the text in the selected window up or down a few lines. @kbd{C-v} | 106 | the text in the selected window up or down a few lines. @kbd{C-v} |
| @@ -119,13 +123,14 @@ elsewhere; hence the strange result that @key{PAGEDOWN} runs | |||
| 119 | Some users like the full-screen scroll commands to keep point at the | 123 | Some users like the full-screen scroll commands to keep point at the |
| 120 | same screen line. To enable this behavior, set the variable | 124 | same screen line. To enable this behavior, set the variable |
| 121 | @code{scroll-preserve-screen-position} to a non-@code{nil} value. In | 125 | @code{scroll-preserve-screen-position} to a non-@code{nil} value. In |
| 122 | this mode, when scrolling shifts point off the screen, or into the | 126 | this mode, when these commands would scroll the text around point off |
| 123 | scrolling margins, Emacs moves point to keep the same vertical | 127 | the screen, or within @code{scroll-margin} lines of the edge, they |
| 124 | position within the window. This mode is convenient for browsing | 128 | moves point to keep the same vertical position within the window. |
| 125 | through a file by scrolling by screenfuls; if you come back to the | 129 | This mode is convenient for browsing through a file by scrolling by |
| 126 | screen where you started, point goes back to the line where it | 130 | screenfuls; if you come back to the screen where you started, point |
| 127 | started. However, this mode is inconvenient when you move to the next | 131 | goes back to the line where it started. However, this mode is |
| 128 | screen in order to move point to the text there. | 132 | inconvenient when you move to the next screen in order to move point |
| 133 | to the text there. | ||
| 129 | 134 | ||
| 130 | Another way to do scrolling is with @kbd{C-l} with a numeric argument. | 135 | Another way to do scrolling is with @kbd{C-l} with a numeric argument. |
| 131 | @kbd{C-l} does not clear the screen when given an argument; it only scrolls | 136 | @kbd{C-l} does not clear the screen when given an argument; it only scrolls |
| @@ -145,14 +150,21 @@ window heuristically in a way designed to get useful information onto | |||
| 145 | the screen. For example, in a Lisp file, this command tries to get the | 150 | the screen. For example, in a Lisp file, this command tries to get the |
| 146 | entire current defun onto the screen if possible. | 151 | entire current defun onto the screen if possible. |
| 147 | 152 | ||
| 153 | @node Auto Scrolling | ||
| 154 | @section Automatic Scrolling | ||
| 155 | |||
| 148 | @vindex scroll-conservatively | 156 | @vindex scroll-conservatively |
| 149 | Scrolling happens automatically when point moves out of the visible | 157 | Redisplay scrolls the buffer automatically when point moves out of |
| 150 | portion of the text. Normally, automatic scrolling centers point | 158 | the visible portion of the text. The purpose of automatic scrolling |
| 151 | vertically within the window. However, if you set | 159 | is to make point visible, but you can customize many aspects of how |
| 152 | @code{scroll-conservatively} to a small number @var{n}, then if you | 160 | this is done. |
| 153 | move point just a little off the screen---less than @var{n} | 161 | |
| 154 | lines---then Emacs scrolls the text just far enough to bring point | 162 | Normally, automatic scrolling centers point vertically within the |
| 155 | back on screen. By default, @code{scroll-conservatively} is 0. | 163 | window. However, if you set @code{scroll-conservatively} to a small |
| 164 | number @var{n}, then if you move point just a little off the | ||
| 165 | screen---less than @var{n} lines---then Emacs scrolls the text just | ||
| 166 | far enough to bring point back on screen. By default, | ||
| 167 | @code{scroll-conservatively} is 0. | ||
| 156 | 168 | ||
| 157 | @cindex aggressive scrolling | 169 | @cindex aggressive scrolling |
| 158 | @vindex scroll-up-aggressively | 170 | @vindex scroll-up-aggressively |
| @@ -444,7 +456,8 @@ scrollbars. | |||
| 444 | This face is used for the prompt strings displayed in the minibuffer. | 456 | This face is used for the prompt strings displayed in the minibuffer. |
| 445 | By default, Emacs automatically adds this face to the value of | 457 | By default, Emacs automatically adds this face to the value of |
| 446 | @code{minibuffer-prompt-properties}, which is a list of text | 458 | @code{minibuffer-prompt-properties}, which is a list of text |
| 447 | properties used to display the prompt text. | 459 | properties used to display the prompt text. (This variable takes |
| 460 | effect when you enter the minibuffer.) | ||
| 448 | @item fringe | 461 | @item fringe |
| 449 | @cindex @code{fringe} face | 462 | @cindex @code{fringe} face |
| 450 | The face for the fringes to the left and right of windows on graphic | 463 | The face for the fringes to the left and right of windows on graphic |
| @@ -509,6 +522,11 @@ interface (@pxref{Easy Customization}), or use the function | |||
| 509 | (global-font-lock-mode 0) | 522 | (global-font-lock-mode 0) |
| 510 | @end example | 523 | @end example |
| 511 | 524 | ||
| 525 | @noindent | ||
| 526 | This variable, like all the variables that control Font Lock mode, | ||
| 527 | take effect whenever fontification is done; that is, potentially at | ||
| 528 | any time. | ||
| 529 | |||
| 512 | @findex turn-on-font-lock | 530 | @findex turn-on-font-lock |
| 513 | If you have disabled Global Font Lock mode, you can still enable Font | 531 | If you have disabled Global Font Lock mode, you can still enable Font |
| 514 | Lock for specific major modes by adding the function | 532 | Lock for specific major modes by adding the function |
| @@ -701,8 +719,8 @@ match, and finally use this command | |||
| 701 | (@code{hi-lock-write-interactive-patterns}) to have Hi Lock highlight | 719 | (@code{hi-lock-write-interactive-patterns}) to have Hi Lock highlight |
| 702 | them. | 720 | them. |
| 703 | 721 | ||
| 704 | This command does nothing if the major mode is a member of the list | 722 | This command does nothing if the current major mode's symbol is a member |
| 705 | @code{hi-lock-exclude-modes}. | 723 | of the list @code{hi-lock-exclude-modes}. |
| 706 | @end table | 724 | @end table |
| 707 | 725 | ||
| 708 | @node Fringes | 726 | @node Fringes |
| @@ -1035,9 +1053,10 @@ the variable @code{blink-cursor-alist}. | |||
| 1035 | @vindex visible-cursor | 1053 | @vindex visible-cursor |
| 1036 | Some text terminals offer two different cursors: the normal cursor | 1054 | Some text terminals offer two different cursors: the normal cursor |
| 1037 | and the very visible cursor, where the latter may be e.g. bigger or | 1055 | and the very visible cursor, where the latter may be e.g. bigger or |
| 1038 | blinking. By default Emacs uses the very visible cursor. Setting the | 1056 | blinking. By default Emacs uses the very visible cursor, and switches |
| 1039 | variable @code{visible-cursor} to @code{nil} makes it use the | 1057 | to it when you start or resume Emacs. If the variable |
| 1040 | normal cursor. | 1058 | @code{visible-cursor} is @code{nil} when Emacs starts or resumes, it |
| 1059 | doesn't switch, so it uses the normal cursor. | ||
| 1041 | 1060 | ||
| 1042 | @cindex cursor in non-selected windows | 1061 | @cindex cursor in non-selected windows |
| 1043 | @vindex cursor-in-non-selected-windows | 1062 | @vindex cursor-in-non-selected-windows |
| @@ -1086,7 +1105,8 @@ to make the screen blink. | |||
| 1086 | @vindex echo-keystrokes | 1105 | @vindex echo-keystrokes |
| 1087 | The variable @code{echo-keystrokes} controls the echoing of multi-character | 1106 | The variable @code{echo-keystrokes} controls the echoing of multi-character |
| 1088 | keys; its value is the number of seconds of pause required to cause echoing | 1107 | keys; its value is the number of seconds of pause required to cause echoing |
| 1089 | to start, or zero, meaning don't echo at all. @xref{Echo Area}. | 1108 | to start, or zero, meaning don't echo at all. The value takes effect when |
| 1109 | there is someting to echo. @xref{Echo Area}. | ||
| 1090 | 1110 | ||
| 1091 | @cindex truncation | 1111 | @cindex truncation |
| 1092 | @cindex line truncation, and fringes | 1112 | @cindex line truncation, and fringes |
| @@ -1190,7 +1210,7 @@ terminals with more than one page of memory, it is possible to arrange | |||
| 1190 | the termcap entry so that the @samp{ti} and @samp{te} strings (output | 1210 | the termcap entry so that the @samp{ti} and @samp{te} strings (output |
| 1191 | to the terminal when Emacs is entered and exited, respectively) switch | 1211 | to the terminal when Emacs is entered and exited, respectively) switch |
| 1192 | between pages of memory so as to use one page for Emacs and another | 1212 | between pages of memory so as to use one page for Emacs and another |
| 1193 | page for other output. Then you might want to set the variable | 1213 | page for other output. On such terminals, you might want to set the variable |
| 1194 | @code{no-redraw-on-reenter} non-@code{nil}; this tells Emacs to | 1214 | @code{no-redraw-on-reenter} non-@code{nil}; this tells Emacs to |
| 1195 | assume, when resumed, that the screen page it is using still contains | 1215 | assume, when resumed, that the screen page it is using still contains |
| 1196 | what Emacs last wrote there. | 1216 | what Emacs last wrote there. |