X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/e2a71e28bf04faba7fae033ae4bbd92c0a94b087..dd18693600ace7b437efb1f4a9c37d41872e001c:/doc/emacs/basic.texi diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index c61b0e7d2a..dec3f741ee 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi @@ -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}