diff options
| author | Richard M. Stallman | 2005-03-21 18:02:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-03-21 18:02:55 +0000 |
| commit | 33e54c8713eee7a5dcada98f6a526ddf31aeb593 (patch) | |
| tree | ed30debd3da14c92ec1b0f1ee645e968632e0354 /man/basic.texi | |
| parent | 4829cfc31bfebdeeb43b09d1a37e8c53227759c5 (diff) | |
| download | emacs-33e54c8713eee7a5dcada98f6a526ddf31aeb593.tar.gz emacs-33e54c8713eee7a5dcada98f6a526ddf31aeb593.zip | |
(Moving Point): Add M-g M-g binding.
(Undo): Document undo-only.
(Position Info): Document M-g M-g and C-u M-g M-g.
Diffstat (limited to 'man/basic.texi')
| -rw-r--r-- | man/basic.texi | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/man/basic.texi b/man/basic.texi index 487e9579ece..2f8c2bc1764 100644 --- a/man/basic.texi +++ b/man/basic.texi | |||
| @@ -237,7 +237,8 @@ it is commonly used to do so. If your keyboard has a @key{PAGEUP} or | |||
| 237 | @item M-x goto-char | 237 | @item M-x goto-char |
| 238 | Read a number @var{n} and move point to buffer position @var{n}. | 238 | Read a number @var{n} and move point to buffer position @var{n}. |
| 239 | Position 1 is the beginning of the buffer. | 239 | Position 1 is the beginning of the buffer. |
| 240 | @item M-x goto-line | 240 | @item M-g M-g |
| 241 | @itemx M-x goto-line | ||
| 241 | Read a number @var{n} and move point to line number @var{n}. Line 1 | 242 | Read a number @var{n} and move point to line number @var{n}. Line 1 |
| 242 | is the beginning of the buffer. | 243 | is the beginning of the buffer. |
| 243 | @item C-x C-n | 244 | @item C-x C-n |
| @@ -343,11 +344,15 @@ earlier changes, back to the limit of the undo information available. | |||
| 343 | If all recorded changes have already been undone, the undo command | 344 | If all recorded changes have already been undone, the undo command |
| 344 | displays an error message and does nothing. | 345 | displays an error message and does nothing. |
| 345 | 346 | ||
| 347 | @findex undo-only | ||
| 346 | Any command other than an undo command breaks the sequence of undo | 348 | Any command other than an undo command breaks the sequence of undo |
| 347 | commands. Starting from that moment, the previous undo commands become | 349 | commands. Starting from that moment, the previous undo commands become |
| 348 | ordinary changes that you can undo. Thus, to redo changes you have | 350 | ordinary changes that you can undo. Thus, to redo changes you have |
| 349 | undone, type @kbd{C-f} or any other command that will harmlessly break | 351 | undone, type @kbd{C-f} or any other command that will harmlessly break |
| 350 | the sequence of undoing, then type more undo commands. | 352 | the sequence of undoing, then type more undo commands. On the other |
| 353 | hand, if you want to ignore previous undo commands, use @kbd{M-x | ||
| 354 | undo-only}. This is like @code{undo}, but will not redo changes | ||
| 355 | you have just undone. | ||
| 351 | 356 | ||
| 352 | @cindex selective undo | 357 | @cindex selective undo |
| 353 | @kindex C-u C-x u | 358 | @kindex C-u C-x u |
| @@ -591,10 +596,12 @@ Toggle automatic display of the size of the buffer. | |||
| 591 | @cindex cursor location | 596 | @cindex cursor location |
| 592 | @cindex point location | 597 | @cindex point location |
| 593 | There are two commands for working with line numbers. @kbd{M-x | 598 | There are two commands for working with line numbers. @kbd{M-x |
| 594 | what-line} computes the current line number and displays it in the echo | 599 | what-line} computes the current line number and displays it in the |
| 595 | area. To go to a given line by number, use @kbd{M-x goto-line}; it | 600 | echo area. To go to a given line by number, use @kbd{M-g M-g} or |
| 596 | prompts you for the number. These line numbers count from one at the | 601 | @kbd{M-g g} (@code{goto-line}). This prompts you for a line number, |
| 597 | beginning of the buffer. | 602 | then moves point to the beginning of that line. To move to a given |
| 603 | line in the most recently displayed other buffer, use @kbd{C-u M-g | ||
| 604 | M-g}. Line numbers in Emacs count from one at the beginning of the buffer. | ||
| 598 | 605 | ||
| 599 | You can also see the current line number in the mode line; see @ref{Mode | 606 | You can also see the current line number in the mode line; see @ref{Mode |
| 600 | Line}. If you narrow the buffer, then the line number in the mode line | 607 | Line}. If you narrow the buffer, then the line number in the mode line |