aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-07-03 15:46:16 +0000
committerRichard M. Stallman2006-07-03 15:46:16 +0000
commit43d6731323bf64459bc5a4d9aaa18cceca9c7eb1 (patch)
tree7f205c808aeaa2522a983807a082723572490610
parent30123caacd47c92b93d26f99c7dbee44015a3677 (diff)
downloademacs-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.texi84
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
9show a part that is likely to be interesting. Display-control commands 9show a part that is likely to be interesting. Display-control
10allow you to specify which part of the text you want to see, and how to 10commands allow you to specify which part of the text you want to see,
11display it. 11and how to display it. Many variables also affect the details of
12redisplay. Unless otherwise stated, the variables described in this
13chapter have their effect by customizing redisplay itself; therefore,
14their 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
88the whole window height. The effect is to take the two lines at the 91the 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
91was in the text that scrolled off the top, it ends up at the new top 94was in the text that scrolled off the top, it ends up at the new top
92of the window. 95of 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
95a similar way, also with overlap. The number of lines of overlap 99a similar way, also with overlap. The number of lines of overlap that
96across a @kbd{C-v} or @kbd{M-v} is controlled by the variable 100the @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 101variable @code{next-screen-context-lines}; by default, it is 2. The
98keys @key{NEXT} and @key{PRIOR}, or @key{PAGEDOWN} and @key{PAGEUP}, 102function keys @key{NEXT} and @key{PRIOR}, or @key{PAGEDOWN} and
99are 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
102the text in the selected window up or down a few lines. @kbd{C-v} 106the 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
120same screen line. To enable this behavior, set the variable 124same 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
122this mode, when scrolling shifts point off the screen, or into the 126this mode, when these commands would scroll the text around point off
123scrolling margins, Emacs moves point to keep the same vertical 127the screen, or within @code{scroll-margin} lines of the edge, they
124position within the window. This mode is convenient for browsing 128moves point to keep the same vertical position within the window.
125through a file by scrolling by screenfuls; if you come back to the 129This mode is convenient for browsing through a file by scrolling by
126screen where you started, point goes back to the line where it 130screenfuls; if you come back to the screen where you started, point
127started. However, this mode is inconvenient when you move to the next 131goes back to the line where it started. However, this mode is
128screen in order to move point to the text there. 132inconvenient when you move to the next screen in order to move point
133to 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
145the screen. For example, in a Lisp file, this command tries to get the 150the screen. For example, in a Lisp file, this command tries to get the
146entire current defun onto the screen if possible. 151entire 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
150portion of the text. Normally, automatic scrolling centers point 158the visible portion of the text. The purpose of automatic scrolling
151vertically within the window. However, if you set 159is 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 160this is done.
153move point just a little off the screen---less than @var{n} 161
154lines---then Emacs scrolls the text just far enough to bring point 162 Normally, automatic scrolling centers point vertically within the
155back on screen. By default, @code{scroll-conservatively} is 0. 163window. However, if you set @code{scroll-conservatively} to a small
164number @var{n}, then if you move point just a little off the
165screen---less than @var{n} lines---then Emacs scrolls the text just
166far 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.
444This face is used for the prompt strings displayed in the minibuffer. 456This face is used for the prompt strings displayed in the minibuffer.
445By default, Emacs automatically adds this face to the value of 457By 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
447properties used to display the prompt text. 459properties used to display the prompt text. (This variable takes
460effect when you enter the minibuffer.)
448@item fringe 461@item fringe
449@cindex @code{fringe} face 462@cindex @code{fringe} face
450The face for the fringes to the left and right of windows on graphic 463The 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
526This variable, like all the variables that control Font Lock mode,
527take effect whenever fontification is done; that is, potentially at
528any 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
514Lock for specific major modes by adding the function 532Lock 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
702them. 720them.
703 721
704This command does nothing if the major mode is a member of the list 722This command does nothing if the current major mode's symbol is a member
705@code{hi-lock-exclude-modes}. 723of 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
1037and the very visible cursor, where the latter may be e.g. bigger or 1055and the very visible cursor, where the latter may be e.g. bigger or
1038blinking. By default Emacs uses the very visible cursor. Setting the 1056blinking. By default Emacs uses the very visible cursor, and switches
1039variable @code{visible-cursor} to @code{nil} makes it use the 1057to it when you start or resume Emacs. If the variable
1040normal cursor. 1058@code{visible-cursor} is @code{nil} when Emacs starts or resumes, it
1059doesn'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
1088keys; its value is the number of seconds of pause required to cause echoing 1107keys; its value is the number of seconds of pause required to cause echoing
1089to start, or zero, meaning don't echo at all. @xref{Echo Area}. 1108to start, or zero, meaning don't echo at all. The value takes effect when
1109there 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
1190the termcap entry so that the @samp{ti} and @samp{te} strings (output 1210the termcap entry so that the @samp{ti} and @samp{te} strings (output
1191to the terminal when Emacs is entered and exited, respectively) switch 1211to the terminal when Emacs is entered and exited, respectively) switch
1192between pages of memory so as to use one page for Emacs and another 1212between pages of memory so as to use one page for Emacs and another
1193page for other output. Then you might want to set the variable 1213page 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
1195assume, when resumed, that the screen page it is using still contains 1215assume, when resumed, that the screen page it is using still contains
1196what Emacs last wrote there. 1216what Emacs last wrote there.