|
Post by nicc on Mar 16, 2017 7:47:26 GMT -5
Hi,
I did not know how to title this but here is what happened.
I was doing edits in "multi file mode". Some of the edits were to paste in new code and delete the code that would now be redundant. The sequence was: PASTE primary command A line command to paste after that line DD/DD on subsequent lines to delete the redundant lines. The paste took place but the line deletion did not (and the DD/DD disappeared).
Thinking that this might be a multifile edit problem I also tried the same sequence whilst editing just one file - same result. So I checked the documentation for PASTE and there is no mention of not allowing other line commands at the same time. Editing multiple files did not mention this either.
Is this a bug or just a "whoops"?
BTW - PASTE is out of sequence in the documentation.
BTW2 - I downloaded the latest version today just to make sure.
|
|
|
Post by George on Mar 16, 2017 10:42:42 GMT -5
I'll have a look at this, but I have this odd feeling that this is a structural issue, not a simple bug. It all gets wrapped in the parsing of line commands with/without dependent primary commands. We'll see.
George
[Update]
Yes, it is a design restriction. When a Primary command utilizes a line pointer (like the A/B) then other line commands are thrown away. You can bypass this particular example as Robert has indicated using the HH/HH markers, or, you can do it using the DD/DD markers and avoiding the A/B markers by using PASTE AFTER .nnn format.
As Robert is aware, I've re-written line command handling a couple times now trying to resolve all the various wrinkles. It's an exceedingly complex problem, especially with all the possible interactions with various Primary commands. And frankly, I don't have an alternative design dreamed up to even consider a re-write. Just tracing this through the code today made my brain hurt.
George
|
|
|
Post by George on Mar 17, 2017 11:23:50 GMT -5
I think I'm like you Robert, I don't tend to 'overload' a single interaction with too many commands. Probably because I know what's going on under the covers, and am amazed that anything works. George
|
|
|
Post by nicc on Mar 18, 2017 9:12:20 GMT -5
Hi - bit late to come back but...
I posted after completing my edits. I have now practiced h/hh with various combinations of number of records being copied/replaced and all is well.
I do not do 'heavy usage'. My heaviest usage is usually the line command sequence CAD - Copy, After, Delete - usually reating to one line at a time. To me, paste replaces the Copy so I do it the same way. Anyway, it isn't a problem to break it down into separate operations and with H/HH it could be done in one. My problem is that I still have access to real, but back-dated, ISPF so I tend to stick with ISPF commands.
Did you notice the first BTW in my original post? I have another but I will start a new topic.
|
|
|
Post by George on Mar 18, 2017 12:09:39 GMT -5
Nicc: Sorry I didn't mention it. Yes, I did see it and have moved PASTE into it's proper place.
Thanks, George
|
|