>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




General

Author Thread: Ctrl+Q or +S to close or save
william.lurie
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 3:50 PM (EST)
I interpret the drop down to say that Ctrl+Q will close a function I have inputted and Ctrl+S will Save, and Ctrl+E is Save and End. I have translated many of my FNS from old APL*PLUS and am editing them to work in +WIN, but I could use an explanation of these three operations. In more detail, what does each one do? Thanks.


Comments:

Author Thread:
davin.church
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 4:17 PM (EST)

Those keys work just like they did in the DOS version.

 

Ctrl-Q exits the editor without saving any changes.

 

Ctrl-E saves what you've changed and exits the editor window.

 

Ctrl-S saves what you've changed (into the workspace) but remains in the editor for further editing.  Note that it does not save the workspace to disk, but only the current version of the function to the in-memory workspace.

     

william.lurie
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 5:06 PM (EST)
Thank you, Davin. I will go back and work with them some more. It disturbs me that if I click 'close' on the dropdown menu, the function closes, visibly, and it tells me so. Those operations activated by Ctrl+ letter do not. In the old days, the Del opened a function, and the Del closed a function. I suppose there was some reason for changing that...(but it wasn't broke and I wouldn't have thought it needed fixing).

     

william.lurie
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 11:04 PM (EST)
Well, Davin, I tried some more, and I have so far not been able to make Ctrl+S do anything at all. I have an open function, Ctrl+S doesn't close it. Well, maybe it isn't supposed to. Ctrl+Q does close an open function. But I also got into a mode, with an open function, where I couldn't even find a way to close it...I kept getting "Ill-defined function" and no way to close it or even terminate the session. I'll practice some more tomorrow. Ctrl+S is supposed to save what's been changed but I don't know where, and it's supposed to exit the editor window and as I said, my screen doesn't change.

     

davin.church
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 11:43 PM (EST)

Ctrl-E is like del-ing out of the function.  The actual function in the workspace isn't changed until this time.  In addition, if you've damaged the header line so it's no longer valid, then the editor won't let you leave.  It gives you an ill-defined function now, but the del-editor wouldn't let you do it either (I forget its error message).

 

Ctrl-Q doesn't have an equivalent in the del-editor that I can remember.  It's an "abort", where no edits are saved (the workspace copy of the function is unchanged) and the editing session is closed.  This should work anytime, even with bad function headers, but it may prompt you to be sure you meant to exit without saving.

 

Ctrl-S is just like del-ing out of the function and immediately del-ing back in to continue editing.  The screen doesn't change, but the function in the workspace is updated with the current version from the editor.  Normally, you won't see anything happen when you press Ctrl-S -- it just saves quietly.

 

Again, none of these operations save the workspace to disk, just to the function definition in memory -- just like the del-editor.

 

Does that help at all?

     

j.merrill
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 11:47 PM (EST)
Most of the things that can be wrong with a function don't prevent you from closing the editor; they just cause a dialog that lets you know that the function won't work right (sometimes, it won't work at all) and gives you the choice to save the "broken" fn anyway. I've don't recall seeing the exact message "Ill-defined function"; I've seen "Definition failed at line N" (caused by putting a del on line N of the function) and "Outer syntax error" and some others. What was the exact message?

     

j.merrill
Ctrl+Q or +S to close or save
Posted: Tuesday, July 20, 2004 11:50 PM (EST)
By the way, ctrl-S is not supposed to close the edit session. It just saves whatever you have in the editor into the session. If you type (sorry for dblquotes not line breaks but my IE is stupid) "del something" and the editor opens, you type some comments then ctrl-s, then return to the session (with the mouse or ctrl-tab or ctrl-t) and do "[]vr 'something'" you will see that what you've got in the editor is now in the workspace.

     

william.lurie
Ctrl+Q or +S to close or save
Posted: Wednesday, July 21, 2004 8:27 AM (EST)
Very good, J. I read your 3 short explanations, then went and practiced with each one, and saw each working as you described. It's different from what I've been used to for 30+ years, but this is the way it is now and I'll learn to cope. Thanks.

     

william.lurie
Ctrl+Q or +S to close or save
Posted: Wednesday, July 21, 2004 8:42 AM (EST)
OOPS!!! Your help much appreciated, J...... but it was Davin's 3 explanations that put me on the straight and not so narrow path.

     



APL2000 Official Web Site

May the smile on your face Come straight from your heart
--- Anonymous

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |