Debian Codegraph @

info/gcl/rename_002dpackage.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>rename-package (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="rename-package (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="rename-package (ANSI and GNU Common Lisp Document)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="Packages-Dictionary.html" rel="up" title="Packages Dictionary">
15 <link href="shadow.html" rel="next" title="shadow">
16 <link href="list_002dall_002dpackages.html" rel="prev" title="list-all-packages">
17 <style type="text/css">
18 <!--
19 a.summary-letter {text-decoration: none}
20 blockquote.indentedblock {margin-right: 0em}
21 div.display {margin-left: 3.2em}
22 div.example {margin-left: 3.2em}
23 div.lisp {margin-left: 3.2em}
24 kbd {font-style: oblique}
25 pre.display {font-family: inherit}
26 pre.format {font-family: inherit}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 span.nolinebreak {white-space: nowrap}
30 span.roman {font-family: initial; font-weight: normal}
31 span.sansserif {font-family: sans-serif; font-weight: normal}
32 ul.no-bullet {list-style: none}
33 -->
34 </style>
35
36
37 </head>
38
39 <body lang="en">
40 <span id="rename_002dpackage"></span><div class="header">
41 <p>
42 Next: <a href="shadow.html" accesskey="n" rel="next">shadow</a>, Previous: <a href="list_002dall_002dpackages.html" accesskey="p" rel="prev">list-all-packages</a>, Up: <a href="Packages-Dictionary.html" accesskey="u" rel="up">Packages Dictionary</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="rename_002dpackage-_005bFunction_005d"></span><h4 class="subsection">11.2.8 rename-package [Function]</h4>
46
47 <p><code>rename-package</code> <i>package new-name <span class="roman">&amp;optional</span> new-nicknames</i> &rArr; <i>package-object</i>
48 </p>
49 <span id="Arguments-and-Values_003a_003a-180"></span><h4 class="subsubheading">Arguments and Values::</h4>
50
51 <p><i>package</i>&mdash;a <i>package designator</i>.
52 </p>
53 <p><i>new-name</i>&mdash;a <i>package designator</i>.
54 </p>
55 <p><i>new-nicknames</i>&mdash;a <i>list</i> of <i>string designators</i>.
56 The default is the <i>empty list</i>.
57 </p>
58 <p><i>package-object</i>&mdash;the renamed <i>package</i> <i>object</i>.
59 </p>
60 <span id="Description_003a_003a-244"></span><h4 class="subsubheading">Description::</h4>
61
62 <p>Replaces the name and nicknames of <i>package</i>.
63 The old name and all of the old nicknames of <i>package</i> are eliminated
64 and are replaced by <i>new-name</i> and <i>new-nicknames</i>.
65 </p>
66 <p>The consequences are undefined if <i>new-name</i> or any <i>new-nickname</i>
67 conflicts with any existing package names.
68 </p>
69 <span id="Examples_003a_003a-163"></span><h4 class="subsubheading">Examples::</h4>
70
71 <div class="example">
72 <pre class="example"> (make-package 'temporary :nicknames '(&quot;TEMP&quot;)) &rArr; #&lt;PACKAGE &quot;TEMPORARY&quot;&gt;
73 (rename-package 'temp 'ephemeral) &rArr; #&lt;PACKAGE &quot;EPHEMERAL&quot;&gt;
74 (package-nicknames (find-package 'ephemeral)) &rArr; ()
75 (find-package 'temporary) &rArr; NIL
76 (rename-package 'ephemeral 'temporary '(temp fleeting))
77 &rArr; #&lt;PACKAGE &quot;TEMPORARY&quot;&gt;
78 (package-nicknames (find-package 'temp)) &rArr; (&quot;TEMP&quot; &quot;FLEETING&quot;)
79 </pre></div>
80
81 <span id="See-Also_003a_003a-216"></span><h4 class="subsubheading">See Also::</h4>
82
83 <p><a href="make_002dpackage.html">make-package</a>
84 </p>
85
86
87
88 </body>
89 </html>