Subject: bug#29710: Emacs becomes unresponsive when typing brackets (haskell-mode)

From: Eli Zaretskii <[email-masked]>
Date: Fri, 15 Dec 2017 10:54:07 +0200

> From: Noam Postavsky <[email-masked]>
> Date: Thu, 14 Dec 2017 21:31:20 -0500
> Cc: [email-masked], Linus Shoravi <[email-masked]>
> 
> > I can reproduce also in 25.3, not in 24.5. Probably same issue as
> > Bug#23443, i.e., electric-pair-mode needs to clear the cache after it
> > finishes messing with the syntax table.
> 
> Here's a patch:

Thanks, this is okay for the release branch, but please add some
commentary to the new macro explaining why it is needed and when it
should be used.