From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#30676: Please make smie-config-guess interruptible Date: Fri, 2 Mar 2018 23:28:53 +0000 Message-ID: References: <87371i3xtl.fsf@gmail.com> <87r2p22hcp.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1520033298 21828 195.159.176.226 (2 Mar 2018 23:28:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2018 23:28:18 +0000 (UTC) Cc: 30676@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 03 00:28:13 2018 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 1eru61-0004xQ-AJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Mar 2018 00:28:13 +0100 Original-Received: from localhost ([::1]:37898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eru81-00035k-JJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2018 18:30:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eru7q-00035T-II for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 18:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eru7n-00073v-Aj for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 18:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eru7n-00073J-6D for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 18:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eru7n-0003Tg-0O for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 18:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Mar 2018 23:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30676 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 30676-submit@debbugs.gnu.org id=B30676.152003334113265 (code B ref 30676); Fri, 02 Mar 2018 23:30:02 +0000 Original-Received: (at 30676) by debbugs.gnu.org; 2 Mar 2018 23:29:01 +0000 Original-Received: from localhost ([127.0.0.1]:41655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eru6n-0003Rp-5c for submit@debbugs.gnu.org; Fri, 02 Mar 2018 18:29:01 -0500 Original-Received: from mail-ot0-f175.google.com ([74.125.82.175]:42443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eru6l-0003RZ-Gg for 30676@debbugs.gnu.org; Fri, 02 Mar 2018 18:28:59 -0500 Original-Received: by mail-ot0-f175.google.com with SMTP id l5so10199362otf.9 for <30676@debbugs.gnu.org>; Fri, 02 Mar 2018 15:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6nx6EuD3r6yGSEw2vI/EZimGx5S6oB+BYuQW1KF69B0=; b=UVsQ/SBXOPfgX3CGgnMJj902mb+ReFddDdWYfUH0ywEkwT7j6ICI/nDrwa4z+tpiAw +maHSS3o9xtHHynJxG+FHYK9ER8XPPXXVBSxSnhZ2SGVKfPjDsYg1ecXu5hkCuZPowZH aaQbDpE1JKynPiFiPyrGEEoW7kOyae0HcdjGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6nx6EuD3r6yGSEw2vI/EZimGx5S6oB+BYuQW1KF69B0=; b=Ck3u1kKiQmqeJ1OJBkNVgBcJBSqsUtjZFpDDTt9IhBOr1v2muWu5+SXlDRzPmcgUzJ E7GIa9Qoi4iATHa9wxeGJIY5njLby8X5RjM+nY+ewRRAQdksJMAYeoCStnYlpY6XcI3G Z+dLRN//0hR7zwE8ttjw4qBFTcx4JP1YNRKT915+ybUNPFvMiervQRL0yJ6Vg49eGXwH NTZkF/vYNS3OdSRZDMFoftO1glN79VKEAlERHb8UhvFrTxmHjAJEGW0tqOAZX/F68dPF pReradzgRiwF9HXQ0o9m5okAQMt2/Oy04zmaczAIgNsgTJ/V5NiZY7u2/4cTMLI9ZxBQ F1lA== X-Gm-Message-State: AElRT7G7JEo6hBEH7D0/m2lHPQQxTzQSIyVg8Be7wVZf7Qbd5/+IJlbb MbJdhlztevWSc0Dp+cPOcfW3GYE4Ng+5n8EBrwGPOQ== X-Google-Smtp-Source: AG47ELvbJPeC8qqrBp0e8BBHSJ6HjT6nLc5/kbas8nR2m46haGzXp2G0Me2yswxzaumiaw5Q8yf2QmXhK6Pe4exJwI4= X-Received: by 10.157.16.13 with SMTP id h13mr4901810ote.212.1520033333635; Fri, 02 Mar 2018 15:28:53 -0800 (PST) Original-Received: by 10.157.39.68 with HTTP; Fri, 2 Mar 2018 15:28:53 -0800 (PST) In-Reply-To: <87r2p22hcp.fsf@gmail.com> 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:143854 Archived-At: On 2 March 2018 at 23:22, Noam Postavsky wrote: > Reuben Thomas writes: > >> On 2 March 2018 at 22:41, Noam Postavsky wrote: > >>>> It would be nice if one could run smie-config-guess without having to >>>> worry about it locking up Emacs on large buffers. If it were possible >>>> to interrupt it with C-g, that would make it friendlier. >>> >>> C-g interrupts just fine for me; since it written in lisp, I can't see >>> why it should be otherwise. >> >> Indeed, I was a bit surprised, but I ran it on my ~/.bash_history >> (about 10Mb, 900,000 lines) and however many times I pressed C-g, it >> just sat there slowly counting through the "Analyzing" progress meter, >> and Emacs taking 100% CPU. > > I just checked again, with a file produced by re-catting my > ~/.bash_history until it's 900,000 lines (I got ~13MB), C-g still works > fine here. And I reproduced your result with emasc -Q. I'm puzzled as to how something in my setup could be making it uninterruptible, but clearly it's not an Emacs bug; do please close this, and sorry for the noise: I should have thought of an emacs -Q test before writing the original report. If I run smie-config-guess manually with my setup, then I can interrupt it. The problem arose when I ran it as part of dtrt-indent-mode (3rd-party code that I maintain): https://github.com/jscheid/dtrt-indent But now I can't reproduce the problem, whereas I could several times earlier today. Oh well. Sorry again. -- https://rrt.sc3d.org