On Thu, Nov 07, 2002 at 10:47:06AM +0000, Mikhael Goikhman wrote:
> On 06 Nov 2002 11:09:18 +0100, Dominik Vogt wrote:
> > 
> > I am thinking about an incompatible change in the Next and Prev
> > commands.  The other conditional commands that start looking for a
> > new window from the currently focused window already work this
> > way:
> > 
> >  - When the conditional command is run without a context window,
> >    it takes the focus window as a reference point.
> >  - If it is run with a context window, that is used instead of
> >    the focus window.
> > 
> > This allows many wonderful things, for example:
> > 
> >   Next Next Focus
> >   WindowId ... Next Focus
> > 
> > but breaks certain setups.  It might affect actions bound to a
> > window menu item (although I can't think of anything that would
> > require running Next or Prev) and nested complex functions:
> 
> I don't know. Maybe practically such change will be almost invisible.
> But then Next can't be used for anything relable.

Did you ever notice that "Direction" already works this way?  It
*is* reliable because nobody ever thinks of using it outside a
window context.  I am hoping for the same with Next/Prev.

> I.e. to have something
> relable one should use either one or another form instead of "Next":
> 
>   NoWindow Next    # relatively to the focussed window (the current Next)
>   ThisWindow Next  # relatively to the context window if any
>   Current Next     # just as unrelable as the proposed Next
> 
> Maybe just to have 2 Next commands, so that a single command would be
> needed instead of a prefixed command? I.e. introduce ThisNext (or maybe
> NextWindow) that like ThisWindow does nothing if there is no context.

I thought about that too, but on one hand it looks like a silly
thing to do as other commands have proven to work well with the
new logic.  And on the other hand it duplicated code and
maintenance work for no good reason.  Of course it is a dangerous
thing to do.

> I don't say "no", I just try to think.
> 
> >   AddToFunc foo
> >   + I Next bar
> > 
> >   AddToFunc bar
> >   + I echo $w
> >   + I Next echo $w
> 
> A simplier example would be any Next in root menu and that root menu bound
> to WTSF contexts. Such menu would work a bit differently that it is now.
> With NeverFocus or ClickToFocus windows.

I still can not think of a reason why one should have this in a
root or window menu (or any other menu).

> In the end I don't much care if
> there is a way to force one or another meaning (using prefixes).

Bye

Dominik ^_^  ^_^
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to