From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: interactive codes "p" and "P" - bug or mistake Date: Tue, 26 Jul 2011 19:00:06 +0200 Message-ID: <4E2EF296.3080402@easy-emacs.de> References: <4E2EE929.9020407@easy-emacs.de> <87aac1ro1r.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1311699629 8150 80.91.229.12 (26 Jul 2011 17:00:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2011 17:00:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 26 19:00:25 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 1QlkzZ-0000dE-9d for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2011 19:00:25 +0200 Original-Received: from localhost ([::1]:50599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlkzY-0006rL-Ix for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2011 13:00:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlkzU-0006rD-E2 for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 13:00:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlkzT-0002ER-Dh for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 13:00:20 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:53711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlkzT-0002EB-2E for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 13:00:19 -0400 Original-Received: from [192.168.178.27] (brln-4dbc49d1.pool.mediaWays.net [77.188.73.209]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LgSHJ-1RFXtq1rWf-00nwzB; Tue, 26 Jul 2011 19:00:08 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: <87aac1ro1r.fsf@mithlond.arda> X-Provags-ID: V02:K0:hTT4rno47Rurh23guO5aGXndHudd41pzSeKES6orr2P CMqQB4H67WZXF/hU0fRCuCdZpI/a4kdVbUiCZUBSNR+CZ0kVhU C6pZ1FxLYk1+nx1pkHr4WpeUNEDize3jhDwgDZZkPmFIS+UMk3 YVYM1WtC2I7xYfGlyBn83lHTWT3dd8AvsRRAgA0nYufMFpwGAK ly48Yq3RoPKxa4lavIHC1uXtrJruqHaYCedow34g/c= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.186 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:81785 Archived-At: Am 26.07.2011 18:42, schrieb Teemu Likonen: > * 2011-07-26T18:19:53+02:00 * Andreas Röhler wrote: > >> given that function: >> >> (defun foo-bar (foo&optional bar) >> "" >> (interactive "p\nP*") >> (message "foo %s bar %s" foo bar)) > > I'm not sure what you think is wrong or unexpected there. I suggest > reading info pages > > (info "(elisp) Prefix Command Arguments") > (info "(elisp) Interactive codes") > > Note the difference between "raw" and "numeric" prefix argument. > Thanks Drews and Teemu, think I know the docu, maybe I didn't understood it correctly. 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) ? Cheers, Andreas