diff options
| author | Richard M. Stallman | 2001-06-19 11:28:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-06-19 11:28:29 +0000 |
| commit | 04d0b662827936c584efabbeaf29ab8bf81267c8 (patch) | |
| tree | 0383724100a633eb0b3056803369d5ca69f6d43e | |
| parent | b2d77e08a6deef959aaafcf2b096767d0419ac6e (diff) | |
| download | emacs-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.texi | 118 |
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 | |||
| 49 | for any given character is determined by combining the attributes of | 49 | for any given character is determined by combining the attributes of |
| 50 | all the applicable faces specified for that character. Any attribute | 50 | all the applicable faces specified for that character. Any attribute |
| 51 | that isn't specified by these faces is taken from the default face, | 51 | that isn't specified by these faces is taken from the default face, |
| 52 | which embodies the default settings of the frame itself. | 52 | whose 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 |
| 55 | commands and menus for specifying faces for text in the buffer. | 55 | commands 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 |
| 84 | different in different frames; this command shows the appearance in the | 84 | different in different frames; this command shows the appearance in the |
| 85 | frame in which you type it. Here's a list of the standardly defined | 85 | frame in which you type it. Here's a list of the standard defined |
| 86 | faces: | 86 | faces: |
| 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) |
| 256 | relies on analysis of the syntactic structure of the buffer text. For | 256 | relies on analysis of the syntactic structure of the buffer text. For |
| 257 | the purposes of speed, some modes, including C mode and Lisp mode, rely on | 257 | the purposes of speed, some modes, including C mode and Lisp mode, |
| 258 | a special convention: an open-parenthesis in the leftmost column always | 258 | rely on a special convention: an open-parenthesis or open-brace in the |
| 259 | defines the @w{beginning} of a defun, and is thus always outside any string | 259 | leftmost column always defines the @w{beginning} of a defun, and is |
| 260 | or comment. (@xref{Defuns}.) If you don't follow this convention, | 260 | thus always outside any string or comment. (@xref{Defuns}.) If you |
| 261 | then Font Lock mode can misfontify the text after an open-parenthesis in | 261 | don't follow this convention, then Font Lock mode can misfontify the |
| 262 | the leftmost column that is inside a string or comment. | 262 | text that follows an open-parenthesis or open-brace in the leftmost |
| 263 | column 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 |
| 328 | Unhighlight @var{regexp} (@code{unhighlight-regexp}). You must enter | 329 | Unhighlight @var{regexp} (@code{unhighlight-regexp}). You must enter |
| 329 | one of the regular expressions currently specified for highlighting. | 330 | one 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 |
| 331 | conveniently.) | 332 | conveniently.) |
| 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 |
| 338 | Highlight lines containing a match for @var{regexp}, using face | 339 | Highlight 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 |
| 418 | Scroll forward (a windowful or a specified number of lines) (@code{scroll-up}). | 419 | Scroll forward (a windowful or a specified number of lines) (@code{scroll-up}). |
| 419 | @item @key{NEXT} | 420 | @item @key{NEXT} |
| 421 | @itemx @key{PAGEDOWN} | ||
| 420 | Likewise, scroll forward. | 422 | Likewise, scroll forward. |
| 421 | @item M-v | 423 | @item M-v |
| 422 | Scroll backward (@code{scroll-down}). | 424 | Scroll backward (@code{scroll-down}). |
| 423 | @item @key{PRIOR} | 425 | @item @key{PRIOR} |
| 426 | @itemx @key{PAGEUP} | ||
| 424 | Likewise, scroll backward. | 427 | Likewise, scroll backward. |
| 425 | @item @var{arg} C-l | 428 | @item @var{arg} C-l |
| 426 | Scroll so point is on line @var{arg} (@code{recenter}). | 429 | Scroll 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 | ||
| 446 | in the window up or down a few lines. @kbd{C-v} (@code{scroll-up}) with an | ||
| 447 | argument shows you that many more lines at the bottom of the window, moving | ||
| 448 | the text and point up together as @kbd{C-l} might. @kbd{C-v} with a | ||
| 449 | negative 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 | ||
| 451 | opposite direction. The function keys @key{NEXT} and @key{PRIOR} are | ||
| 452 | equivalent to @kbd{C-v} and @kbd{M-v}. | ||
| 453 | |||
| 454 | The names of scroll commands are based on the direction that the text | ||
| 455 | moves 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} |
| 460 | It 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 |
| 461 | the top, followed by nearly a whole windowful of lines not previously | 453 | the whole window height. The effect is to take the two lines at the |
| 462 | visible. If point was in the text scrolled off the top, it moves to the | 454 | bottom of the window and put them at the top, followed by nearly a |
| 463 | new top of the window. @kbd{M-v} with no argument moves backward with | 455 | whole windowful of lines that were not previously visible. If point |
| 464 | overlap similarly. The number of lines of overlap across a @kbd{C-v} or | 456 | was 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 | 457 | of the window. |
| 466 | default, it is 2. | 458 | |
| 459 | @kbd{M-v} (@code{scroll-down}) with no argument scrolls backward | ||
| 460 | similarly 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 | ||
| 463 | keys @key{NEXT} and @key{PRIOR}, or @key{PAGEDOWN} and @key{PAGEUP}, | ||
| 464 | are 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 | ||
| 467 | the text in the selected window up or down a few lines. @kbd{C-v} | ||
| 468 | with an argument moves the text and point up, together, that many | ||
| 469 | lines; it brings the same number of new lines into view at the bottom | ||
| 470 | of the window. @kbd{M-v} with numeric argument scrolls the text | ||
| 471 | downward, bringing that many new lines into view at the top of the | ||
| 472 | window. @kbd{C-v} with a negative argument is like @kbd{M-v} and vice | ||
| 473 | versa. | ||
| 474 | |||
| 475 | The names of scroll commands are based on the direction that the | ||
| 476 | text moves in the window. Thus, the command to scroll forward is | ||
| 477 | called @code{scroll-up} because it moves the text upward on the | ||
| 478 | screen. The keys @key{PAGEDOWN} and @key{PAGEUP} derive their names | ||
| 479 | and customary meanings from a different convention that developed | ||
| 480 | elsewhere; 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; | |||
| 483 | rather, the text and point move rigidly on the screen. @kbd{C-l} with a | 498 | rather, the text and point move rigidly on the screen. @kbd{C-l} with a |
| 484 | negative argument puts point that many lines from the bottom of the window. | 499 | negative argument puts point that many lines from the bottom of the window. |
| 485 | For example, @kbd{C-u - 1 C-l} puts point on the bottom line, and @kbd{C-u | 500 | For 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 |
| 487 | as in @kbd{C-u C-l}, scrolls point to the center of the selected window. | 502 | point 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 | |||
| 494 | entire current defun onto the screen if possible. | 509 | entire 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 |
| 498 | portion of the text when it is time to display. Normally, automatic | 513 | portion of the text. Normally, automatic scrolling centers point |
| 499 | scrolling centers point vertically within the window. However, if you | 514 | vertically within the window. However, if you set |
| 500 | set @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 |
| 501 | move point just a little off the screen---less than @var{n} lines---then | 516 | move point just a little off the screen---less than @var{n} |
| 502 | Emacs scrolls the text just far enough to bring point back on screen. | 517 | lines---then Emacs scrolls the text just far enough to bring point |
| 503 | By default, @code{scroll-conservatively} is 0. | 518 | back 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 |
| 539 | within a window---so that some of the text near the left margin is not | 554 | within a window---so that some of the text near the left margin is not |
| 540 | displayed at all. Emacs does this automatically, in any window that | 555 | displayed at all. Emacs does this automatically in any window that |
| 541 | uses line truncation rather than continuation: whenever point moves | 556 | uses line truncation rather than continuation: whenever point moves |
| 542 | off the left or right edge of the screen, Emacs scrolls the buffer | 557 | off the left or right edge of the screen, Emacs scrolls the buffer |
| 543 | horizontally to make point visible. | 558 | horizontally 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 |
| 704 | released button. Depending on the font used for the mode line's text, | 719 | 3D-style highlighting, like that of a button when it is not being |
| 705 | this might make the mode line use more space than a text line in a | 720 | pressed. If you don't like this effect, you can disable the 3D |
| 706 | window, and cause the last line of the window be partially obscured. | 721 | highlighting of the mode line, by customizing the attributes of the |
| 707 | That 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: |
| 708 | you don't like this effect, you can disable the 3D appearence of the | ||
| 709 | mode line by customizing the attributes of the @code{mode-line} face in | ||
| 710 | your @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 |
| 717 | Alternatively, you could turn off the box attribute in your | 729 | Alternatively, 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 | 733 | Emacs.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}. | |||
| 742 | octal escape sequences; thus, character code 0230 (octal) is displayed | 754 | octal escape sequences; thus, character code 0230 (octal) is displayed |
| 743 | as @samp{\230}. The display of character codes 0240 through 0377 | 755 | as @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 |
| 745 | normally occur in multibyte buffers but if they do, they are displayed | 757 | normally occur in multibyte buffers, but if they do, they are displayed |
| 746 | as Latin-1 graphics. In unibyte mode, if you enable European display | 758 | as Latin-1 graphics. In unibyte mode, if you enable European display |
| 747 | they are displayed using their graphics (assuming your terminal supports | 759 | they are displayed using their graphics (assuming your terminal supports |
| 748 | them), otherwise as escape sequences. @xref{Single-Byte Character | 760 | them), otherwise as escape sequences. @xref{Single-Byte Character |