Mercurial > hg > xemacs-beta
comparison src/callint.c @ 4654:cdc51540fed7
Automated merge with ssh://aidan-guest@hg.debian.org//hg/xemacs/xemacs
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 15 Jul 2009 00:21:01 +0100 |
parents | f3dddd098242 b0ae008bf1a0 |
children | 8f1ee2d15784 |
comparison
equal
deleted
inserted
replaced
4652:f3dddd098242 | 4654:cdc51540fed7 |
---|---|
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, |