summaryrefslogtreecommitdiff
path: root/devdocs/elisp/function-forms.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/function-forms.html
new repository
Diffstat (limited to 'devdocs/elisp/function-forms.html')
-rw-r--r--devdocs/elisp/function-forms.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/devdocs/elisp/function-forms.html b/devdocs/elisp/function-forms.html
new file mode 100644
index 00000000..cae19311
--- /dev/null
+++ b/devdocs/elisp/function-forms.html
@@ -0,0 +1,8 @@
+ <h4 class="subsection">Evaluation of Function Forms</h4> <p>If the first element of a list being evaluated is a Lisp function object, byte-code object or primitive function object, then that list is a <em>function call</em>. For example, here is a call to the function <code>+</code>: </p> <div class="example"> <pre class="example">(+ 1 x)
+</pre>
+</div> <p>The first step in evaluating a function call is to evaluate the remaining elements of the list from left to right. The results are the actual argument values, one value for each list element. The next step is to call the function with this list of arguments, effectively using the function <code>apply</code> (see <a href="calling-functions">Calling Functions</a>). If the function is written in Lisp, the arguments are used to bind the argument variables of the function (see <a href="lambda-expressions">Lambda Expressions</a>); then the forms in the function body are evaluated in order, and the value of the last body form becomes the value of the function call. </p><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Function-Forms.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Function-Forms.html</a>
+ </p>
+</div>