|
From: | Stefan Monnier |
Subject: | Re: Making a function than can only be used interactively |
Date: | Sun, 03 Jul 2022 18:01:45 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> Thought that (declare (interactive-only <foo>)) specifies <foo> to > work only interactively. Thus, what is the "replacement" about? No, the function that's declared to be `interactive-only` is the function in which you place this `declare`. The <foo> is used in the warning's text to say something like "<blabla> is for interactive only; use <foo> instead". A `grep '(interactive-only' **/*.el` in Emacs's source code will give you some examples. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |