help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs/prelude: lag in opening big files


From: Stefan Monnier
Subject: Re: Emacs/prelude: lag in opening big files
Date: Fri, 21 Jul 2017 10:34:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> I am having a strange problem that I have never faced before.
> When I open (C-f) a large file, it gets stuck for a long time. I have
> to wait for eternity before the file would open. But if I C-g and
> cancel the process, and do it again, the second time, it opens in
> a snap.

That's because the C-g doesn't kill the "not quite finished" new buffer.
And the second time around find-file encounters the "not quite finished"
buffer, has no idea it's "not quite finished" and just displayed it as
it is without further ado.

> How do I debug this?

    M-: (setq debug-on-error t debug-on-quit t)
    C-f ../new-big-file
    C-g

should give you a backtrace which shows what Emacs is in the process
of doing.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]