April 1997
Intermediate to advanced
240 pages
5h 56m
English
The variable current-prefix-arg always contains the latest "raw" prefix argument, which is the same thing you get from
(interactive "P")
The function prefix-numeric-value can be applied to a "raw" prefix argument to get its numeric value, which is the same thing you get from
(interactive "p")
What does a raw prefix argument look like? Table 2-1 shows possible raw values along with their corresponding numeric values.
Table 2-1. Prefix arguments
If the User Types | Raw Value | Numeric Value |
|---|---|---|
C-u followed by a (possibly negative) number | The number itself | The number itself |
C-u - (with no following number) | The symbol |
|
C-u n times in a row (with no following number or minus sign) | A list containing the number |
|
No prefix argument |
|
|
Read now
Unlock full access