237 |
@item M-x goto-char |
@item M-x goto-char |
238 |
Read a number @var{n} and move point to buffer position @var{n}. |
Read a number @var{n} and move point to buffer position @var{n}. |
239 |
Position 1 is the beginning of the buffer. |
Position 1 is the beginning of the buffer. |
240 |
@item M-x goto-line |
@item M-g M-g |
241 |
|
@itemx M-x goto-line |
242 |
Read a number @var{n} and move point to line number @var{n}. Line 1 |
Read a number @var{n} and move point to line number @var{n}. Line 1 |
243 |
is the beginning of the buffer. |
is the beginning of the buffer. |
244 |
@item C-x C-n |
@item C-x C-n |
344 |
If all recorded changes have already been undone, the undo command |
If all recorded changes have already been undone, the undo command |
345 |
displays an error message and does nothing. |
displays an error message and does nothing. |
346 |
|
|
347 |
|
@findex undo-only |
348 |
Any command other than an undo command breaks the sequence of undo |
Any command other than an undo command breaks the sequence of undo |
349 |
commands. Starting from that moment, the previous undo commands become |
commands. Starting from that moment, the previous undo commands become |
350 |
ordinary changes that you can undo. Thus, to redo changes you have |
ordinary changes that you can undo. Thus, to redo changes you have |
351 |
undone, type @kbd{C-f} or any other command that will harmlessly break |
undone, type @kbd{C-f} or any other command that will harmlessly break |
352 |
the sequence of undoing, then type more undo commands. |
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. |
356 |
|
|
357 |
@cindex selective undo |
@cindex selective undo |
358 |
@kindex C-u C-x u |
@kindex C-u C-x u |
596 |
@cindex cursor location |
@cindex cursor location |
597 |
@cindex point location |
@cindex point location |
598 |
There are two commands for working with line numbers. @kbd{M-x |
There are two commands for working with line numbers. @kbd{M-x |
599 |
what-line} computes the current line number and displays it in the echo |
what-line} computes the current line number and displays it in the |
600 |
area. To go to a given line by number, use @kbd{M-x goto-line}; it |
echo area. To go to a given line by number, use @kbd{M-g M-g} or |
601 |
prompts you for the number. These line numbers count from one at the |
@kbd{M-g g} (@code{goto-line}). This prompts you for a line number, |
602 |
beginning of the buffer. |
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. |
605 |
|
|
606 |
You can also see the current line number in the mode line; see @ref{Mode |
You can also see the current line number in the mode line; see @ref{Mode |
607 |
Line}. If you narrow the buffer, then the line number in the mode line |
Line}. If you narrow the buffer, then the line number in the mode line |