|
From: Daniel J S. <dan...@ie...> - 2003-12-04 22:56:52
|
Ethan Merritt wrote:
>On Thursday 04 December 2003 13:38, Ethan Merritt wrote:
>
>
>>>will change the current plot to 100. But should
>>> set term x11 105 raise
>>>actually change the current plot number, or should
>>>it just raise that plot (if it exists) and not change the plot?
>>>
>>>
>>The latter, definitely.
>>
>>
>
>Oops. I see now that this would specifically contradict
>what the current documentation states. Sigh.
>
If it is a portion of the documentation that has just been
added, I think changing the documentation and behavior
of "close" for "set term" would be fine.
>Maybe we could change the syntax of these new options to
> set term x11 {{close|raise} {<x>}}
>That is, a terminal number immediately following the
>'close' or 'raise' indicates that this command leaves
>the current terminal unchanged. While
> set term x11 <x> raise
>would continue to set the current window to <x> and flag it
>to raise again on every new plot, as it does now.
>
>Seems kind of confusing. Let me try again....
>Petr proposed
> 'raise' or 'raise one'
>and I protested that it was not necessarily clear which
>terminal was involved. How about modifying this to
> '{raise|close} term x11 <x>'
>
>I'm not sure either raise or close belongs in a 'set ...'
>command anyhow, since it's a one-time action rather
>than a continuing property.
>
>
At first I didn't catch your meaning, but now I think
I see what you are saying. By your thinking, then,
'title "plot title"' would stay with the 'set term ...'
command because that is still setting a _property_
of the window. "raise" and "close" are basically
arranging the desktop and do not constitute a
property. They would have no effect on the current
plot. (Unless of course the current plot is one that
was closed, in which case it goes to the most
recently created, if I recall correctly.)
That's fine with me so long as others don't feel
dedicating an instruction for a rather limited purpose
is too much. I'd say then deactivate the "raise" and
"close" commands and its documentation if the
Gnuplot build is configured such that a windows-based
terminal is not compiled into the executable. I.e.,
#if defined(X11) || defined(OS2) || defined(Windows)
close and raise command code
#endif
Dan
|