|
From: | Perry Smith |
Subject: | Re: Passing arguments to functions |
Date: | Tue, 22 Feb 2011 09:55:19 -0600 |
Let me take a stab at this. This reply is good but I think the user might be asking from the perspective of using emacs instead of writing lisp code. On Feb 22, 2011, at 8:13 AM, Drew Adams wrote:
some parts of Emacs' documentation refers to "commands" and "functions". In any case, some functions are "interactive" and some are not. For example: isearch-forward is an interactive compiled Lisp function in `isearch.el'. verses replace-match is a built-in function in `C source code'. An interactive function uses optional arguments and prefix argument. An interactive function is a super-set in the sense that you can call an interactive function just like a function. e.g. I could call: (isearch-forward "pattern") To get a complete gist of interactive functions, do a help on "interactive" and it will describe how an interactive function takes it arguments. There are many options. If a function is not interactive, then you can not call it via M-x. You can do M-: (Meta-colon) in which case you can type in a lisp s expressions and hit return and have it evaluated.
Hope this helps Perry |
[Prev in Thread] | Current Thread | [Next in Thread] |