Skip to content

Emacs hangs on haskell-mode when evil-smartparens is enabled #50

@zzantares

Description

@zzantares

Hello, first let me thank you for this package, I've been using it for years without any issue at all, but now I'm experiencing an Emacs freeze and the only clue I have led me here. Let me explain:

When I'm in haskell-mode and want to yank to the end of line with Y emacs freezes, pressing C-g unfreezes it, it happens the same when using D or C. At first I didn't know what was the cause but I create this issue here because when I disable evil-smartparens-mode the problem goes away.

I've used toggle-debug-on-quit and this is what happens when emacs freezes:

Debugger entered--Lisp error: (quit)
  syntax-ppss(5925)
  sp--syntax-ppss(5925)
  sp-point-in-comment()
  sp-get-comment-bounds()
  sp-get-enclosing-sexp(1)
  sp-up-sexp(-1 nil)
  sp-backward-up-sexp()
  evil-sp--depth-at(3964)
  evil-sp--get-endpoint-for-killing()
  evil-sp-yank-line(3953 4014 line)
  funcall-interactively(evil-sp-yank-line 3953 4014 line)
  call-interactively(evil-sp-yank-line nil nil)
  command-execute(evil-sp-yank-line)

Why does this happen? I appreciate any help, Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions