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 21:49:04 +0000 Message-ID: <20090319214904.GA1310@muc.de> References: <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 1237500290 23508 80.91.229.12 (19 Mar 2009 22:04:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 22:04:50 +0000 (UTC) Cc: 2723@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 23:06:05 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 1LkQMl-0003aq-3B for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 23:05:53 +0100 Original-Received: from localhost ([127.0.0.1]:35312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkQLO-0007iV-35 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 18:04:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkQLB-0007bq-7R for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 18:03:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkQL6-0007ak-EJ for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 18:03:52 -0400 Original-Received: from [199.232.76.173] (port=39468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkQL6-0007ab-BL for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 18:03:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56222) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LkQL5-0005PQ-Mb for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2009 18:03:48 -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 n2JM3hMQ000880; Thu, 19 Mar 2009 15:03:43 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2JLt5ea031154; Thu, 19 Mar 2009 14:55:05 -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 21:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2723 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2723-submit@emacsbugs.donarmstrong.com id=B2723.123749939829784 (code B ref 2723); Thu, 19 Mar 2009 21:55:04 +0000 Original-Received: (at 2723) by emacsbugs.donarmstrong.com; 19 Mar 2009 21:49:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.muc.de (qmailr@colin.muc.de [193.149.48.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2JLnsbp029777 for <2723@emacsbugs.donarmstrong.com>; Thu, 19 Mar 2009 14:49:56 -0700 Original-Received: (qmail 50026 invoked by uid 3782); 19 Mar 2009 21:49:53 -0000 Original-Received: from acm.muc.de (pD9E51B61.dip.t-dialin.net [217.229.27.97]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 19 Mar 2009 22:49:51 +0100 Original-Received: (qmail 1715 invoked by uid 1000); 19 Mar 2009 21:49:04 -0000 Content-Disposition: inline In-Reply-To: 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: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 19 Mar 2009 18:03: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:26497 Archived-At: Hi, Stefan! On Thu, Mar 19, 2009 at 04:40:11PM -0400, Stefan Monnier wrote: > > It seems that `(interactive "rP")' is only supplying the defun with two > > parameters. > Read C-h f interactive RET, and if you read carefully enough you'll see > you need (interactive "r\nP") No. I've read closely and it doesn't say this, neither in the doc string or the Elisp manual. The pertinent bit of the Elisp manual reads thusly: * It may be a string; then its contents should consist of a code character followed by a prompt (which some code characters use and some ignore). The prompt ends either with the end of the string or with a newline. Here is a simple example: , i.e. the \n terminates the prompt rather than separating it from the next thing. This bit of the manual is oblivious to the existence of descriptors lacking prompts ("p", "P", "r", "d", "i", "m"), and looks like it could have been written early in Emacs's development, before "p" and friends existed (if there was such a time). The only bit of the doc string which is relevant is To prompt for multiple arguments, give a code letter, its prompt, a newline, and another code letter, etc. , which implies that the \n is required only where there's prompting going on, which clearly isn't the case for "P", "r", etc. Is there any reason why there needs to be a \n separating "P" and "r"? After all, in a shell, we can write tar -xf emacs.tar.gz , rather than having to do tar -x -f emacs.tar.gz , which is somewhat analagous. Aternatively, why does the interactive call function not give an error message? OK, I'll write the patches for the Elisp manual and `interactive''s doc string. Just not tonight. Should I reopen this bug, submit a new bug, or just submit the patch? > Stefan > -- Alan Mackenzie (Nuremberg, Germany).