From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Emacs/prelude: lag in opening big files Date: Fri, 21 Jul 2017 10:34:57 -0400 Message-ID: References: <25646CD8-2C85-4840-B72F-8B2EE79D9349@agrarianresearch.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500647904 17880 195.159.176.226 (21 Jul 2017 14:38:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 14:38:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 21 16:38:20 2017 Return-path: Envelope-to: geh-help-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 1dYZ4K-0004Fa-3X for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 16:38:16 +0200 Original-Received: from localhost ([::1]:43528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYZ4P-0001iu-Iz for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 10:38:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYZ1O-0008TA-Gt for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 10:35:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYZ1L-0003kI-F2 for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 10:35:14 -0400 Original-Received: from [195.159.176.226] (port=54822 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYZ1L-0003ir-95 for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 10:35:11 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dYZ1C-0003CB-DD for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 16:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:CxRtRjJ68fuLY+MBTlmuqCHrmqc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113808 Archived-At: > 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