From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive. Date: Thu, 19 Mar 2009 19:15:24 +0000 Message-ID: <20090319191524.GA2306@muc.de> Reply-To: Alan Mackenzie , 2723@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237491954 28173 80.91.229.12 (19 Mar 2009 19:45:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 19:45:54 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 20:47:11 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkOCr-0002ig-Sv for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 20:47:10 +0100 Original-Received: from localhost ([127.0.0.1]:51689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkOBV-0006cl-51 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 15:45:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkO9h-00069p-Gw for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:43:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkO9b-000670-O5 for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:43:52 -0400 Original-Received: from [199.232.76.173] (port=36446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkO9b-00066q-CH for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:43:47 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60160) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LkO9a-0006tT-Lh for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:43:46 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2JJhhkm028155; Thu, 19 Mar 2009 12:43:43 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2JJP3oJ022883; Thu, 19 Mar 2009 12:25:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 19 Mar 2009 19:25:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2723 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123749019121303 (code B ref -1); Thu, 19 Mar 2009 19:25:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Mar 2009 19:16:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2JJGRF6021295 for ; Thu, 19 Mar 2009 12:16:29 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkNj9-000595-82 for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:16:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkNj4-00056j-Fj for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:16:26 -0400 Original-Received: from [199.232.76.173] (port=50715 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkNj4-00056g-Ch for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:16:22 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:4755 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LkNj3-0002W3-Qg for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 15:16:22 -0400 Original-Received: (qmail 27119 invoked by uid 3782); 19 Mar 2009 19:16:15 -0000 Original-Received: from acm.muc.de (pD9E23BAC.dip.t-dialin.net [217.226.59.172]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 19 Mar 2009 20:16:12 +0100 Original-Received: (qmail 2342 invoked by uid 1000); 19 Mar 2009 19:15:24 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 19 Mar 2009 15:43:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26489 Archived-At: Hi, Emacs! In the following: ######################################################################### (defun echo-prefix (arg) "Echo the command prefix" (interactive "P") (message "Command prefix: %s" arg)) (defun echo-region (beg end) "Echo the region boundaries" (interactive "r") (message "Region: (%s %s)" beg end)) (defun echo-region-prefix (beg end arg) "Echo the region and prefix parameters." (interactive "rP") (message "region: (%s %s); prefix: %s" beg end arg)) ######################################################################### , echo-prefix and echo-region work as expected. echo-region-prefix throws this error: Wrong number of arguments: (lambda (beg end arg) "Echo the region and prefix parameters." (interactive "rP") (message "region: (%s %s); prefix: %s" beg end arg)), 2 It seems that `(interactive "rP")' is only supplying the defun with two parameters. -- Alan Mackenzie (Nuremberg, Germany).