[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prefix Argument and optional argument
From: |
Emanuel Berg |
Subject: |
Re: Prefix Argument and optional argument |
Date: |
Thu, 07 Jul 2022 17:12:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier via Users list for the GNU Emacs text editor 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.
Do
C-u M-x checkdoc-current-buffer RET
and learn that it also has a docstring problem:
Argument ‘prefix’ should appear (as PREFIX) in the doc
string
At the stage when it does nothing, it seems 'poke' has so many
problems already!
I also don't get any warnings but the ones you mention,
Warning: Unused lexical argument `prefix'
Warning: reference to free variable ‘...’
and that's on
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+
Version 3.24.24, cairo version 1.16.0) of 2022-05-28
[commit 707124d2b92780b4f21d72c7c62899e074fa8ced]
(Love the 'ever' command BTW,
https://dataswamp.org/~incal/emacs-init/meta.el )
--
underground experts united
https://dataswamp.org/~incal
- Re: Prefix Argument and optional argument, (continued)
- docstrings (was: Re: Prefix Argument and optional argument), Emanuel Berg, 2022/07/07
- Re: docstrings (was: Prefix Argument and optional argument), Christopher Dimech, 2022/07/07
- Re: docstrings (was: Prefix Argument and optional argument), Christopher Dimech, 2022/07/07
- Re: docstrings (was: Prefix Argument and optional argument), Emanuel Berg, 2022/07/07
- enforce/automate docstring correctnes (was: Re: docstrings), Emanuel Berg, 2022/07/07
- Re: Prefix Argument and optional argument, Stefan Monnier, 2022/07/07
- Re: Prefix Argument and optional argument,
Emanuel Berg <=
- Re: Prefix Argument and optional argument, Christopher Dimech, 2022/07/07
- Re: Prefix Argument and optional argument, Christopher Dimech, 2022/07/07
- Re: Prefix Argument and optional argument, Jean Louis, 2022/07/07
- Re: Prefix Argument and optional argument, Christopher Dimech, 2022/07/07
- Re: Prefix Argument and optional argument, Yuri Khan, 2022/07/07
- Re: Prefix Argument and optional argument, Michael Heerdegen, 2022/07/07