changeset 4644:b0ae008bf1a0

Documentment placement restriction. <87d490jb7v.fsf@uwakimon.sk.tsukuba.ac.jp>
author Stephen J. Turnbull <stephen@xemacs.org>
date Sat, 20 Jun 2009 04:07:12 +0900
parents e9ccbc62f7e7
children f2a991ff6db0
files src/ChangeLog src/callint.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Jun 14 16:08:22 2009 +0100
+++ b/src/ChangeLog	Sat Jun 20 04:07:12 2009 +0900
@@ -1,3 +1,8 @@
+2009-06-20  Stephen Turnbull  <stephen@xemacs.org>
+
+	* callint.c (Finteractive): Document that (interactive) must
+	appear at the "top level" of a function definition to be effective.
+
 2009-06-14  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* eval.c (For): 
--- a/src/callint.c	Sun Jun 14 16:08:22 2009 +0100
+++ b/src/callint.c	Sat Jun 20 04:07:12 2009 +0900
@@ -86,6 +86,9 @@
 The "call" to `interactive' is actually a declaration rather than a function;
  it tells `call-interactively' how to read arguments
  to pass to the function.
+The interactive form must appear at the top level of the function body.  If
+ it is wrapped in a `let' or `progn' or similar, Lisp will not even realize
+ the function is an interactive command!
 When actually called, `interactive' just returns nil.
 
 The argument of `interactive' is usually a string containing a code letter