aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-06-19 11:28:29 +0000
committerRichard M. Stallman2001-06-19 11:28:29 +0000
commit04d0b662827936c584efabbeaf29ab8bf81267c8 (patch)
tree0383724100a633eb0b3056803369d5ca69f6d43e
parentb2d77e08a6deef959aaafcf2b096767d0419ac6e (diff)
downloademacs-04d0b662827936c584efabbeaf29ab8bf81267c8.tar.gz
emacs-04d0b662827936c584efabbeaf29ab8bf81267c8.zip
Local rewrites. Describe basic no-argument C-v and M-v first,
then describe the case with an argument.
-rw-r--r--man/display.texi118
1 files changed, 65 insertions, 53 deletions
diff --git a/man/display.texi b/man/display.texi
index 9a70f79b56c..9580f0269bd 100644
--- a/man/display.texi
+++ b/man/display.texi
@@ -49,7 +49,7 @@ specifying the face or faces to use for it. The style of display used
49for any given character is determined by combining the attributes of 49for any given character is determined by combining the attributes of
50all the applicable faces specified for that character. Any attribute 50all the applicable faces specified for that character. Any attribute
51that isn't specified by these faces is taken from the default face, 51that isn't specified by these faces is taken from the default face,
52which embodies the default settings of the frame itself. 52whose attributes reflect the default settings of the frame itself.
53 53
54 Enriched mode, the mode for editing formatted text, includes several 54 Enriched mode, the mode for editing formatted text, includes several
55commands and menus for specifying faces for text in the buffer. 55commands and menus for specifying faces for text in the buffer.
@@ -82,7 +82,7 @@ issues in future Emacs versions.
82 To see what faces are currently defined, and what they look like, type 82 To see what faces are currently defined, and what they look like, type
83@kbd{M-x list-faces-display}. It's possible for a given face to look 83@kbd{M-x list-faces-display}. It's possible for a given face to look
84different in different frames; this command shows the appearance in the 84different in different frames; this command shows the appearance in the
85frame in which you type it. Here's a list of the standardly defined 85frame in which you type it. Here's a list of the standard defined
86faces: 86faces:
87 87
88@table @code 88@table @code
@@ -254,12 +254,13 @@ beyond which buffer fontification is suppressed.
254@vindex font-lock-beginning-of-syntax-function 254@vindex font-lock-beginning-of-syntax-function
255 Comment and string fontification (or ``syntactic'' fontification) 255 Comment and string fontification (or ``syntactic'' fontification)
256relies on analysis of the syntactic structure of the buffer text. For 256relies on analysis of the syntactic structure of the buffer text. For
257the purposes of speed, some modes, including C mode and Lisp mode, rely on 257the purposes of speed, some modes, including C mode and Lisp mode,
258a special convention: an open-parenthesis in the leftmost column always 258rely on a special convention: an open-parenthesis or open-brace in the
259defines the @w{beginning} of a defun, and is thus always outside any string 259leftmost column always defines the @w{beginning} of a defun, and is
260or comment. (@xref{Defuns}.) If you don't follow this convention, 260thus always outside any string or comment. (@xref{Defuns}.) If you
261then Font Lock mode can misfontify the text after an open-parenthesis in 261don't follow this convention, then Font Lock mode can misfontify the
262the leftmost column that is inside a string or comment. 262text that follows an open-parenthesis or open-brace in the leftmost
263column that is inside a string or comment.
263 264
264@cindex slow display during scrolling 265@cindex slow display during scrolling
265 The variable @code{font-lock-beginning-of-syntax-function} (always 266 The variable @code{font-lock-beginning-of-syntax-function} (always
@@ -327,7 +328,7 @@ parts of the text in different ways.
327@findex unhighlight-regexp 328@findex unhighlight-regexp
328Unhighlight @var{regexp} (@code{unhighlight-regexp}). You must enter 329Unhighlight @var{regexp} (@code{unhighlight-regexp}). You must enter
329one of the regular expressions currently specified for highlighting. 330one of the regular expressions currently specified for highlighting.
330(You can use completion, or a menu, to enter one of them 331(You can use completion, or choose from a menu, to enter one of them
331conveniently.) 332conveniently.)
332 333
333@item C-x w l @var{regexp} @key{RET} @var{face} @key{RET} 334@item C-x w l @var{regexp} @key{RET} @var{face} @key{RET}
@@ -335,7 +336,7 @@ conveniently.)
335@findex highlight-lines-matching-regexp 336@findex highlight-lines-matching-regexp
336@cindex lines, highlighting 337@cindex lines, highlighting
337@cindex highlighting lines of text 338@cindex highlighting lines of text
338Highlight lines containing a match for @var{regexp}, using face 339Highlight entire lines containing a match for @var{regexp}, using face
339@var{face} (@code{highlight-lines-matching-regexp}). 340@var{face} (@code{highlight-lines-matching-regexp}).
340 341
341@item C-x w b 342@item C-x w b
@@ -417,10 +418,12 @@ point vertically within it (@code{recenter}).
417@item C-v 418@item C-v
418Scroll forward (a windowful or a specified number of lines) (@code{scroll-up}). 419Scroll forward (a windowful or a specified number of lines) (@code{scroll-up}).
419@item @key{NEXT} 420@item @key{NEXT}
421@itemx @key{PAGEDOWN}
420Likewise, scroll forward. 422Likewise, scroll forward.
421@item M-v 423@item M-v
422Scroll backward (@code{scroll-down}). 424Scroll backward (@code{scroll-down}).
423@item @key{PRIOR} 425@item @key{PRIOR}
426@itemx @key{PAGEUP}
424Likewise, scroll backward. 427Likewise, scroll backward.
425@item @var{arg} C-l 428@item @var{arg} C-l
426Scroll so point is on line @var{arg} (@code{recenter}). 429Scroll so point is on line @var{arg} (@code{recenter}).
@@ -440,30 +443,42 @@ down from the top of the window.
440@kindex M-v 443@kindex M-v
441@kindex NEXT 444@kindex NEXT
442@kindex PRIOR 445@kindex PRIOR
446@kindex PAGEDOWN
447@kindex PAGEUP
443@findex scroll-up 448@findex scroll-up
444@findex scroll-down 449@findex scroll-down
445 The scrolling commands @kbd{C-v} and @kbd{M-v} let you move all the text
446in the window up or down a few lines. @kbd{C-v} (@code{scroll-up}) with an
447argument shows you that many more lines at the bottom of the window, moving
448the text and point up together as @kbd{C-l} might. @kbd{C-v} with a
449negative argument shows you more lines at the top of the window.
450@kbd{M-v} (@code{scroll-down}) is like @kbd{C-v}, but moves in the
451opposite direction. The function keys @key{NEXT} and @key{PRIOR} are
452equivalent to @kbd{C-v} and @kbd{M-v}.
453
454 The names of scroll commands are based on the direction that the text
455moves in the window. Thus, the command to scroll forward is called
456@code{scroll-up} because it moves the text upward on the screen.
457
458@vindex next-screen-context-lines 450@vindex next-screen-context-lines
459 To read the buffer a windowful at a time, use @kbd{C-v} with no argument. 451 To read the buffer a windowful at a time, use @kbd{C-v}
460It takes the last two lines at the bottom of the window and puts them at 452(@code{scroll-up}) with no argument. This scrolls forward by nearly
461the top, followed by nearly a whole windowful of lines not previously 453the whole window height. The effect is to take the two lines at the
462visible. If point was in the text scrolled off the top, it moves to the 454bottom of the window and put them at the top, followed by nearly a
463new top of the window. @kbd{M-v} with no argument moves backward with 455whole windowful of lines that were not previously visible. If point
464overlap similarly. The number of lines of overlap across a @kbd{C-v} or 456was in the text that scrolled off the top, it ends up at the new top
465@kbd{M-v} is controlled by the variable @code{next-screen-context-lines}; by 457of the window.
466default, it is 2. 458
459 @kbd{M-v} (@code{scroll-down}) with no argument scrolls backward
460similarly with overlap. The number of lines of overlap across a
461@kbd{C-v} or @kbd{M-v} is controlled by the variable
462@code{next-screen-context-lines}; by default, it is 2. The function
463keys @key{NEXT} and @key{PRIOR}, or @key{PAGEDOWN} and @key{PAGEUP},
464are equivalent to @kbd{C-v} and @kbd{M-v}.
465
466 The commands @kbd{C-v} and @kbd{M-v} with a numeric argument scroll
467the text in the selected window up or down a few lines. @kbd{C-v}
468with an argument moves the text and point up, together, that many
469lines; it brings the same number of new lines into view at the bottom
470of the window. @kbd{M-v} with numeric argument scrolls the text
471downward, bringing that many new lines into view at the top of the
472window. @kbd{C-v} with a negative argument is like @kbd{M-v} and vice
473versa.
474
475 The names of scroll commands are based on the direction that the
476text moves in the window. Thus, the command to scroll forward is
477called @code{scroll-up} because it moves the text upward on the
478screen. The keys @key{PAGEDOWN} and @key{PAGEUP} derive their names
479and customary meanings from a different convention that developed
480elsewhere; hence the strange result that @key{PAGEDOWN} runs
481@code{scroll-up}.
467 482
468@vindex scroll-preserve-screen-position 483@vindex scroll-preserve-screen-position
469 Some users like the full-screen scroll commands to keep point at the 484 Some users like the full-screen scroll commands to keep point at the
@@ -483,8 +498,8 @@ point on the very top line. Point does not move with respect to the text;
483rather, the text and point move rigidly on the screen. @kbd{C-l} with a 498rather, the text and point move rigidly on the screen. @kbd{C-l} with a
484negative argument puts point that many lines from the bottom of the window. 499negative argument puts point that many lines from the bottom of the window.
485For example, @kbd{C-u - 1 C-l} puts point on the bottom line, and @kbd{C-u 500For example, @kbd{C-u - 1 C-l} puts point on the bottom line, and @kbd{C-u
486- 5 C-l} puts it five lines from the bottom. Just @kbd{C-u} as argument, 501- 5 C-l} puts it five lines from the bottom. @kbd{C-u C-l} scrolls to put
487as in @kbd{C-u C-l}, scrolls point to the center of the selected window. 502point at the center (vertically) of the selected window.
488 503
489@kindex C-M-l 504@kindex C-M-l
490@findex reposition-window 505@findex reposition-window
@@ -494,13 +509,13 @@ the screen. For example, in a Lisp file, this command tries to get the
494entire current defun onto the screen if possible. 509entire current defun onto the screen if possible.
495 510
496@vindex scroll-conservatively 511@vindex scroll-conservatively
497 Scrolling happens automatically if point has moved out of the visible 512 Scrolling happens automatically when point moves out of the visible
498portion of the text when it is time to display. Normally, automatic 513portion of the text. Normally, automatic scrolling centers point
499scrolling centers point vertically within the window. However, if you 514vertically within the window. However, if you set
500set @code{scroll-conservatively} to a small number @var{n}, then if you 515@code{scroll-conservatively} to a small number @var{n}, then if you
501move point just a little off the screen---less than @var{n} lines---then 516move point just a little off the screen---less than @var{n}
502Emacs scrolls the text just far enough to bring point back on screen. 517lines---then Emacs scrolls the text just far enough to bring point
503By default, @code{scroll-conservatively} is 0. 518back on screen. By default, @code{scroll-conservatively} is 0.
504 519
505@cindex aggressive scrolling 520@cindex aggressive scrolling
506@vindex scroll-up-aggressively 521@vindex scroll-up-aggressively
@@ -537,7 +552,7 @@ window, Emacs recenters the window. By default, @code{scroll-margin} is
537 552
538 @dfn{Horizontal scrolling} means shifting all the lines sideways 553 @dfn{Horizontal scrolling} means shifting all the lines sideways
539within a window---so that some of the text near the left margin is not 554within a window---so that some of the text near the left margin is not
540displayed at all. Emacs does this automatically, in any window that 555displayed at all. Emacs does this automatically in any window that
541uses line truncation rather than continuation: whenever point moves 556uses line truncation rather than continuation: whenever point moves
542off the left or right edge of the screen, Emacs scrolls the buffer 557off the left or right edge of the screen, Emacs scrolls the buffer
543horizontally to make point visible. 558horizontally to make point visible.
@@ -700,25 +715,22 @@ indicator prominent.
700@cindex mode line, 3D appearence 715@cindex mode line, 3D appearence
701@cindex attributes of mode line, changing 716@cindex attributes of mode line, changing
702@cindex non-integral number of lines in a window 717@cindex non-integral number of lines in a window
703 By default, the mode line is drawn on graphics displays as a 3D 718 By default, the mode line is drawn on graphics displays with
704released button. Depending on the font used for the mode line's text, 7193D-style highlighting, like that of a button when it is not being
705this might make the mode line use more space than a text line in a 720pressed. If you don't like this effect, you can disable the 3D
706window, and cause the last line of the window be partially obscured. 721highlighting of the mode line, by customizing the attributes of the
707That is, the window displays a non-integral number of text lines. If 722@code{mode-line} face in your @file{.emacs} init file, like this:
708you don't like this effect, you can disable the 3D appearence of the
709mode line by customizing the attributes of the @code{mode-line} face in
710your @file{.emacs} init file, like this:
711 723
712@example 724@example
713 (set-face-attribute 'mode-line nil :box nil) 725(set-face-attribute 'mode-line nil :box nil)
714@end example 726@end example
715 727
716@noindent 728@noindent
717Alternatively, you could turn off the box attribute in your 729Alternatively, you can turn off the box attribute in your
718@file{.Xdefaults} file: 730@file{.Xdefaults} file:
719 731
720@example 732@example
721 Emacs.mode-line.AttributeBox: off 733Emacs.mode-line.AttributeBox: off
722@end example 734@end example
723 735
724@node Text Display 736@node Text Display
@@ -742,7 +754,7 @@ control-A is displayed as @samp{^A}.
742octal escape sequences; thus, character code 0230 (octal) is displayed 754octal escape sequences; thus, character code 0230 (octal) is displayed
743as @samp{\230}. The display of character codes 0240 through 0377 755as @samp{\230}. The display of character codes 0240 through 0377
744(octal) may be either as escape sequences or as graphics. They do not 756(octal) may be either as escape sequences or as graphics. They do not
745normally occur in multibyte buffers but if they do, they are displayed 757normally occur in multibyte buffers, but if they do, they are displayed
746as Latin-1 graphics. In unibyte mode, if you enable European display 758as Latin-1 graphics. In unibyte mode, if you enable European display
747they are displayed using their graphics (assuming your terminal supports 759they are displayed using their graphics (assuming your terminal supports
748them), otherwise as escape sequences. @xref{Single-Byte Character 760them), otherwise as escape sequences. @xref{Single-Byte Character