Maybe (or probably) I'm overlooking a terribly simple thing, but I'm having a hard time using the alias() function to create a new global alias.
I have several projects in parallel, and use a global alias 'ap' for the project's application path. Now I was creating a macro to switch projects, which included deleting the previous alias using alias('-d ap');
, and then setting the new alias.
But no matter what I do, the alias gets created in the *.als file for the extension of the file in the currently active buffer. Only when the buffer is 'fundamental', i.e. with an unknown extension, the alias is created in alias.slk.
The command I used is alias('ap c:\workset');
.
Does anyone have an idea what I'm doing wrong?
TIA,
Johan