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.
Sometimes when I'm inside <% %>, emacs still thinks I'm in HTML mode. See
attached mmm.gif. This seems to happen with new <% %> blocks that I type
in. If I exit emacs and reopen the file, it behaves correctly.
Automatic indenting also seems to be somewhat off. I just typed in some
code and it ends up like this:
<%
my $template = HTML::Template->new(filename => 'test.tmpl');
$template->param(
HOME => $ENV{HOME},
PATH => $ENV{PATH},
);
print $template->output;
%>
instead of what I would have expected (subsequent lines being indented
like the first "my $template" line, and also the hash declaration being
indented more efficiently):
<%
my $template = HTML::Template->new(filename => 'test.tmpl');
$template->param(
HOME => $ENV{HOME},
PATH => $ENV{PATH},
);
print $template->output;
%>
If I write this code in pure perl mode, I don't experience the problem of
the first line being indented differently, but I do experience the problem
with the hash declaration.
Also, it seems to have problems recognizing whether a quote character is
inside or outside of the HTML section. For example, the following file:
'
<%
%>
If I put my cursor between the <% %> and press TAB, it will say "In a
string which starts with a '.", but that's not true because the ' was in
the HTML section, not the perl section.
It also does not preserve perl indentation across multiple <% %> sections.
For example:
<%
if (1) {
%>
<%
}
%>
It did not indent the closing } bracket to line up with the beginning of
the "if" statement.
-Philip Mak ([EMAIL PROTECTED])
Screenshot of a bug
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]