diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/emacs/basic.texi | 39 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/text.texi | 6 |
4 files changed, 31 insertions, 23 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a8238f24aee..6fec2e486bc 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2011-10-08 Chong Yidong <cyd@stupidchicken.com> | 1 | 2011-10-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * basic.texi (Position Info): Omit page commands. Document | ||
| 4 | count-words-region and count-words. | ||
| 5 | |||
| 6 | * text.texi (Pages): Move what-page documentation here. | ||
| 7 | |||
| 8 | 2011-10-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 9 | |||
| 3 | * mini.texi (Minibuffer File): Minor copyedits. Use xref to | 10 | * mini.texi (Minibuffer File): Minor copyedits. Use xref to |
| 4 | Remote Files node instead of linking directly to the Tramp manual. | 11 | Remote Files node instead of linking directly to the Tramp manual. |
| 5 | (Minibuffer Edit): Add xref to Blank Lines. | 12 | (Minibuffer Edit): Add xref to Blank Lines. |
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index 52f9395cedc..e4e7dadd548 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi | |||
| @@ -23,7 +23,7 @@ suggest you first run the Emacs learn-by-doing tutorial, by typing | |||
| 23 | * Help: Basic Help. Asking what a character does. | 23 | * Help: Basic Help. Asking what a character does. |
| 24 | * Blank Lines:: Making and deleting blank lines. | 24 | * Blank Lines:: Making and deleting blank lines. |
| 25 | * Continuation Lines:: How Emacs displays lines too wide for the screen. | 25 | * Continuation Lines:: How Emacs displays lines too wide for the screen. |
| 26 | * Position Info:: What page, line, row, or column is point on? | 26 | * Position Info:: What line, row, or column is point on? |
| 27 | * Arguments:: Numeric arguments for repeating a command N times. | 27 | * Arguments:: Numeric arguments for repeating a command N times. |
| 28 | * Repeating:: Repeating the previous command quickly. | 28 | * Repeating:: Repeating the previous command quickly. |
| 29 | @end menu | 29 | @end menu |
| @@ -569,28 +569,26 @@ logical lines. @xref{Visual Line Mode}. | |||
| 569 | @section Cursor Position Information | 569 | @section Cursor Position Information |
| 570 | 570 | ||
| 571 | Here are commands to get information about the size and position of | 571 | Here are commands to get information about the size and position of |
| 572 | parts of the buffer, and to count lines. | 572 | parts of the buffer, and to count words and lines. |
| 573 | 573 | ||
| 574 | @table @kbd | 574 | @table @kbd |
| 575 | @item M-x what-page | ||
| 576 | Display the page number of point, and the line number within that page. | ||
| 577 | @item M-x what-line | 575 | @item M-x what-line |
| 578 | Display the line number of point in the whole buffer. | 576 | Display the line number of point. |
| 579 | @item M-x line-number-mode | 577 | @item M-x line-number-mode |
| 580 | @itemx M-x column-number-mode | 578 | @itemx M-x column-number-mode |
| 581 | Toggle automatic display of the current line number or column number. | 579 | Toggle automatic display of the current line number or column number. |
| 582 | @xref{Optional Mode Line}. | 580 | @xref{Optional Mode Line}. |
| 583 | 581 | ||
| 584 | @item M-= | 582 | @item M-= |
| 585 | Display the number of lines in the region (@code{count-lines-region}). | 583 | Display the number of lines, words, and characters that are present in |
| 586 | @xref{Mark}, for information about the region. | 584 | the region (@code{count-words-region}). @xref{Mark}, for information |
| 585 | about the region. | ||
| 587 | 586 | ||
| 588 | @item C-x l | 587 | @item M-x count-words |
| 589 | Display the number of lines in the current page | 588 | Display the number of lines, words, and characters that are present in |
| 590 | (@code{count-lines-page}). @xref{Pages}. | 589 | the buffer. If the region is active (@pxref{Mark}), display the |
| 590 | numbers for the region instead. | ||
| 591 | 591 | ||
| 592 | @item M-x count-words-region | ||
| 593 | Display the number of words in the region. | ||
| 594 | @item C-x = | 592 | @item C-x = |
| 595 | Display the character code of character after point, character position of | 593 | Display the character code of character after point, character position of |
| 596 | point, and column of point (@code{what-cursor-position}). | 594 | point, and column of point (@code{what-cursor-position}). |
| @@ -602,7 +600,6 @@ Toggle automatic display of the size of the buffer. | |||
| 602 | @xref{Optional Mode Line}. | 600 | @xref{Optional Mode Line}. |
| 603 | @end table | 601 | @end table |
| 604 | 602 | ||
| 605 | @findex what-page | ||
| 606 | @findex what-line | 603 | @findex what-line |
| 607 | @cindex line number commands | 604 | @cindex line number commands |
| 608 | @cindex location of point | 605 | @cindex location of point |
| @@ -616,16 +613,14 @@ the accessible portion (@pxref{Narrowing}). By contrast, | |||
| 616 | @code{what-line} displays both the line number relative to the | 613 | @code{what-line} displays both the line number relative to the |
| 617 | narrowed region and the line number relative to the whole buffer. | 614 | narrowed region and the line number relative to the whole buffer. |
| 618 | 615 | ||
| 619 | @kbd{M-x what-page} counts pages from the beginning of the file, and | ||
| 620 | counts lines within the page, showing both numbers in the echo area. | ||
| 621 | @xref{Pages}. | ||
| 622 | |||
| 623 | @kindex M-= | 616 | @kindex M-= |
| 624 | @findex count-lines-region | 617 | @findex count-words-region |
| 625 | @kbd{M-=} (@code{count-lines-region}) displays the number of lines | 618 | @findex count-words |
| 626 | in the region (@pxref{Mark}), while @kbd{C-x l} | 619 | @kbd{M-=} (@code{count-words-region}) displays a message reporting |
| 627 | (@code{count-lines-page}) counts the lines in the current page | 620 | the number of lines, words, and characters in the region. @kbd{M-x |
| 628 | (@pxref{Pages}). | 621 | count-words} displays a similar message for the entire buffer, or for |
| 622 | the region if the region is @dfn{active}. @xref{Mark}, for an | ||
| 623 | explanation of the region. | ||
| 629 | 624 | ||
| 630 | @kindex C-x = | 625 | @kindex C-x = |
| 631 | @findex what-cursor-position | 626 | @findex what-cursor-position |
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi index 2107b6926b9..49b91c72da4 100644 --- a/doc/emacs/emacs.texi +++ b/doc/emacs/emacs.texi | |||
| @@ -264,7 +264,7 @@ Basic Editing Commands | |||
| 264 | * Basic Help:: Asking what a character does. | 264 | * Basic Help:: Asking what a character does. |
| 265 | * Blank Lines:: Making and deleting blank lines. | 265 | * Blank Lines:: Making and deleting blank lines. |
| 266 | * Continuation Lines:: How Emacs displays lines too wide for the screen. | 266 | * Continuation Lines:: How Emacs displays lines too wide for the screen. |
| 267 | * Position Info:: What page, line, row, or column is point on? | 267 | * Position Info:: What line, row, or column is point on? |
| 268 | * Arguments:: Numeric arguments for repeating a command N times. | 268 | * Arguments:: Numeric arguments for repeating a command N times. |
| 269 | * Repeating:: Repeating the previous command quickly. | 269 | * Repeating:: Repeating the previous command quickly. |
| 270 | 270 | ||
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 0b0e4867ae5..96ccaa2b3c4 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -332,6 +332,8 @@ pages are often meaningful divisions of the file, Emacs provides | |||
| 332 | commands to move over them and operate on them. | 332 | commands to move over them and operate on them. |
| 333 | 333 | ||
| 334 | @table @kbd | 334 | @table @kbd |
| 335 | @item M-x what-page | ||
| 336 | Display the page number of point, and the line number within that page. | ||
| 335 | @item C-x [ | 337 | @item C-x [ |
| 336 | Move point to previous page boundary (@code{backward-page}). | 338 | Move point to previous page boundary (@code{backward-page}). |
| 337 | @item C-x ] | 339 | @item C-x ] |
| @@ -342,6 +344,10 @@ Put point and mark around this page (or another page) (@code{mark-page}). | |||
| 342 | Count the lines in this page (@code{count-lines-page}). | 344 | Count the lines in this page (@code{count-lines-page}). |
| 343 | @end table | 345 | @end table |
| 344 | 346 | ||
| 347 | @findex what-page | ||
| 348 | @kbd{M-x what-page} counts pages from the beginning of the file, and | ||
| 349 | counts lines within the page, showing both numbers in the echo area. | ||
| 350 | |||
| 345 | @kindex C-x [ | 351 | @kindex C-x [ |
| 346 | @kindex C-x ] | 352 | @kindex C-x ] |
| 347 | @findex forward-page | 353 | @findex forward-page |