From: Alan Mackenzie <acm@muc.de>
To: bug-gnu-emacs@gnu.org
Subject: bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive.
Date: Thu, 19 Mar 2009 19:15:24 +0000 [thread overview]
Message-ID: <20090319191524.GA2306@muc.de> (raw)
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).
next reply other threads:[~2009-03-19 19:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jwv8wn11c4c.fsf-monnier+emacsbugreports@gnu.org>
2009-03-19 19:15 ` Alan Mackenzie [this message]
2009-03-19 20:16 ` bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive Leo
2009-03-19 20:45 ` bug#2723: marked as done (Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive.) Emacs bug Tracking System
2009-03-19 21:49 ` bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive Alan Mackenzie
2009-03-20 13:19 ` Stefan Monnier
2009-03-20 14:39 ` Juanma Barranquero
2009-03-21 15:25 ` Alan Mackenzie
2009-03-21 19:07 ` Stefan Monnier
[not found] ` <mailman.3605.1237500234.31690.bug-gnu-emacs@gnu.org>
2009-03-20 7:59 ` Miles Bader
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090319191524.GA2306@muc.de \
--to=acm@muc.de \
--cc=2723@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.