From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: interactive codes "p" and "P" - bug or mistake Date: Tue, 26 Jul 2011 10:13:56 -0700 Message-ID: <28B973A97952409283428DEE43795AA8@us.oracle.com> References: <4E2EE929.9020407@easy-emacs.de> <87aac1ro1r.fsf@mithlond.arda> <4E2EF296.3080402@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311700462 13796 80.91.229.12 (26 Jul 2011 17:14:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2011 17:14:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "=?iso-8859-1?Q?'Andreas_R=F6hler'?=" , "'Teemu Likonen'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 26 19:14:17 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QllCz-0006bz-Ek for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2011 19:14:17 +0200 Original-Received: from localhost ([::1]:51041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QllCy-0003dO-Si for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2011 13:14:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QllCu-0003dE-Sf for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 13:14:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QllCt-0005FC-NM for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 13:14:12 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:16540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QllCt-0005Et-Hh for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 13:14:11 -0400 Original-Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6QHE6K1027713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Jul 2011 17:14:08 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6QHE5nX029604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Jul 2011 17:14:06 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6QHDxur026031; Tue, 26 Jul 2011 12:13:59 -0500 Original-Received: from dradamslap1 (/10.159.42.138) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 26 Jul 2011 10:13:59 -0700 X-Mailer: Microsoft Office Outlook 11 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.6109 In-Reply-To: <4E2EF296.3080402@easy-emacs.de> Thread-Index: AcxLtX56yE35HrF+TXecWbsnEed4TAAANhKA X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090208.4E2EF5E0.0169,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81787 Archived-At: > 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".