diff options
| author | Chong Yidong | 2008-10-23 01:08:30 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-23 01:08:30 +0000 |
| commit | fcda64545d0429388ca1928ca52b3635a4d82c89 (patch) | |
| tree | 9d2c41a15db1f32a67dea43729f77417eb87b375 | |
| parent | 996cd6e43f728aff4648a9ba8681f5de56b67b9e (diff) | |
| download | emacs-fcda64545d0429388ca1928ca52b3635a4d82c89.tar.gz emacs-fcda64545d0429388ca1928ca52b3635a4d82c89.zip | |
(Arguments): Explain how to insert multiple digits.
| -rw-r--r-- | doc/emacs/basic.texi | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index c61b0e7d2a0..43b11dab225 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi | |||
| @@ -607,7 +607,7 @@ direction. | |||
| 607 | @kindex M-@t{-} | 607 | @kindex M-@t{-} |
| 608 | @findex digit-argument | 608 | @findex digit-argument |
| 609 | @findex negative-argument | 609 | @findex negative-argument |
| 610 | The easiest way to specify a numeric argument is to type digits | 610 | The easiest way to specify a numeric argument is to type a digit |
| 611 | and/or a minus sign while holding down the @key{META} key. For | 611 | and/or a minus sign while holding down the @key{META} key. For |
| 612 | example, | 612 | example, |
| 613 | 613 | ||
| @@ -621,13 +621,32 @@ well as @kbd{M--}, are bound to commands (@code{digit-argument} and | |||
| 621 | @code{negative-argument}) that set up an argument for the next | 621 | @code{negative-argument}) that set up an argument for the next |
| 622 | command. @kbd{Meta--} without digits normally means @minus{}1. | 622 | command. @kbd{Meta--} without digits normally means @minus{}1. |
| 623 | 623 | ||
| 624 | If you enter more than one digit, you need not hold down the | ||
| 625 | @key{META} key for the second and subsequent digits. Thus, to move | ||
| 626 | down fifty lines, type | ||
| 627 | |||
| 628 | @example | ||
| 629 | M-5 0 C-n | ||
| 630 | @end example | ||
| 631 | |||
| 632 | @noindent | ||
| 633 | Note that this @emph{does not} insert five copies of @samp{0} and move | ||
| 634 | down one line, as you might expect---the @samp{0} is treated as part | ||
| 635 | of the prefix argument. | ||
| 636 | |||
| 637 | (What if you do want to insert five copies of @samp{0}? Type @kbd{M-5 | ||
| 638 | C-u 0}. Here, @kbd{C-u} ``terminates'' the prefix argument, so that | ||
| 639 | the next keystroke begins the command that you want to execute. Note | ||
| 640 | that this meaning of @kbd{C-u} applies only to this case. For the | ||
| 641 | usual role of @kbd{C-u}, see below.) | ||
| 642 | |||
| 624 | @kindex C-u | 643 | @kindex C-u |
| 625 | @findex universal-argument | 644 | @findex universal-argument |
| 626 | You can also specify a numeric argument by typing @kbd{C-u} | 645 | Instead of typing @kbd{M-1}, @kbd{M-2}, and so on, another way to |
| 627 | (@code{universal-argument}) followed by the digits. The advantage of | 646 | specify a numeric argument is to type @kbd{C-u} |
| 628 | @kbd{C-u} is that you can type the digits without holding down the | 647 | (@code{universal-argument}) followed by some digits, or (for a |
| 629 | @key{META} key. For a negative argument, type a minus sign after | 648 | negative argument) a minus sign followed by digits. A minus sign |
| 630 | @kbd{C-u}. A minus sign without digits normally means @minus{}1. | 649 | without digits normally means @minus{}1. |
| 631 | 650 | ||
| 632 | @kbd{C-u} alone has the special meaning of ``four times'': it | 651 | @kbd{C-u} alone has the special meaning of ``four times'': it |
| 633 | multiplies the argument for the next command by four. @kbd{C-u C-u} | 652 | multiplies the argument for the next command by four. @kbd{C-u C-u} |