From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs freezes again when I try to open a file including only one very long line. Date: Tue, 28 Jun 2022 17:18:12 +0300 Message-ID: <83k0907ty3.fsf@gnu.org> References: <83o7ye96u7.fsf@gnu.org> <83mtdy8j3y.fsf@gnu.org> <83tu856ny2.fsf@gnu.org> <83leth6iga.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23724"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 28 16:20:06 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6C4R-00060S-HG for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 16:20:03 +0200 Original-Received: from localhost ([::1]:34498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6C4Q-0007cZ-IO for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 10:20:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6C2a-0006Qb-VE for help-gnu-emacs@gnu.org; Tue, 28 Jun 2022 10:18:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6C2a-0003iz-MR for help-gnu-emacs@gnu.org; Tue, 28 Jun 2022 10:18:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kmyygrZT0/Wq6uAc1tvnL0prpdPkNvLmxUENqN8xBhE=; b=K+o5Ln+8W0Ao J3gR0G90ZvVxpbDu4VvvHwfv/WkzqtNouw4bgJyRvLgwl3YsP3kt09x3GFSMukxRTojU639Si1ilv V/WpqJTmN6KkrRPJvzGTNt8PbG5lD8oKeaMC1E8DBO9s/KzIruYTcCAgv0QGBY3EbZBgZODmZMVIP fFiOLSOlansse69Yq9TcJHoBln8ceYgFmP5FhlL2a73nFMwalr4WbqMRbtgWM6iLSpnZihrJyWn8K wBEmVsrn7CfNiJW+9QOTRbfZ/ZLxJfBw6SCBw9Y2C0KDiNkXh5pD2FHBOFKo0IuiT4acs7FoXAlSi AWyzjVg/P/2uo7P2eQJi0g==; Original-Received: from [87.69.77.57] (port=3124 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6C2a-0003wg-3D for help-gnu-emacs@gnu.org; Tue, 28 Jun 2022 10:18:08 -0400 In-Reply-To: (message from Hongyi Zhao on Tue, 28 Jun 2022 21:56:58 +0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138164 Archived-At: > From: Hongyi Zhao > Date: Tue, 28 Jun 2022 21:56:58 +0800 > Cc: help-gnu-emacs > > > This is what this feature does: it interrupts a too-long redisplay and > > lets you use Emacs regardless -- you can switch to another buffer, or > > kill the problematic buffer, or do something else to remedy the > > unexpected slowness, instead of having to wait forever for any > > response to any Emacs command, which basically makes the session > > unusable. > > Thank you for your explanation, but I find that in this case, the > incremental search doesn't work as expected, as shown in the attached > file. "Doesn't work" in what way? I think your expectations from what this does are incorrect. This new variable's purpose is to prevent Emacs from becoming frozen and unusable because you happened to visit a problematic file. It doesn't make problematic files non-problematic, it just prevents such a file from making the session hopelessly frozen without any way to recover. In your case, you can kill the buffer and then visit it literally, or make the file shorter and re-visit it, or decide that this file cannot be reasonably edited with Emacs, or something else. And your Emacs session will still be usable and will not freeze -- which was your complaint, see the Subject. IOW, it sounds like your complaint is now something else, not that "Emacs freezes again".