Debian Codegraph @

info/gcl/ed.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>ed (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="ed (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="ed (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="Environment-Dictionary.html" rel="up" title="Environment Dictionary">
15 <link href="inspect.html" rel="next" title="inspect">
16 <link href="room.html" rel="prev" title="room">
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="ed"></span><div class="header">
41 <p>
42 Next: <a href="inspect.html" accesskey="n" rel="next">inspect</a>, Previous: <a href="room.html" accesskey="p" rel="prev">room</a>, Up: <a href="Environment-Dictionary.html" accesskey="u" rel="up">Environment Dictionary</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="ed-_005bFunction_005d"></span><h4 class="subsection">25.2.17 ed [Function]</h4>
46
47 <p><code>ed</code> <i><span class="roman">&amp;optional</span> x</i> &rArr; <i><i>implementation-dependent</i></i>
48 </p>
49 <span id="Arguments-and-Values_003a_003a-502"></span><h4 class="subsubheading">Arguments and Values::</h4>
50
51 <p><i>x</i>&mdash;<b>nil</b>, a <i>pathname</i>, a <i>string</i>, or a <i>function name</i>.
52 </p>
53 <p>The default is <b>nil</b>.
54 </p>
55 <span id="Description_003a_003a-665"></span><h4 class="subsubheading">Description::</h4>
56
57 <p><b>ed</b> invokes the editor if the <i>implementation</i> provides a resident editor.
58 </p>
59 <p>If <i>x</i> is <b>nil</b>, the editor is entered.
60 If the editor had been previously entered, its prior state is resumed, if possible.
61 </p>
62 <p>If <i>x</i> is a <i>pathname</i> or <i>string</i>,
63 it is taken as the <i>pathname designator</i> for a <i>file</i> to be edited.
64 </p>
65 <p>If <i>x</i> is a <i>function name</i>, the text of its definition is edited.
66 The means by which the function text is obtained is <i>implementation-defined</i>.
67 </p>
68 <span id="Exceptional-Situations_003a_003a-241"></span><h4 class="subsubheading">Exceptional Situations::</h4>
69
70 <p>The consequences are undefined if the <i>implementation</i> does not provide a resident editor.
71 </p>
72 <p>Might signal <b>type-error</b> if its argument is supplied but is not
73 a <i>symbol</i>, a <i>pathname</i>, or <b>nil</b>.
74 </p>
75 <p>If a failure occurs when performing some operation on the <i>file system</i>
76 while attempting to edit a <i>file</i>,
77 an error of <i>type</i> <b>file-error</b> is signaled.
78 </p>
79 <p>An error of <i>type</i> <b>file-error</b> might be signaled if <i>x</i>
80 is a <i>designator</i> for a <i>wild</i> <i>pathname</i>.
81 </p>
82 <p><i>Implementation-dependent</i> additional conditions might be signaled as well.
83 </p>
84 <span id="See-Also_003a_003a-540"></span><h4 class="subsubheading">See Also::</h4>
85
86 <p><b>pathname</b>,
87 </p>
88 <p><b>logical-pathname</b>,
89 </p>
90 <p><a href="compile_002dfile.html">compile-file</a>
91 ,
92 <a href="load.html">load</a>
93 ,
94 </p>
95 <p><a href="Pathnames-as-Filenames.html">Pathnames as Filenames</a>
96 </p>
97
98
99
100 </body>
101 </html>