GNU bug report logs -
#30676
Please make smie-config-guess interruptible
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Fri, 2 Mar 2018 13:17:01 UTC
Severity: minor
Tags: unreproducible
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30676 in the body.
You can then email your comments to 30676 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 13:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Reuben Thomas <rrt <at> sc3d.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 02 Mar 2018 13:17:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
--
https://rrt.sc3d.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 22:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30676 <at> debbugs.gnu.org (full text, mbox):
tags 30676 + unreproducible
quit
Reuben Thomas <rrt <at> sc3d.org> writes:
> 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.
Added tag(s) unreproducible.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 02 Mar 2018 22:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 23:08:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 30676 <at> debbugs.gnu.org (full text, mbox):
On 2 March 2018 at 22:41, Noam Postavsky <npostavs <at> gmail.com> wrote:
> tags 30676 + unreproducible
> quit
>
> Reuben Thomas <rrt <at> sc3d.org> writes:
>
>> 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.
--
https://rrt.sc3d.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 23:23:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 30676 <at> debbugs.gnu.org (full text, mbox):
Reuben Thomas <rrt <at> sc3d.org> writes:
> On 2 March 2018 at 22:41, Noam Postavsky <npostavs <at> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 23:30:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 30676 <at> debbugs.gnu.org (full text, mbox):
On 2 March 2018 at 23:22, Noam Postavsky <npostavs <at> gmail.com> wrote:
> Reuben Thomas <rrt <at> sc3d.org> writes:
>
>> On 2 March 2018 at 22:41, Noam Postavsky <npostavs <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 23:48:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 30676 <at> debbugs.gnu.org (full text, mbox):
close 30676
quit
Reuben Thomas <rrt <at> sc3d.org> writes:
>> 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
Do you have anything that's setting `inhibit-quit'?
bug closed, send any further explanations to
30676 <at> debbugs.gnu.org and Reuben Thomas <rrt <at> sc3d.org>
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 02 Mar 2018 23:48:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Fri, 02 Mar 2018 23:52:01 GMT)
Full text and
rfc822 format available.
Message #27 received at 30676 <at> debbugs.gnu.org (full text, mbox):
On 2 March 2018 at 23:47, Noam Postavsky <npostavs <at> gmail.com> wrote:
>
> Do you have anything that's setting `inhibit-quit'?
Not in my own init code, but I see that org-mode and magit and helm do
in various places. So if one of those is somehow leaking…but they all
seem to be let bindings, so surely shouldn't be causing a global
problem…
--
https://rrt.sc3d.org
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Sat, 03 Mar 2018 08:26:01 GMT)
Full text and
rfc822 format available.
Message #30 received at 30676 <at> debbugs.gnu.org (full text, mbox):
Reuben Thomas <rrt <at> sc3d.org> writes:
>> Do you have anything that's setting `inhibit-quit'?
>
> Not in my own init code, but I see that org-mode and magit and helm do
> in various places. So if one of those is somehow leaking…but they all
> seem to be let bindings, so surely shouldn't be causing a global
> problem…
Maybe a timer function which was called from inside such a let-form?
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30676
; Package
emacs
.
(Sat, 03 Mar 2018 08:30:02 GMT)
Full text and
rfc822 format available.
Message #33 received at 30676 <at> debbugs.gnu.org (full text, mbox):
On 3 March 2018 at 08:25, Michael Albinus <michael.albinus <at> gmx.de> wrote:
> Reuben Thomas <rrt <at> sc3d.org> writes:
>
>>> Do you have anything that's setting `inhibit-quit'?
>>
>> Not in my own init code, but I see that org-mode and magit and helm do
>> in various places. So if one of those is somehow leaking…but they all
>> seem to be let bindings, so surely shouldn't be causing a global
>> problem…
>
> Maybe a timer function which was called from inside such a let-form?
Thanks for the hint. I'll try to keep it in mind if I come across the
problem again.
--
https://rrt.sc3d.org
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 31 Mar 2018 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.