<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=EDIT</id>
	<title>EDIT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=EDIT"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=EDIT&amp;action=history"/>
	<updated>2026-08-20T04:30:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=EDIT&amp;diff=808&amp;oldid=prev</id>
		<title>ConvertBot: opens a command's source file for editing</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=EDIT&amp;diff=808&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:03Z</updated>

		<summary type="html">&lt;p&gt;opens a command&amp;#039;s source file for editing&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;opens a command's source file for editing &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;  name of command/macro to edit&lt;br /&gt;
&amp;lt;area&amp;gt;  area for non-dictionary files (lib,libg)  [DEF=&amp;quot;&amp;quot;]&lt;br /&gt;
&amp;lt;opt&amp;gt;   option for non-dictionary files (sys,ucl) [DEF=SYS]&lt;br /&gt;
&lt;br /&gt;
EDIT opens an editing session for the &amp;lt;name&amp;gt; command's primary source file.&lt;br /&gt;
If &amp;lt;area&amp;gt; is not entered the path is determined from the dictionary lookup.  &lt;br /&gt;
The case of &amp;lt;name&amp;gt; is only important if &amp;lt;area&amp;gt; is entered.  Otherwise naming &lt;br /&gt;
rules for intrinsics, macros and primitives are used to find the source file.&lt;br /&gt;
&lt;br /&gt;
If appropriate, the file is compiled when the edit session is completed unless &lt;br /&gt;
the /NB switch is present. &lt;br /&gt;
&lt;br /&gt;
NOTE: The editor must have its own window.  For instance, to use vi one&lt;br /&gt;
must launch a terminal for it:&lt;br /&gt;
  nM&amp;gt; result env.editor &amp;quot;/usr/bin/X11/xterm -e vi&amp;quot; &lt;br /&gt;
Also, case of the editor name may be important depending on the OS.&lt;br /&gt;
&lt;br /&gt;
EDIT uses the editor defined by ENV.EDITOR to edit the file:&lt;br /&gt;
&lt;br /&gt;
  On VMS,  the default editor is edit/edt.&lt;br /&gt;
  On UNIX, the default editor is vi (with xterm -e)&lt;br /&gt;
  On WINDOWS, the default editor is wordpad.&lt;br /&gt;
&lt;br /&gt;
To set this to another default simply set ENV.EDITOR:&lt;br /&gt;
  nM&amp;gt; res env.editor &amp;quot;nedit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  nM&amp;gt; result env.editor &amp;quot;nedit&amp;quot; ! Set the editor.  Case is important on UNIX&lt;br /&gt;
  &lt;br /&gt;
  nM&amp;gt; edit Convert lib        ! Opens Convert.java in SYS/LIB then builds when&lt;br /&gt;
                              ! edit session is closed&lt;br /&gt;
&lt;br /&gt;
  nM&amp;gt; edit CONVERT            ! Opens convert.java in SYS/PRIM then builds when&lt;br /&gt;
                              ! edit session is closed&lt;br /&gt;
&lt;br /&gt;
  nM&amp;gt; edit sourcedg ,,ucl /nb ! Opens convert.java in UCL/PRIM and does NOT&lt;br /&gt;
                              ! build when edit session is closed&lt;br /&gt;
Switches:&lt;br /&gt;
  /NB - Do NOT build file after editing if present&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: nxm.sys.lib.Shell&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>