aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog7
-rw-r--r--doc/emacs/basic.texi39
-rw-r--r--doc/emacs/emacs.texi2
-rw-r--r--doc/emacs/text.texi6
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 @@
12011-10-08 Chong Yidong <cyd@stupidchicken.com> 12011-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
82011-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
572parts of the buffer, and to count lines. 572parts of the buffer, and to count words and lines.
573 573
574@table @kbd 574@table @kbd
575@item M-x what-page
576Display the page number of point, and the line number within that page.
577@item M-x what-line 575@item M-x what-line
578Display the line number of point in the whole buffer. 576Display 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
581Toggle automatic display of the current line number or column number. 579Toggle 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-=
585Display the number of lines in the region (@code{count-lines-region}). 583Display the number of lines, words, and characters that are present in
586@xref{Mark}, for information about the region. 584the region (@code{count-words-region}). @xref{Mark}, for information
585about the region.
587 586
588@item C-x l 587@item M-x count-words
589Display the number of lines in the current page 588Display the number of lines, words, and characters that are present in
590(@code{count-lines-page}). @xref{Pages}. 589the buffer. If the region is active (@pxref{Mark}), display the
590numbers for the region instead.
591 591
592@item M-x count-words-region
593Display the number of words in the region.
594@item C-x = 592@item C-x =
595Display the character code of character after point, character position of 593Display the character code of character after point, character position of
596point, and column of point (@code{what-cursor-position}). 594point, 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
617narrowed region and the line number relative to the whole buffer. 614narrowed 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
620counts 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
626in 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 620the number of lines, words, and characters in the region. @kbd{M-x
628(@pxref{Pages}). 621count-words} displays a similar message for the entire buffer, or for
622the region if the region is @dfn{active}. @xref{Mark}, for an
623explanation 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
332commands to move over them and operate on them. 332commands to move over them and operate on them.
333 333
334@table @kbd 334@table @kbd
335@item M-x what-page
336Display the page number of point, and the line number within that page.
335@item C-x [ 337@item C-x [
336Move point to previous page boundary (@code{backward-page}). 338Move 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}).
342Count the lines in this page (@code{count-lines-page}). 344Count 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
349counts 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