summaryrefslogtreecommitdiff
path: root/devdocs/elisp/symbol-forms.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
committerCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
commit82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch)
tree158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/elisp/symbol-forms.html
parent9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff)
downloaddotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz
dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/elisp/symbol-forms.html')
-rw-r--r--devdocs/elisp/symbol-forms.html15
1 files changed, 0 insertions, 15 deletions
diff --git a/devdocs/elisp/symbol-forms.html b/devdocs/elisp/symbol-forms.html
deleted file mode 100644
index 7d2da9de..00000000
--- a/devdocs/elisp/symbol-forms.html
+++ /dev/null
@@ -1,15 +0,0 @@
- <h4 class="subsection">Symbol Forms</h4> <p>When a symbol is evaluated, it is treated as a variable. The result is the variable’s value, if it has one. If the symbol has no value as a variable, the Lisp interpreter signals an error. For more information on the use of variables, see <a href="variables">Variables</a>. </p> <p>In the following example, we set the value of a symbol with <code>setq</code>. Then we evaluate the symbol, and get back the value that <code>setq</code> stored. </p> <div class="example"> <pre class="example">(setq a 123)
- ⇒ 123
-</pre>
-<pre class="example">(eval 'a)
- ⇒ 123
-</pre>
-<pre class="example">a
- ⇒ 123
-</pre>
-</div> <p>The symbols <code>nil</code> and <code>t</code> are treated specially, so that the value of <code>nil</code> is always <code>nil</code>, and the value of <code>t</code> is always <code>t</code>; you cannot set or bind them to any other values. Thus, these two symbols act like self-evaluating forms, even though <code>eval</code> treats them like any other symbol. A symbol whose name starts with ‘<samp>:</samp>’ also self-evaluates in the same way; likewise, its value ordinarily cannot be changed. See <a href="constant-variables">Constant Variables</a>. </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/Symbol-Forms.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Forms.html</a>
- </p>
-</div>