X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/b15596f273144d0c8f138e6c5b34246fc1485d98..9dfa7983a31275b3eaba1c52e58e528fd7cd70d8:/doc/emacs/basic.texi diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index b598311157..dec3f741ee 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi @@ -202,18 +202,18 @@ numeric argument @var{n}, move to @var{n}/10 of the way from the top. Move to the end of the buffer (@code{end-of-buffer}). @item C-v @itemx @key{PageDown} -@itemx @key{PRIOR} +@itemx @key{next} Scroll the display one screen forward, and move point if necessary to put it on the screen (@code{scroll-up}). If your keyboard has a -@key{PageDown} key (sometimes labelled @key{PRIOR}), it does the same +@key{PageDown} key (sometimes labelled @key{next}), it does the same thing as as @key{C-v}. Scrolling commands are described further in @ref{Scrolling}. @item M-v @itemx @key{PageUp} -@itemx @key{NEXT} +@itemx @key{prior} Scroll one screen backward, and move point if necessary to put it on the screen (@code{scroll-down}). If your keyboard has a @key{PageUp} -key (sometimes labelled @key{NEXT}), it does the same thing as +key (sometimes labelled @key{prior}), it does the same thing as @key{M-v}. @item M-x goto-char Read a number @var{n} and move point to buffer position @var{n}. @@ -221,9 +221,12 @@ Position 1 is the beginning of the buffer. @item M-g M-g @itemx M-g g Read a number @var{n} and move point to the beginning of line number -@var{n} (@code{goto-line}). Line 1 is the beginning of the buffer. -If point is on or just after a number in the buffer, and you type -@key{RET} with the minibuffer empty, that number is used for @var{n}. +@var{n} (@code{goto-line}). Line 1 is the beginning of the buffer. If +point is on or just after a number in the buffer, that is the default +for @var{n}. Just type @key{RET} in the minibuffer to use it. You can +also specify @var{n} by giving @kbd{M-g M-g} a numeric prefix argument. +@xref{Select Buffer}, for the behavior of @kbd{M-g M-g} when you give it +a plain prefix argument. @item C-x C-n @findex set-goal-column @kindex C-x C-n @@ -607,7 +610,7 @@ direction. @kindex M-@t{-} @findex digit-argument @findex negative-argument - The easiest way to specify a numeric argument is to type digits + The easiest way to specify a numeric argument is to type a digit and/or a minus sign while holding down the @key{META} key. For example, @@ -621,13 +624,32 @@ well as @kbd{M--}, are bound to commands (@code{digit-argument} and @code{negative-argument}) that set up an argument for the next command. @kbd{Meta--} without digits normally means @minus{}1. +If you enter more than one digit, you need not hold down the +@key{META} key for the second and subsequent digits. Thus, to move +down fifty lines, type + +@example +M-5 0 C-n +@end example + +@noindent +Note that this @emph{does not} insert five copies of @samp{0} and move +down one line, as you might expect---the @samp{0} is treated as part +of the prefix argument. + +(What if you do want to insert five copies of @samp{0}? Type @kbd{M-5 +C-u 0}. Here, @kbd{C-u} ``terminates'' the prefix argument, so that +the next keystroke begins the command that you want to execute. Note +that this meaning of @kbd{C-u} applies only to this case. For the +usual role of @kbd{C-u}, see below.) + @kindex C-u @findex universal-argument - You can also specify a numeric argument by typing @kbd{C-u} -(@code{universal-argument}) followed by the digits. The advantage of -@kbd{C-u} is that you can type the digits without holding down the -@key{META} key. For a negative argument, type a minus sign after -@kbd{C-u}. A minus sign without digits normally means @minus{}1. + Instead of typing @kbd{M-1}, @kbd{M-2}, and so on, another way to +specify a numeric argument is to type @kbd{C-u} +(@code{universal-argument}) followed by some digits, or (for a +negative argument) a minus sign followed by digits. A minus sign +without digits normally means @minus{}1. @kbd{C-u} alone has the special meaning of ``four times'': it multiplies the argument for the next command by four. @kbd{C-u C-u}