all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 30676@debbugs.gnu.org
Subject: bug#30676: Please make smie-config-guess interruptible
Date: Fri, 2 Mar 2018 23:28:53 +0000	[thread overview]
Message-ID: <CAOnWdoj9jiUx316o4b-jWHeJ2iSE+n04X7=ums0NMg=5XGF4rg@mail.gmail.com> (raw)
In-Reply-To: <87r2p22hcp.fsf@gmail.com>

On 2 March 2018 at 23:22, Noam Postavsky <npostavs@gmail.com> wrote:
> Reuben Thomas <rrt@sc3d.org> writes:
>
>> On 2 March 2018 at 22:41, Noam Postavsky <npostavs@gmail.com> 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





  reply	other threads:[~2018-03-02 23:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-02 13:16 bug#30676: Please make smie-config-guess interruptible Reuben Thomas
2018-03-02 22:41 ` Noam Postavsky
2018-03-02 23:07   ` Reuben Thomas
2018-03-02 23:22     ` Noam Postavsky
2018-03-02 23:28       ` Reuben Thomas [this message]
2018-03-02 23:47         ` Noam Postavsky
2018-03-02 23:51           ` Reuben Thomas
2018-03-03  8:25             ` Michael Albinus
2018-03-03  8:28               ` Reuben Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOnWdoj9jiUx316o4b-jWHeJ2iSE+n04X7=ums0NMg=5XGF4rg@mail.gmail.com' \
    --to=rrt@sc3d.org \
    --cc=30676@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.