unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Andreas Röhler'" <andreas.roehler@easy-emacs.de>,
	"'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 10:13:56 -0700	[thread overview]
Message-ID: <28B973A97952409283428DEE43795AA8@us.oracle.com> (raw)
In-Reply-To: <4E2EF296.3080402@easy-emacs.de>

> IMO the code "p" sends the numerical argument, while "P" the Prefix 
> value introduced with C-u

Correct.  And BTW, the "numerical argument" is nothing more than
`prefix-numeric-value' applied to the raw prefix arg value (the "prefix value
introduced with C-u").

> So if I do M-NUMBER, "P" should send nothing.

No.  There is _always_ a raw prefix-argument value, even if you use none of
`M-NUMBER', `C-NUMBER', `M--', or `C-u'.  If you use none of those then the raw
prefix argument value is nil.

If you use `M-NUMBER' or `C-NUMBER' or `C-u NUMBER' then the raw value is
NUMBER.  This is mentioned in the doc we pointed you to:

 "M-3   M-x display-prefix -| 3  ; (Same as `C-u 3'.)"
 "M-- 7 M-x display-prefix -| -7 ; (Same as `C-u -7'.)"

> whilst C-u M-command
> both should send their defaults, ie "p" 1 and "P" (4)

I don't understand you.  Why `M-command'?
But yes, `C-u' by itself gives 1 for "p" and (4) for "P".




  reply	other threads:[~2011-07-26 17:13 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 [this message]
2011-07-26 17:25     ` Teemu Likonen
2011-07-26 18:19       ` Andreas Röhler

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=28B973A97952409283428DEE43795AA8@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=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).