Let's say I have a J function that's several lines long. I want to comment out a couple lines, or remove the comments.
One approach: click on the first line: home N B . down home N B . or home del del del down home del del del Alternatively, the J session manager has a shortcut for this -- select the lines and use ctrl-shft-n or ctrl-shft-b The problem is that these were not designed to be easy to use. You are expected to select the lines down to the nearest character. If you select partial lines, strange things start happening. For example, it almost makes sense if you select starting from the end of one line down through all of the subsequent line, then part of the line after that (let's say that last line is a long one). Almost... but not quite. ctrl-shft-n sticks an extra NB. at the end of the partial line highlight is then adjusted to include all of the long line at the bottom. ctrl-shft-b then removes the NB. at the begining of the lines where it was at the begining, but it leaves the NB. that was at the end of the partial line. And, the highlight is now adjusted to include all three lines. A subsequent ctrl-shft-n then comments out all three lines. This is "almost convenient". But it seems to me that this could be made more convenient if these features were designed to work consistently with lines. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
