davidmiller / pony-mode

Django mode for emacs
Other
149 stars 32 forks source link

Comment tag problems #16

Closed arhpreston closed 12 years ago

arhpreston commented 12 years ago

Issue #15.

With a clean emacs and pony-mode type the following in a blank HTML PonyTpl buffer:

{% comment %}asdfghjklzxcvb...

After roughly 20 characters emacs will start to slow down. Each character after that exponentially (?) increases the time emacs appears to hang for. This means PonyTpl is unusable for templates containing anything but trivial comments.

The temporary fix is to disable line 50 of pony-tpl.el.

As an aside, PonyTpl was not aware of the single line comment idiom: {# ..... #}.

davidmiller commented 12 years ago

Now I can reproduce this you're right - probably best to comment it out than freeze the instance :s