Skip to content

font-lock mode hangs with unbalanced left-parenthesis in type signature near top of long file #1344

Description

@ChrisKuklewicz

I am running Emacs (GNU Emacs 24.5.1 (i686-pc-mingw32)) on Windows, and haskell-mode 1.5

When I am in a big haskell file (1000 lines) and at the bottom of the file I can type a new line:

foo :: (some text goes here

This works well and performance appears fine.

But if I type that at the top of the file (just under the import statements for instances) then once I hit the left-parenthesis (which is unbalanced) the rate of response from Emacs drops to less than one character per second, often I have to wait for 10 to 20 seconds for any of "some text goes here" to appear in the buffer after the left parenthesis.

Note that this performance bug only occurs when the unbalanced left parenthesis is part of a type, not when it is part of a normal expression.

This is such a serious performance bug it essentially hangs Emacs. I have to disable font-lock mode when editing many haskell files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions