Mercurial > hg > xemacs-beta
comparison src/callint.c @ 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 | ecf1ebac70d8 |
children | cdc51540fed7 |
comparison
equal
deleted
inserted
replaced
4643:e9ccbc62f7e7 | 4644:b0ae008bf1a0 |
---|---|
84 (defun foo (arg) "Doc string" (interactive "p") ...use arg...) | 84 (defun foo (arg) "Doc string" (interactive "p") ...use arg...) |
85 to make ARG be the prefix argument when `foo' is called as a command. | 85 to make ARG be the prefix argument when `foo' is called as a command. |
86 The "call" to `interactive' is actually a declaration rather than a function; | 86 The "call" to `interactive' is actually a declaration rather than a function; |
87 it tells `call-interactively' how to read arguments | 87 it tells `call-interactively' how to read arguments |
88 to pass to the function. | 88 to pass to the function. |
89 The interactive form must appear at the top level of the function body. If | |
90 it is wrapped in a `let' or `progn' or similar, Lisp will not even realize | |
91 the function is an interactive command! | |
89 When actually called, `interactive' just returns nil. | 92 When actually called, `interactive' just returns nil. |
90 | 93 |
91 The argument of `interactive' is usually a string containing a code letter | 94 The argument of `interactive' is usually a string containing a code letter |
92 followed by a prompt. (Some code letters do not use I/O to get | 95 followed by a prompt. (Some code letters do not use I/O to get |
93 the argument and do not need prompts.) To prompt for multiple arguments, | 96 the argument and do not need prompts.) To prompt for multiple arguments, |