aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-07-09 04:03:27 +0000
committerRichard M. Stallman1998-07-09 04:03:27 +0000
commit973cefd24a2e4c70400ebc0a75257d086d333906 (patch)
tree6591a2f9f4665e958c47f7045802be2b963f8138
parent262c8ceae77e12c6889d6b8ee9cba3864cb16ca1 (diff)
downloademacs-973cefd24a2e4c70400ebc0a75257d086d333906.tar.gz
emacs-973cefd24a2e4c70400ebc0a75257d086d333906.zip
Explain "prefix arg". Explain how it can be a flag.
-rw-r--r--etc/TUTORIAL17
1 files changed, 11 insertions, 6 deletions
diff --git a/etc/TUTORIAL b/etc/TUTORIAL
index 65020a8df97..2acaf41dc21 100644
--- a/etc/TUTORIAL
+++ b/etc/TUTORIAL
@@ -191,18 +191,23 @@ is by typing C-u and then the digits before you type the command. If
191you have a META (or EDIT or ALT) key, there is another alternative way 191you have a META (or EDIT or ALT) key, there is another alternative way
192to enter a numeric argument: type the digits while holding down the 192to enter a numeric argument: type the digits while holding down the
193META key. We recommend learning the C-u method because it works on 193META key. We recommend learning the C-u method because it works on
194any terminal. 194any terminal. The numeric argument is also called a "prefix argument",
195because you type the argument before the command it applies to.
195 196
196For instance, C-u 8 C-f moves forward eight characters. 197For instance, C-u 8 C-f moves forward eight characters.
197 198
198>> Try using C-n or C-p with a numeric argument, to move the cursor 199>> Try using C-n or C-p with a numeric argument, to move the cursor
199 to a line near this one with just one command. 200 to a line near this one with just one command.
200 201
201Most commands use the numeric argument as a repeat count. Certain 202Most commands use the numeric argument as a repeat count, but some
202exceptional commands use it differently. C-v and M-v are among the 203commands use it in some other way. Several commands (but none of
203exceptions. When given an argument, they scroll the screen up or down 204those you have learned so far) use it as a flag--the presence of a
204by that many lines, rather than by a screenfuls. For example, C-u 4 205prefix argument, regardless of its value, makes the command do
205C-v scrolls the screen by 4 lines. 206something different.
207
208C-v and M-v are another kind of exception. When given an argument,
209they scroll the screen up or down by that many lines, rather than by a
210screenful. For example, C-u 8 C-v scrolls the screen by 8 lines.
206 211
207>> Try typing C-u 8 C-v now. 212>> Try typing C-u 8 C-v now.
208 213