[Top][All Lists]

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

interactive codes "p" and "P" - bug or mistake

From: Andreas Röhler
Subject: interactive codes "p" and "P" - bug or mistake
Date: Tue, 26 Jul 2011 18:19:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11


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?



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

reply via email to

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