aboutsummaryrefslogtreecommitdiffstats
path: root/man/basic.texi
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-21 18:02:55 +0000
committerRichard M. Stallman2005-03-21 18:02:55 +0000
commit33e54c8713eee7a5dcada98f6a526ddf31aeb593 (patch)
treeed30debd3da14c92ec1b0f1ee645e968632e0354 /man/basic.texi
parent4829cfc31bfebdeeb43b09d1a37e8c53227759c5 (diff)
downloademacs-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.texi19
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
238Read a number @var{n} and move point to buffer position @var{n}. 238Read a number @var{n} and move point to buffer position @var{n}.
239Position 1 is the beginning of the buffer. 239Position 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
241Read a number @var{n} and move point to line number @var{n}. Line 1 242Read a number @var{n} and move point to line number @var{n}. Line 1
242is the beginning of the buffer. 243is 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.
343If all recorded changes have already been undone, the undo command 344If all recorded changes have already been undone, the undo command
344displays an error message and does nothing. 345displays 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
347commands. Starting from that moment, the previous undo commands become 349commands. Starting from that moment, the previous undo commands become
348ordinary changes that you can undo. Thus, to redo changes you have 350ordinary changes that you can undo. Thus, to redo changes you have
349undone, type @kbd{C-f} or any other command that will harmlessly break 351undone, type @kbd{C-f} or any other command that will harmlessly break
350the sequence of undoing, then type more undo commands. 352the sequence of undoing, then type more undo commands. On the other
353hand, if you want to ignore previous undo commands, use @kbd{M-x
354undo-only}. This is like @code{undo}, but will not redo changes
355you 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
594what-line} computes the current line number and displays it in the echo 599what-line} computes the current line number and displays it in the
595area. To go to a given line by number, use @kbd{M-x goto-line}; it 600echo area. To go to a given line by number, use @kbd{M-g M-g} or
596prompts 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,
597beginning of the buffer. 602then moves point to the beginning of that line. To move to a given
603line in the most recently displayed other buffer, use @kbd{C-u M-g
604M-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
600Line}. If you narrow the buffer, then the line number in the mode line 607Line}. If you narrow the buffer, then the line number in the mode line