all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.