changeset 60788:98fb3a23b966

(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.
author Richard M. Stallman <rms@gnu.org>
date Mon, 21 Mar 2005 18:02:55 +0000
parents 01996d11af06
children e1f3e09e22da
files man/basic.texi
diffstat 1 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/man/basic.texi	Mon Mar 21 17:59:35 2005 +0000
+++ b/man/basic.texi	Mon Mar 21 18:02:55 2005 +0000
@@ -237,7 +237,8 @@
 @item M-x goto-char
 Read a number @var{n} and move point to buffer position @var{n}.
 Position 1 is the beginning of the buffer.
-@item M-x goto-line
+@item M-g M-g
+@itemx M-x goto-line
 Read a number @var{n} and move point to line number @var{n}.  Line 1
 is the beginning of the buffer.
 @item C-x C-n
@@ -343,11 +344,15 @@
 If all recorded changes have already been undone, the undo command
 displays an error message and does nothing.
 
+@findex undo-only
   Any command other than an undo command breaks the sequence of undo
 commands.  Starting from that moment, the previous undo commands become
 ordinary changes that you can undo.  Thus, to redo changes you have
 undone, type @kbd{C-f} or any other command that will harmlessly break
-the sequence of undoing, then type more undo commands.
+the sequence of undoing, then type more undo commands.  On the other
+hand, if you want to ignore previous undo commands, use @kbd{M-x
+undo-only}.  This is like @code{undo}, but will not redo changes
+you have just undone.
 
 @cindex selective undo
 @kindex C-u C-x u
@@ -591,10 +596,12 @@
 @cindex cursor location
 @cindex point location
   There are two commands for working with line numbers.  @kbd{M-x
-what-line} computes the current line number and displays it in the echo
-area.  To go to a given line by number, use @kbd{M-x goto-line}; it
-prompts you for the number.  These line numbers count from one at the
-beginning of the buffer.
+what-line} computes the current line number and displays it in the
+echo area.  To go to a given line by number, use @kbd{M-g M-g} or
+@kbd{M-g g} (@code{goto-line}).  This prompts you for a line number,
+then moves point to the beginning of that line.  To move to a given
+line in the most recently displayed other buffer, use @kbd{C-u M-g
+M-g}.  Line numbers in Emacs count from one at the beginning of the buffer.
 
   You can also see the current line number in the mode line; see @ref{Mode
 Line}.  If you narrow the buffer, then the line number in the mode line