Next: , Previous: , Up: Introduction   [Contents][Index]


1.4 The Prefix Argument

The prefix argument is an integer argument which may be supplied to a command. It is known as the prefix argument because it is specified by invoking some prefix argument setting command immediately before the command to be given the argument. The following statements about the interpretation of the prefix argument are true:

The following commands are used to set the prefix argument:

Command: Argument Digit (bound to all control or meta digits)

Typing a number using this command sets the prefix argument to that number, for example, typing M-1 M-2 sets the prefix argument to twelve.

Command: Negative Argument (bound to M–)

This command negates the prefix argument, or if there is none, sets it to negative one. For example, typing M– M-7 sets the prefix argument to negative seven.

Command: Universal Argument (bound to C-u)
Hemlock Variable: Universal Argument Default (initial value 4)

This command sets the prefix argument or multiplies it by four. If digits are typed immediately afterward, they are echoed in the echo area, and the prefix argument is set to the specified number. If no digits are typed then the prefix argument is multiplied by four. C-u - 7 sets the prefix argument to negative seven. C-u C-u sets the prefix argument to sixteen. M-4 M-2 C-u sets the prefix argument to one hundred and sixty-eight. C-u M-0 sets the prefix argument to forty.

Universal Argument Default determines the default value and multiplier for the Universal Argument command.


Next: Modes, Previous: Invoking Commands, Up: Introduction   [Contents][Index]