Problem with Emacs syntax highlighting?

6 views
Skip to first unread message

be_jesse

unread,
Mar 14, 2009, 5:24:29 PM3/14/09
to Haml
I'm using haml-mode.el for some haml syntax highlighting, but it seems
to freeze up emacs on occasion. I'm using emacs 23 from cvs and I can
consistently get it to hang up while trying to add { to the last line
of:

!!!Strict
%html
%head
%title= "Hellos: #{controller.action_name}"
%body
%p

Anything I'm doing wrong? I tried both byte-compiling the file and
just running it raw, same result either way.

Nathan Weizenbaum

unread,
Mar 14, 2009, 10:30:19 PM3/14/09
to ha...@googlegroups.com
I've been doing some crazy stuff with haml-mode recently, so that
might well cause this. I'll take a look.

Nathan Weizenbaum

unread,
Mar 14, 2009, 10:43:47 PM3/14/09
to ha...@googlegroups.com
I can't reproduce it. From what revision of Haml did you get
haml-mode.el? Where exactly are you adding the {?

Jesse Trimble

unread,
Mar 16, 2009, 9:19:23 AM3/16/09
to ha...@googlegroups.com
Nathan, thanks for checking in on this. I'm not at that computer right now,
so I can't check the file for a version, but I can tell you that I copied
and pasted the code from this url either Thurs., march 12 or Friday the
13th:
http://github.com/nex3/haml/blob/master/extra/haml-mode.el

I'm running emacs 23 on Ubuntu 8.10 with Xfce. Just to cover all bases,
tried it again with a bare .emacs file, only including what is necessary to
run haml-mode, and saw the same problem. I also tried it on Emacs22-gtk
with the same .emacs file, again yielding the same result.

I'm adding the { directly after the p in the very last line consisting of
(four spaces)%p
If the addition were successful, it would look like:
%p{

Emacs freezes as soon as I press the { key on that line directly after the
p. If I put a space between p and {, I don't get any problems.

Nathan Weizenbaum

unread,
Mar 16, 2009, 4:57:59 PM3/16/09
to ha...@googlegroups.com
Okay, I can reproduce it now. I'll look into it.

Nathan Weizenbaum

unread,
Mar 16, 2009, 9:00:36 PM3/16/09
to ha...@googlegroups.com
Should be fixed in the latest master. Let me know if that's working for you.

Jesse Trimble

unread,
Mar 16, 2009, 10:06:10 PM3/16/09
to ha...@googlegroups.com
After a brief test, it looks like the problem is resolved.  Thanks for your help!

Nathan Weizenbaum

unread,
Mar 16, 2009, 10:27:20 PM3/16/09
to ha...@googlegroups.com
Thanks for your bug report!

Yong Bakos

unread,
Mar 16, 2009, 10:42:44 PM3/16/09
to Haml
I also confirm it no longer hangs on Aquamacs 1.7.

You're the shit Nathan.


Reply all
Reply to author
Forward
0 new messages