[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:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 |
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
- interactive codes "p" and "P" - bug or mistake,
Andreas Röhler <=