Re: FVWM: AddTo... & sourcing fvwm2rc

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Fri, 8 Mar 2002 21:50:07 +0000

On 08 Mar 2002 15:06:29 -0500, Victor Eijkhout wrote:
>
> What is the best strategy for re-sourcing the rc file? Right now my
> fvwm2rc file is full of
>
> DestroyMenu "verify quit"
> AddToMenu "verify quit" "Really quit?" Title
>
> and
>
> KillModule FvwmPager
> Module FvwmPager 0 4
>
>
> Is that the accepted way of doing things?

Yes, this is a correct way to write a file that may be read several times.
On the other hand, if you don't really want to restart your pager every
time you reread fvwm2rc, place "Module FvwmPager" into StartFunction that
is only executed once on the FVWM start-up and once on restart.

Another way is to keep 2 functions, one for starting things and another
for finishing things. So Module command would go to the first and
KillModule to the second; AddToMenu/AddToFunc may go to the first and
DestroyMenu/DestroyFunc to the second (to clean up unused declarations).
But it is always prefered to call DestroyFunc before the corresponding
AddToFunc anyway to be safe.

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 Fri Mar 08 2002 - 15:50:31 GMT

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