From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29710: Emacs becomes unresponsive when typing brackets (haskell-mode) Date: Thu, 14 Dec 2017 14:24:09 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1513279521 28088 195.159.176.226 (14 Dec 2017 19:25:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 19:25:21 +0000 (UTC) Cc: 29710@debbugs.gnu.org To: Hariharan Rangasamy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 14 20:25:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePZ88-0006qj-VJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 20:25:17 +0100 Original-Received: from localhost ([::1]:42778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePZ8C-0003JO-VM for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 14:25:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePZ7y-0003BH-CO for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 14:25:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePZ7u-0006Za-7E for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 14:25:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePZ7u-0006ZQ-0g for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 14:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePZ7t-0005tl-JR for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 14:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Dec 2017 19:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29710 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29710-submit@debbugs.gnu.org id=B29710.151327945822617 (code B ref 29710); Thu, 14 Dec 2017 19:25:01 +0000 Original-Received: (at 29710) by debbugs.gnu.org; 14 Dec 2017 19:24:18 +0000 Original-Received: from localhost ([127.0.0.1]:34072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePZ7B-0005si-N7 for submit@debbugs.gnu.org; Thu, 14 Dec 2017 14:24:17 -0500 Original-Received: from mail-wr0-f174.google.com ([209.85.128.174]:37522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePZ79-0005sW-Lz for 29710@debbugs.gnu.org; Thu, 14 Dec 2017 14:24:16 -0500 Original-Received: by mail-wr0-f174.google.com with SMTP id k61so6075186wrc.4 for <29710@debbugs.gnu.org>; Thu, 14 Dec 2017 11:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=++HQ0sAwi9LKcm1i1SCBLC6xIUFcYNSudIIszteQdBU=; b=UJhrcfUpjWEDjFtpCV+j2T3JFd28/Jzu3Sds/EQxwuGeotrKrIWg37JJmRi++whtAA +yXaiTvFlVfwBaIv5S/x7KX/BKAiLk3uE8gP3ZO+2HLFJu/BCFHgO+hx+4OpDpA4nfYQ RC/BuAvqhMwzLKFwCMHLKl+cqQwKl8gYTojByiBIAjMhv9ECZ7YKY2sWVJ0qNe2FAEj0 lBlcTbxRgvPWjXBOi02fxAPjEr8pPoBwqy/QT7MFkCtNU8oAx+XzjSTkDwaNrE7HcSjf iCEg1n3PVGoJx/Sg2k+yhZihYFQmmBVdWhtPi2EynSLKNlLGEHuyQZee0tEL8qSPuB6S anwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=++HQ0sAwi9LKcm1i1SCBLC6xIUFcYNSudIIszteQdBU=; b=mXjmAkP41Y1XAGTLKVddBoljjWX5/3ZF4wSA4O3aqkugHPZmaIdFNMqZAoxKcTK5yp yR9DbX9ZWir9Uw2/DPwOcESi5JQIjriOONloGcPNiej/Qpm6yCP8+LgWQzbzD9AYMUIX g53aY/8mVxO8OpMaGJJPEPD3tobL7F8FiEPV4jPQ3OlrRtu9KKRhZY0vchxpkMEayj6j JfBJKyYhHHRyILKI9zFg/RT47yOW9dV5k5SOLshNSssQXELTQCYwbv8e6gDSE2rxMse2 GX0IQzsyLxR6prilhiVZcKYJgvc687ORXwIwEA9bHaU35m4FiKe9jbDmNoX2ux2g4AjP CDiA== X-Gm-Message-State: AKGB3mK/A9pFnYY9ZhXcqzh1LYBwcA27k4K65NfUXz2VNK7UDrB2MXhV 7AZbxGhZHyncdxRwW8Z/rr2icPSt537fBRYVLVc= X-Google-Smtp-Source: ACJfBotqkU2+mwKNOJFkL2L96RTCGHwmLvxeRinA17bpxMk7FZD1mT2C9Tq4sIKoJCSZpXDTay6posBmvaKucn2F97Y= X-Received: by 10.223.157.137 with SMTP id p9mr7163042wre.92.1513279450012; Thu, 14 Dec 2017 11:24:10 -0800 (PST) Original-Received: by 10.223.151.116 with HTTP; Thu, 14 Dec 2017 11:24:09 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: weFRYRslsPgsn3lbSqW40pVVSZs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141063 Archived-At: On Thu, Dec 14, 2017 at 12:05 PM, Hariharan Rangasamy wrote: > Emacs becomes unresponsive when typing {-[]-} when both haskell mode and > electric pair mode are enabled. > > Install haskell mode from https://github.com/haskell/haskell-mode > > * emacs -Q > * enable electric-pair-mode > * enable haskell mode in scratch buffer > * type {--} > * try to input brackets > {-[]-} > > On pressing [ emacs becomes unresponsive, the mouse pointer rotates > continuously. On giving C-g repeatedly, the brackets are inserted and > emacs becomes responsive again. Also when i send SIGUSR2 signal emacs > becomes responsive. > > The bug was posted in > https://www.reddit.com/r/emacs/comments/7jb4qu/bug_with_haskellmode_and_electricpairmode_doesnt/ > In the original post the user mentioned emacs was crashing but i was > able to reproduce the emacs hang only. > > I was able to reproduce this issue easily on two different systems. > Let me know if you are unable to reproduce the issue or if you need > more info. 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.