The process of loading a hot fix replaces any definitions for functions and variables with the ones included in the newly loaded files. So, if you want to modify a function that was updated in a hot fix, you should save the file to a new location, modify it, and load it. Again, be sure to preserve the capability of testing SlickEdit with the unmodified version of the hot fix if you have any problems.
I can't get this part to work.
After applying the hotfix, I copy wkspace.e from ~/.slickedit/16.0.0/hotfixes/ to ~/.slickedit/16.0.0/macros/. I edited the file, and made this change:
WorkspaceFilename=_OpenDialog(_stdform('_open_form')' -new -mdi -modal',
'Open Workspace',
'', // Initial wildcards
format_list, // file types
OFN_FILEMUSTEXIST,
WORKSPACE_FILE_EXT, // Default extensions
'', // Initial filename
'/home/b04825/projects/', // Initial directory
'', // Reserved
"Standard Open dialog box"
);
I save this, and then do Macro->Load Module. Then I get an error:
Too many arguments. Add ellipse (...) argument if this function accepts a variable number of arguments
it then puts the cursor at the end of this line in wkspace.e:
toolbarBuildFilterList(_projecttbTreeGetCurProjectName(treeIndex), treeIndex, AllDependencies);
There are two versions of toolbarBuildFilterList() (file project.e). One in hotfixes:
int toolbarBuildFilterList(_str projectName,int ProjectIndex=-1,_str (*AllDependencies):[]=null)
and the original:
int toolbarBuildFilterList(_str projectName,int ProjectIndex=-1)
Notice how the hotfix version has the extra argument. Since I've already applied the hotfix, why isn't Slickedit picking up the right version of project.e?