[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interactive codes "p" and "P" - bug or mistake
From: |
Teemu Likonen |
Subject: |
Re: interactive codes "p" and "P" - bug or mistake |
Date: |
Tue, 26 Jul 2011 20:25:04 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
* 2011-07-26T19:00:06+02:00 * Andreas Röhler wrote:
> IMO the code "p" sends the numerical argument, while "P" the Prefix
> value introduced with C-u
>
> So if I do M-NUMBER, "P" should send nothing.
> whilst C-u M-command
>
> both should send their defaults, ie "p" 1 and "P" (4)
No. When you execute a command there is only one prefix argument but
Emacs knows two different _representations_ of it. So, when you type
C-u M-x command RET
the "command" gets a prefix argument. Its representation in "raw" format
is "(4)", that is, a list with a single item, the integer 4. Its
representation in "numeric" format is the integer 4.