From xemacs-m  Fri Feb 21 06:58:31 1997
Received: from mgate.uni-hannover.de (mgate.uni-hannover.de [130.75.2.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id GAA29055
	for <xemacs-beta@xemacs.org>; Fri, 21 Feb 1997 06:58:30 -0600 (CST)
Received: from helios (actually helios.tnt.uni-hannover.de) by mgate 
          with SMTP (PP); Fri, 21 Feb 1997 13:58:15 +0100
Received: from daedalus.tnt.uni-hannover.de by helios (SMI-8.6/SMI-SVR4) 
          id NAA02149; Fri, 21 Feb 1997 13:57:54 +0100
Received: by daedalus.tnt.uni-hannover.de (SMI-8.6/SMI-SVR4) id NAA03002;
          Fri, 21 Feb 1997 13:57:53 +0100
Date: Fri, 21 Feb 1997 13:57:53 +0100
Message-Id: <199702211257.NAA03002@daedalus.tnt.uni-hannover.de>
From: Heiko Muenkel <muenkel@tnt.uni-hannover.de>
MIME-Version: 1.0
To: xemacs-beta@xemacs.org
Subject: Mysterious bug, when loading hm--html-mode after psgm-html!
X-Face: n}R'l6CHRf>pi&bj7[x0CW3:kmXm@1)7m+l*9[fp;-Ow4Xe~=5E;skf?2> 
        y]f{HzB|Q(\V9+y$PP~.4G[2n4W7{6Ilm[AMY9B:0kj.K_$-d%p4YIF*bX;=ADp6{ 
        HS@NEv9c.VII+9PgXHASx}K(jy^t=q%qzZ72q1e4E;O!$A$`&wgtLk"1%p.nC_G!] 
        4d1!+J4Q#YD_iXeEy`1x)d\r$1Qn\'23n|[8Y_xzuXJJ7W(EGqnzB]`]aq??;+z=) 
        DW~\'Vq&F'g%QU[Mv2:}nS>SdZFTEC2GsgB=Q,:~H<R5S[:ZN%B:s0;|v1x"Jb
Content-Type: text/plain; charset=US-ASCII

To get the error you've to do the following:

A1. Start a fresh xemacs 19.15b94 with
	xemacs -q

A2. Use the html-mode in the scratch buffer with:
	M-x html-mode

A3. Enable the hm--html-minor-mode in the scratch buffer with:
	M-x hm--html-minor-mode

You should now get the error message
	** reference to free variable hm--html-minor-mode
in the Compile-Log buffer.

Now try the following:
B1. Start another fresh xemacs 19.15b94 with
	xemacs -q

B2. Enable the hm--html-minor-mode in the scratch buffer with:
	M-x hm--html-minor-mode

Now you should get no error message - everything works fine.

Here are the recent minibuffer messages in case A (where the error
occured): 
-----
Recent minibuffer messages (most recent first):

Loading hm--html-mode...done
Loading cl-macs...done
Loading cl-macs...
Warning: reference to free variable hm--html-minor-mode
Loading advice...done
Loading byte-optimize...done
Loading byte-optimize...
Loading bytecomp...done
Loading bytecomp...
Loading advice...
Loading /home/muenkel/.hm--html-configuration.el...done
Loading /home/muenkel/.hm--html-configuration.el...
Loading hm--html-configuration...done
Loading hm--html-configuration...
Loading hm--html-mode...
Loading psgml-html...done
Loading psgml-html...
Loading cl-extra...done
Loading cl-extra...
----

Here are the recent minibuffer messages in case B:
-----
Recent minibuffer messages (most recent first):

Loading cl-macs...done
Loading cl-macs...
Loading advice...done
Loading byte-optimize...done
Loading byte-optimize...
Loading bytecomp...done
Loading bytecomp...
Loading advice...
Loading /home/muenkel/.hm--html-configuration.el...done
Loading /home/muenkel/.hm--html-configuration.el...
Loading hm--html-configuration...done
Loading hm--html-configuration...
Loading hm--html-mode...
Loading cl-extra...done
Loading cl-extra...
----

As you can see, in the case B (without an error) there's no message
"Loading hm--html-mode...done" only a "Loading hm--html-mode...". Does
this mean, that the file hm--html-mode.el is not loaded until it's
end? I would understand this, if the error message would be occured in
case B, because the variable hm--html-minor-mode is defined in the
middle of the file. 

Could anyone please tell me, where the lisp code is, which put's the
error message "** reference to free variable hm--html-minor-mode" in
the Compile-Log buffer, so that I'm able to edebug this function.

Does anyone have an idea what's going on here?

There's no reference from the psgml package to my package, so there
must be something else, which will be changed by the psgml package.

