What do you think about the idea of using \\ as the marker which
indicates where evaluation should stop in a fold? Here is an example:
%mathpiper
Echo(1);
Echo(2);
\\
Echo(3);
%/mathpiper
%output,preserve="false"
Result: True
Side Effects:
1
2
. %/output
Ted
> 2. After processing of the fold stops, where does it "go"? That is, what
> state will I find myself in?
The way I am implementing the \\ behavior is after I grab the contents
of a fold as a string, I take a sub-string from it which starts at
offset 0 and goes up to, but not including, the \\. This sub-string is
then submitted to MathPiper for evaluation.
Ted
> Again, it would be better for me to use a
> "selection block of lines" for execution because that way I can always
> pick necessary portion of the codes in the fold.
I will look into what it would take to do this.
Ted
> That will be a good idea. Again, it would be better for me to use a
> "selection block of lines" for execution because that way I can always
> pick necessary portion of the codes in the fold. It is still a good
> idea to have such a "delimiter" to linearly segregate the code blocks,
> though.
I added the \\ "stop evaluation here" marker and "evaluation only of
selected code in a fold" to development version .79S:
http://www.mathpiper.org/development-releases
Let me know how these work for you.
Ted
> Both new implementation for "partial execution" seem work so well.
> If I extend my wish further I would say:
> a "real" partial implementation would have been much better provided
> that the jEdit editor allows "non-consecutive" selection (or, discrete
> partial selection).
> Is it possible?
I have added multiple selection capabilities to version .79T:
http://www.mathpiper.org/development-releases
Let me know what you think of it :-)
Ted