|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] user commands in config file |
Date: | Thu, 22 Dec 2016 13:44:49 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Alexey, I suppose that ⎕LX expects an APL _expression_ and not an APL command. Like (just guessing, not tested): ⎕LX←"⍎']USERCMD ]ed EDIT1 1'" /// Jürgen On 12/22/2016 01:16 PM, Alexey
Veretennikov wrote:
Hi, When I set the user command in the ⎕LX variable and save the workspace and then load it again, I get the following error: SAVED 2016-12-22 13:09:00 (GMT+1) Unbalanced bracket ⎕LX ]USERCMD ]ed EDIT1 1 ⍎']USERCMD ]ed EDIT1 1' User-defined command ]ed installed. ⍎⎕LX User-defined command ]ed installed. While as you can see if I exec this manually or directly exec ⎕LX I have no problems. Juergen Sauermann <address@hidden> writes:Hi Alexey, the easiest way to achieve both is to have a workspace named CONTINUE in library 0 (library 0 is by default the directory named workspaces, but that can be changed in the preference file(s)). If that workspace exists then it will be )LOADed automatically and you can set ⎕LX in the CONTINUE workspace to, for example, execute an initialization function or to )COPY other workspaces. /// Jürgen On 12/20/2016 12:13 AM, Alexey Veretennikov wrote: Hi all, 1) I would like to add my user commands to the preferences file, so they would be available for all workspaces (even the clear one) when I start APL. 2) I would also like to copy some functions from some utility workspaces so they will be available in all workspaces when I start APL. How to do that? |
[Prev in Thread] | Current Thread | [Next in Thread] |