bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#2723: marked as done (Emacs 23: `interactive': prefix argument "P"


From: Emacs bug Tracking System
Subject: bug#2723: marked as done (Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive.)
Date: Thu, 19 Mar 2009 20:45:04 +0000

Your message dated Thu, 19 Mar 2009 16:40:11 -0400
with message-id <jwv8wn11c4c.fsf-monnier+emacsbugreports@gnu.org>
and subject line Re: bug#2723: Emacs 23: `interactive': prefix argument "P" and 
region "r" are mutually exclusive.
has caused the Emacs bug report #2723,
regarding Emacs 23: `interactive': prefix argument "P" and region "r" are 
mutually exclusive.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2723: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2723
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive. Date: Thu, 19 Mar 2009 19:15:24 +0000 User-agent: Mutt/1.5.9i
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).




--- End Message ---
--- Begin Message --- Subject: Re: bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive. Date: Thu, 19 Mar 2009 16:40:11 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)
> 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")


        Stefan



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]