unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: help-gnu-emacs@gnu.org
Subject: Re: interactive codes "p" and "P" - bug or mistake
Date: Tue, 26 Jul 2011 20:19:51 +0200	[thread overview]
Message-ID: <4E2F0547.6000104@easy-emacs.de> (raw)
In-Reply-To: <8739htrm33.fsf@mithlond.arda>

Am 26.07.2011 19:25, schrieb Teemu Likonen:
> * 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.
>

OK, thanks all again.

Thought could have that different.
Will find another solution then.

Andreas




      reply	other threads:[~2011-07-26 18:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 16:19 interactive codes "p" and "P" - bug or mistake Andreas Röhler
2011-07-26 16:35 ` Drew Adams
2011-07-26 16:42 ` Teemu Likonen
2011-07-26 17:00   ` Andreas Röhler
2011-07-26 17:13     ` Drew Adams
2011-07-26 17:25     ` Teemu Likonen
2011-07-26 18:19       ` Andreas Röhler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E2F0547.6000104@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tlikonen@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).