help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Prefix Argument and optional argument


From: Stefan Monnier
Subject: Re: Prefix Argument and optional argument
Date: Thu, 07 Jul 2022 10:58:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Christopher Dimech [2022-07-07 15:15:01] wrote:
> (defun poke (prefix)
>   "TODO."
>   (interactive "P")
> ...)
>
> gives 
>
> Warning: misplaced interactive spec: ‘(interactive P)’

I don't get this warning here.  Instead I get two arnings, one about the
fact that `prefix` is not used, and the other about the fact that `...`
is not a known variable.
I suspect that you compiled a slightly different code.


        Stefan




reply via email to

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