"Philip " wrote:
> 
> On Sun, 17 Jun 2001, Joshua Chamas wrote:
> 
> > You can get mmm-mode here: http://mmm-mode.sourceforge.net/
> 
> I've been playing around with this emacs mode for ASP, but I'm running
> into some imperfections.
> 

I believe most of these are known / documented 
deficiencies with mmm-mode mixed with perl, which comes
up with Embperl & Mason modes too.

The "fix" for the indentation problem with the 
first perl line is to add a semicolon to the 
beginning of it:

<%;
perl block
%>

This helps perl indent better.

Another thing you pointed out where you have to reopen 
the file in emacs to have new <% %> blocks identified is 
a result that mmm-mode only parses upon emacs buffer 
initialization.  In the sample emacs config file 
I have:

(global-set-key "\M-p"  'mmm-parse-buffer)

You can then use this to hit ESC-p real fast to reparse
the buffer you are in after you have built a new <% %> block.
Future versions of mmm-mode might reparse on the fly, but
that seems like its a TODO item.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks <- Web Link Checking          Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to