Re: FVWM: function question

From: Dominik Vogt <dominik.vogt_at_fvwm.org>
Date: Tue, 28 Sep 1999 12:45:52 +0200

On Tue, Sep 28, 1999 at 12:19:48AM +0000, sph_at_enteract.com wrote:
> Mouse button 3:
> if( there is a "MailThread" window ) then
> focus it
> else
> if( there is a Netscape window ) then
> # have it open a MailThread
> netscape -remote 'openInbox'
> else
> # start a new NS process in mail
> netscape -mail
> endif;
> endif;
>
> Button 3 is too complicated and I don't see that there is any syntax
> that will handle it. If you could combine conditions then it
> could look similar to the following:
> AddToFunc NSMailFunction
> + "I" Next (MailThread) Iconify -1
> + "I" Next (MailThread) focus
> + "I" None (MailThread) Next(Netscape) Exec exec netscape -remote 'openInbox'
> + "I" None (MailThread) None(Netscape) Exec exec netscape -mail
>
> of course, that is not valid syntax.

Of course that *is* valid syntax. It doesn't work because you forgot
a whitespace between the 'Next' and the '(Netscape)':

AddToFunc NSMailFunction
+ "I" Next (MailThread) Iconify -1
+ "I" Next (MailThread) focus
+ "I" None (MailThread) Next (Netscape) Exec exec netscape -remote 'openInbox'
+ "I" None (MailThread) None (Netscape) Exec exec netscape -mail
                           ^^^

I've tried it and it works (current development code).

The Next/None/Prev/... commands simply interpret everything after the
condition as a new command. It doesn't matter at all if this is another
contidional command or something else. However the first token of the
following text is a command name and must hence be separated from its
parameters with whitespace.

Bye

Dominik ^_^

-- 
Dominik Vogt, Hewlett-Packard GmbH, Dept. BVS
Herrenberger Str.130, 71034 Boeblingen, Germany
phone: 07031/14-4596, fax: 07031/14-3883, dominik_vogt_at_hp.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Sep 29 1999 - 00:16:03 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST