changeset 98764:fa98223dc5ff

(Defining Commands, Using Interactive): The interactive-form of a function can be added via its symbol's property.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 15 Oct 2008 20:21:26 +0000
parents 436d98f3ba22
children c300c301c4bf
files doc/lispref/commands.texi
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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}: