unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* interactive codes "p" and "P" - bug or mistake
@ 2011-07-26 16:19 Andreas Röhler
  2011-07-26 16:35 ` Drew Adams
  2011-07-26 16:42 ` Teemu Likonen
  0 siblings, 2 replies; 7+ messages in thread
From: Andreas Röhler @ 2011-07-26 16:19 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org List

Hi,

given that function:

(defun foo-bar (foo &optional bar)
   ""
   (interactive "p\nP*")
   (message "foo %s bar %s" foo bar))


as with M- NUMBER M-x foo-bar RET

or C-u M-x foo-bar RET

both interactive codes "p" and "P" send the same/similar:

M- 3 M-x foo-bar RET
--> foo 3 bar 3

C-u M-x foo-bar RET
--> foo 4 bar (4)

Think that's not OK.

My mistake?

Thanks,

Andreas

GNU Emacs 23.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
2011-07-17





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-26 18:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 16:19 interactive codes "p" and "P" - bug or mistake Andreas Röhler
2011-07-26 16:35 ` Drew Adams
2011-07-26 16:42 ` Teemu Likonen
2011-07-26 17:00   ` Andreas Röhler
2011-07-26 17:13     ` Drew Adams
2011-07-26 17:25     ` Teemu Likonen
2011-07-26 18:19       ` Andreas Röhler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).