# HG changeset patch # User Eli Zaretskii # Date 1224102086 0 # Node ID fa98223dc5ff55abeedf64279462e2b46e2387ec # Parent 436d98f3ba2233c426bcf62f10a68ff24626e9ba (Defining Commands, Using Interactive): The interactive-form of a function can be added via its symbol's property. diff -r 436d98f3ba22 -r fa98223dc5ff doc/lispref/commands.texi --- a/doc/lispref/commands.texi Wed Oct 15 20:20:39 2008 +0000 +++ b/doc/lispref/commands.texi Wed Oct 15 20:21:26 2008 +0000 @@ -103,7 +103,8 @@ @cindex interactive function A Lisp function becomes a command when its body contains, at top -level, a form that calls the special form @code{interactive}. This +level, a form that calls the special form @code{interactive}, or if +the function's symbol has an @code{interactive-form} property. This form does nothing when actually executed, but its presence serves as a flag to indicate that interactive calling is permitted. Its argument controls the reading of arguments for an interactive call. @@ -141,6 +142,11 @@ @code{interactive} form are executed, but at this time @code{interactive} simply returns @code{nil} without even evaluating its argument. + +@cindex @code{interactive-form}, function property +An interactive form can be added to a function post-facto via the +@code{interactive-form} property of the function's symbol. +@xref{Symbol Plists}. @end defspec There are three possibilities for the argument @var{arg-descriptor}: