summaryrefslogtreecommitdiff
path: root/devdocs/elisp/symbols.html
blob: 3beb85eb599529894ef2c0355e59a4ea3ccdf338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 <h2 class="chapter">Symbols</h2>  <p>A <em>symbol</em> is an object with a unique name. This chapter describes symbols, their components, their property lists, and how they are created and interned. Separate chapters describe the use of symbols as variables and as function names; see <a href="variables">Variables</a>, and <a href="functions">Functions</a>. For the precise read syntax for symbols, see <a href="symbol-type">Symbol Type</a>. </p> <p>You can test whether an arbitrary Lisp object is a symbol with <code>symbolp</code>: </p> <dl> <dt id="symbolp">Function: <strong>symbolp</strong> <em>object</em>
</dt> <dd><p>This function returns <code>t</code> if <var>object</var> is a symbol, <code>nil</code> otherwise. </p></dd>
</dl> <table class="menu" border="0" cellspacing="0"> <tr>
<td align="left" valign="top">• <a href="symbol-components" accesskey="1">Symbol Components</a>
</td>
<td> </td>
<td align="left" valign="top">Symbols have names, values, function definitions and property lists. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="definitions" accesskey="2">Definitions</a>
</td>
<td> </td>
<td align="left" valign="top">A definition says how a symbol will be used. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="creating-symbols" accesskey="3">Creating Symbols</a>
</td>
<td> </td>
<td align="left" valign="top">How symbols are kept unique. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="symbol-properties" accesskey="4">Symbol Properties</a>
</td>
<td> </td>
<td align="left" valign="top">Each symbol has a property list for recording miscellaneous information. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="shorthands" accesskey="5">Shorthands</a>
</td>
<td> </td>
<td align="left" valign="top">Properly organize your symbol names but type less of them. </td>
</tr> <tr><th colspan="3" align="left" valign="top"></th></tr>
</table><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/Symbols.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbols.html</a>
  </p>
</div>