From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hariharan Rangasamy Newsgroups: gmane.emacs.bugs Subject: bug#29710: Emacs becomes unresponsive when typing brackets (haskell-mode) Date: Thu, 14 Dec 2017 22:35:39 +0530 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1513271174 13431 195.159.176.226 (14 Dec 2017 17:06:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 17:06:14 +0000 (UTC) To: 29710@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 14 18:06:06 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 1ePWxQ-0002yL-OL for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 18:06:05 +0100 Original-Received: from localhost ([::1]:42099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePWxX-0006VU-Ks for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 12:06:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePWxP-0006Ur-Qs for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:06:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePWxO-00033r-CM for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:06:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePWxO-00033P-7e for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePWxN-0002gh-T9 for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hariharan Rangasamy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Dec 2017 17:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29710 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151327115810320 (code B ref -1); Thu, 14 Dec 2017 17:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Dec 2017 17:05:58 +0000 Original-Received: from localhost ([127.0.0.1]:33974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePWxI-0002gL-EY for submit@debbugs.gnu.org; Thu, 14 Dec 2017 12:05:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePWxG-0002g9-6N for submit@debbugs.gnu.org; Thu, 14 Dec 2017 12:05:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePWx9-0002qQ-GN for submit@debbugs.gnu.org; Thu, 14 Dec 2017 12:05:49 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51379) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ePWx9-0002q9-Ck for submit@debbugs.gnu.org; Thu, 14 Dec 2017 12:05:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePWx7-0006So-Is for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:05:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePWx3-0002fz-3C for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:05:45 -0500 Original-Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:40168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePWx2-0002ek-SA for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2017 12:05:41 -0500 Original-Received: by mail-qt0-x242.google.com with SMTP id u42so8784489qte.7 for ; Thu, 14 Dec 2017 09:05:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aDnY9+jfphKj/cAcH2eOEMhaPLmBHN6Hdg9nKSt5yTg=; b=PgJGVwGUbl3x+UBwEe3guUVUdA35h+iArRnON3Rm/7R6Jo0iTwMRZSwlF5af+wrC99 Tme8s7NTibDXsJ03ZLUJpMuhbpOB1v4TjIwmYPx5ksC6WzkPbWCmt8xoV7l5QN7f9LI1 95o1IQGhw7PhBLcvEgrei9aqJRUSafetsZa9jXjqbRfeGPMZ2GGvxzOSWrzcMlurzHFY PoWYVGuUrB+5n3zrC30O1lzm/e9zuSFUw0SFf15Olrssb3/3Ctti2M/Gc6WxYyxLknbq Ydw0a2ZsmAHTAZB424yQnK9a4D0kb5eBOxC+sQ02ciN43Bu9deFbNFuWYG2tdlqs7Duf BWiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aDnY9+jfphKj/cAcH2eOEMhaPLmBHN6Hdg9nKSt5yTg=; b=KoFF7mDgwHbDFj+mxCkYev8eaxgl3zeC0EC7Nm3ODmuwxkwWV/XSWpGvVFTW3218YX /4GFyDckBn4smkpKjBq+w7Wh++U5sLwbMs48WIBt1LDDb6CYse1R8pJE7XQGp0Z6qPCU bsp4TzDxDxd/y+NzgvpJhE5avz8IIdL1CEMDYVZXZiFK81UeNwY/fVhz76rnSS4lAM5s bG7nXCSDNVzON++wKghgGtWFTXy+FtGGw27dJam97ao9NQfWTiNN1cPGOUXVcO2mOGtj odZ+rtdCjhGbboISfVI5W0hBzqlSp9Kob2Vi7ZrWFtHVMJNQ3Rb0KQm7fBWgdOOUM6A9 Z04Q== X-Gm-Message-State: AKGB3mI/MHeGI0xh9oYHwBBlYaoPvERRNeZ1/cYvLwBEuFvmaW9FoRrv sPBltpIRAMifk/0UqtrSQrVWLKyCnIqKpWnA/lhzuX6vvWg= X-Google-Smtp-Source: ACJfBoslWp0PgofB+Ghcn9XuLStfBRrHJaEhULfhHIS/EkrCoHXr90spVSyLvFXv/bI0S3JkL80lIv3a3GEd3DLgThg= X-Received: by 10.237.62.240 with SMTP id o45mr17236440qtf.141.1513271139786; Thu, 14 Dec 2017 09:05:39 -0800 (PST) Original-Received: by 10.140.82.9 with HTTP; Thu, 14 Dec 2017 09:05:39 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:141056 Archived-At: 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. In GNU Emacs 27.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 2.24.30) of 2017-12-10 built on hari-VirtualBox Repository revision: 94179453039a23b7f2aefa990e317f72a3df03d5 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Ubuntu 16.04.3 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Error during redisplay: (internal--syntax-propertize 148) signaled (quit) [2 times] Quit Configured using: 'configure --enable-checking=yes,glyphs --enable-check-lisp-object-type --prefix=/home/hari/.install --without-pop 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_IN value of $XMODIFIERS: @im=ibus locale-coding-system: iso-latin-1-unix Major mode: Haskell Minor modes in effect: shell-dirtrack-mode: t haskell-indentation-mode: t ivy-mode: t electric-pair-mode: t global-company-mode: t company-mode: t show-paren-mode: t override-global-mode: t global-auto-revert-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils haskell-doc inf-haskell haskell-decl-scan imenu shell pcomplete haskell haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-navigate-imports haskell-repl haskell-collapse hideshow haskell-debug haskell-hoogle haskell-completions haskell-interactive-mode haskell-presentation-mode haskell-compile haskell-process haskell-session url-util json map haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-compat haskell-complete-module haskell-ghc-support noutline outline flymake-proc flymake warnings dabbrev haskell-customize colir color counsel dired dired-loaddefs compile comint ansi-color esh-util swiper ivy delsel ivy-overlay ffap company-oddmuse company-keywords company-etags etags xref project ring company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb elec-pair company-c-headers rx company pcase highlight-symbol thingatpt paren smex ido two-column edmacro kmacro diminish cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core autorevert filenotify jka-compr auto-compile advice packed finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 256157 11502) (symbols 48 32465 1) (miscs 40 56 142) (strings 32 81273 4132) (string-bytes 1 2196417) (vectors 16 31144) (vector-slots 8 748034 12446) (floats 8 246 393) (intervals 56 389 11) (buffers 992 11) (heap 1024 36431 1849))