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: Wed, 29 Jun 2022 14:16:14 +0300 Message-ID: <838rpf7m9t.fsf@gnu.org> References: <83o7ye96u7.fsf@gnu.org> <83mtdy8j3y.fsf@gnu.org> <83tu856ny2.fsf@gnu.org> <83leth6iga.fsf@gnu.org> <83k0907ty3.fsf@gnu.org> <83h7447pjc.fsf@gnu.org> <83a69w6vsd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24181"; 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 Wed Jun 29 13:19:08 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 1o6Vit-0006D3-Vg for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 13:19:08 +0200 Original-Received: from localhost ([::1]:42820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Vin-0004vi-JP for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 07:19:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Vg2-0003kt-7x for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 07:16:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Vg1-0007zZ-Ve for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 07:16:09 -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=OuPYD8SjliErwfmUBcEbSeD7pm4QvSsXnwq/qbbnneY=; b=ADEgc0wzYWcq PvraQjprxkjgB+fkrqyyTi0WT+mA8qKv3zYuDxehnVQaSdeOFTCbZjxwpwLhwVlnVrcMIGeHB0bBv coEYQKwxFyowwtbaORvXT4u9JE3gzNElm/go4Z/mAnz6CqdoD53R6wQ+jGD9ZmE0qCXNtEpdDW4Z2 bSvSNP4lxm7kp+g3CP1Ofd8BcfufO2I96IwlrJalgMK7b30l2SOI2Ojgbd+fOi9d3ZlF3DtV+GrPy 8/QLqzJH07LqIozodqIwrs5p/3qYq36BsrEl8hvGZUgUDGsNzwi67rrRM7iouqMgjBiG1j7M5dE3g 25PTJU3qVquKh1dMTEbsUw==; Original-Received: from [87.69.77.57] (port=4391 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 1o6Vg0-0005L4-NQ for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 07:16:09 -0400 In-Reply-To: (message from Hongyi Zhao on Wed, 29 Jun 2022 10:48:16 +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:138189 Archived-At: > From: Hongyi Zhao > Date: Wed, 29 Jun 2022 10:48:16 +0800 > Cc: help-gnu-emacs > > On Wed, Jun 29, 2022 at 10:36 AM Eli Zaretskii wrote: > > > Therefore, Emacs still cannot properly handle this situation > > > practically, at least for the user's point of view. > > > > Actually, it _can_ handle this situation "practically", in that now it > > doesn't freeze the entire session, thus allowing the user to do > > something about the issue without losing any edits. > > I still don't understand what you mean. I mean Emacs is no longer frozen. This is the only practical handling of this situation that we could provide for such files. > For example, how to get the same incremental search results > displayed in real time as what in the vscode I showed. The results of incremental search are shown as long as displaying them takes a reasonable amount of time. When Emacs is no longer capable of displaying the results in reasonable time (a.k.a. "freezes"), the results are no longer displayed, to give you a responsive Emacs session.