Re: FVWM: Arithmetics?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Tue, 22 Apr 2003 13:05:02 +0000

On 22 Apr 2003 10:48:49 +0200, Felix E. Klee wrote:
>
> On Tuesday 22 April 2003 05:14, Mikhael Goikhman wrote:
> > The function above only works in the current cvs, there was one problem.
> > If you want to use this with 2.5.2+ versions instead of cvs, then the "."
> > function above should be defined as the following instead:
> >
> > DestroyFunc .
> > AddToFunc .
> > + I SendToModule FvwmPerl eval preprocess({ 'command' => 1 } , q<$*>)
>
> That's very nice. There are some problems though:
> o Your command conflicts with preprocessing. However, this can probably be
> solved by using different quote characters for preprocessing or by
> turning off preprocessing. After all, with "." I can move most stuff that
> needs to be preprocessed into init functions.

Well, this function "." was only intended for non-preprocessed configs,
it adds an optional preprocessing to some given lines only.

If you preprocess the whole file, you don't need this function ".",
all lines are preprocessed statically anyway. But you may want this
function for dynamical preprocessing then, for example (syntax for cvs):

  DestroyFunc .
  AddToFunc .
  + I SendToModule FvwmPerl preprocess -c --quote * -- $*

  Next (XTerm) . Exec xmessage *{ $[w.x] + $[w.y] }*

> o The following configuration fails silently (i.e. FvwmPager doesn't start
> and there is no error message):
>
> AddToFunc .
> + I SendToModule FvwmPerl eval preprocess({ 'command' => 1 } , q<$*>)
>
> AddToFunc StartFunction
> + I Module FvwmPerl
> + I . Module FvwmPager 0 %{ 5 }%
>
> If the above problems can be eliminated I think it is a very good idea to
> put this in the FAQ. Please add some example like the ones above. Also make
> sure that people know that they have to start the FvwmPerl module:
>
> AddToFunc StartFunction
> + I Module FvwmPerl

The man page suggest (I will make it more clear):

  ModuleSynchronous FvwmPerl

With simply "Module", the SentToModule command happens before it's ready.

Regards,
Mikhael.
--
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 Tue Apr 22 2003 - 08:06:51 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST