Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

edit

edit( 
S_object 
[ g_loadFlag ] 
) 
=> x_childId

Description

Edits a file, function, or variable. This function only works if you are in graphical mode. This is an nlambda function.

edit brings up an editor window in a separate process and thus doesn’t lock up the CIW. If the object being edited is a function that was loaded after debug mode was turned on, then edit opens up the file that contains the function. If the editor is vi or emacs it jumps to the start of the function. If g_loadFlag is t the file is loaded into SKILL when the editor is exited. Be sure the editor variable is set up properly if you are using an editor other than vi or emacs.

Arguments

S_object

If you are editing a file, the object you are editing must be a string. If you are editing a function or variable, it must be an unquoted symbol.

g_loadFlag

Determines whether to load the file after the editor window is exited.

Valid values: t or nil

Default: nil.

Value Returned

x_childId

Integer identifying the process spawned for the editor.

Examples

Edits the .cdsinit file in your home directory.

edit( "~/.cdsinit" ) 

Edits the myFun function.

edit( myFun) 

Edits the myVar variable and loads in the new value when the editor window is closed.

edit( myVar ) 

Related Topics

ed

edl

edi

isFile


Return to top
 ⠀
X