Subject: fvwmm4 -m4-prefix & -m4squote glitch

From: [email-masked]
Date: Tue, 16 Mar 1999 08:25:48 -0600 (CST)

Full_Name: nathan sidwell
Version: 2.2
CVS_Date: 
OS: Solaris
X_Server: Sun
Submission from: (NULL) (137.222.102.67)

Hi,
if you start fvwm with the following command
	fvwm2 -cmd "FvwmM4 -debug -m4-prefix -m4-squote { -m4-equote } .fvwm2rc"
to get m4 processing, the logic in modules/FvwmM4/FvwmM4.c which emits an
m4
changequote command, forgets that it needs to prepend a 'm4_' because of
the
-m4-prefix option.

Here is the patch I applied to FvwmM4 to correct the problem. And an
entry for the modules/ChangeLog file.

Enjoy,
nathan

Tue Mar 16 14:08:25 GMT 1999  Nathan Sidwell  <[email-masked]>

        * FvwmM4/FvwmM4 (m4_defs): Pay attention to m4_prefix when
        emitting changequote.

*** modules/FvwmM4/FvwmM4.c.orig        Mon Jan 11 05:00:35 1999
--- modules/FvwmM4/FvwmM4.c     Tue Mar  9 15:22:39 1999
*************** static char *m4_defs(Display *display, c
*** 272,278 ****
  
    if (!m4_default_quotes)
    {
!     fprintf(tmpf, "changequote(%s, %s)dnl\n", m4_startquote,
m4_endquote);
    }
  
    hostname = gethostbyname(client);
--- 272,280 ----
  
    if (!m4_default_quotes)
    {
!     fprintf(tmpf, "%schangequote(%s, %s)%sdnl\n",
!         (m4_prefix) ? "m4_": "", m4_startquote, m4_endquote,
!         (m4_prefix) ? "m4_": "");
    }
  
    hostname = gethostbyname(client);

--
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-masked].
To report problems, send mail to [email-masked]