all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 2723@emacsbugs.donarmstrong.com
Subject: bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive.
Date: Thu, 19 Mar 2009 20:16:12 +0000	[thread overview]
Message-ID: <xbaivdq5nu9f.fsf@cam.ac.uk> (raw)
In-Reply-To: <20090319191524.GA2306@muc.de> (Alan Mackenzie's message of "Thu,  19 Mar 2009 19:15:24 +0000")

On 2009-03-19 19:15 +0000, Alan Mackenzie wrote:
> (defun echo-region-prefix (beg end arg)
>   "Echo the region and prefix parameters."
>   (interactive "rP")
>   (message "region: (%s %s); prefix: %s" beg end arg))

They have to be separated by "\n" as follows.

(defun echo-region-prefix (beg end arg)
  "Echo the region and prefix parameters."
  (interactive "r\nP")
  (message "region: (%s %s); prefix: %s" beg end arg))

I tested it in GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version
2.12.0) of 2008-12-15.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system






  reply	other threads:[~2009-03-19 20:16 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 ` bug#2723: Emacs 23: `interactive': prefix argument "P" and region "r" are mutually exclusive Alan Mackenzie
2009-03-19 20:16   ` Leo [this message]
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=xbaivdq5nu9f.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=2723@emacsbugs.donarmstrong.com \
    --cc=acm@muc.de \
    /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.