<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>edit -- edit source code</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_eigenvalues.html">next</a> | <a href="_echo__On.html">previous</a> | <a href="_eigenvalues.html">forward</a> | <a href="_echo__On.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>edit -- edit source code</h1> <div class="single"><h2>Description</h2> <div><div><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>edit f</tt></div> </dd></dl> </div> </li> <li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Command.html">command</a></span></span></li> </ul> </li> <li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the editor is started up, pointing at the source code of the function or command<tt>f</tt></span></li> </ul> </li> </ul> </div> <div><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>edit(f,X)</tt></div> </dd></dl> </div> </li> <li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li> <li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li> </ul> </li> <li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the editor is started up, pointing at the source code of method for applying <tt>f</tt> to an argument of type <tt>X</tt></span></li> </ul> </li> </ul> </div> <div><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>edit(f,X,Y)</tt></div> </dd></dl> </div> </li> <li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li> <li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li> <li><span><tt>Y</tt>, <span>a <a href="___Type.html">type</a></span></span></li> </ul> </li> <li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the editor is started up, pointing at the source code of method for applying <tt>f</tt> to arguments of type <tt>X</tt> and <tt>Y</tt></span></li> </ul> </li> </ul> </div> <div><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>edit(f,X,Y,Z)</tt></div> </dd></dl> </div> </li> <li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li> <li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li> <li><span><tt>Y</tt>, <span>a <a href="___Type.html">type</a></span></span></li> <li><span><tt>Z</tt>, <span>a <a href="___Type.html">type</a></span></span></li> </ul> </li> <li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the editor is started up, pointing at the source code of method for applying <tt>f</tt> to arguments of type <tt>X</tt>, <tt>Y, and </tt><tt>Z</tt></span></li> </ul> </li> </ul> </div> <div><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>edit(f,X,Y,Z,T)</tt></div> </dd></dl> </div> </li> <li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li> <li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li> <li><span><tt>Y</tt>, <span>a <a href="___Type.html">type</a></span></span></li> <li><span><tt>Z</tt>, <span>a <a href="___Type.html">type</a></span></span></li> <li><span><tt>T</tt>, <span>a <a href="___Type.html">type</a></span></span></li> </ul> </li> <li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the editor is started up, pointing at the source code of method for applying <tt>f</tt> to arguments of type <tt>X</tt>, <tt>Y, and </tt><tt>Z</tt>, and <tt>T</tt></span></li> </ul> </li> </ul> </div> <p>The name of the user's preferred editor is take from the environment variable <tt>EDITOR</tt>. If X is running and the editor is not emacs, then the editor is started in a new <tt>xterm</tt> window.</p> <p>For an interactive example, try <tt>edit(dim,Module)</tt>.</p> <p>The value returned is the exit code returned by the editor, as with <a href="_run.html" title="run an external command">run</a>, usually zero.</p> </div> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="_edit.html" title="edit source code">edit</a> is <span>a <a href="___Command.html">command</a></span>.</p> </div> </div> </body> </html>