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:37:31 +0300 Message-ID: <834k037lac.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> <838rpf7m9t.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2948"; 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:38:31 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 1o6W1f-0000fd-8Q for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 13:38:31 +0200 Original-Received: from localhost ([::1]:59490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6W1e-0000ig-8z for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 07:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6W0b-0000iV-CN for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 07:37:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6W0b-0007PE-4c for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 07:37:25 -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=IHEJNzYVa1Phq6hhHBqYeRQTByHqfaU00mGlMyzVTyw=; b=NLjYAmqaDgWy fP/6NYyItQV6axU6bFAnkkT7lIwJz7lg/Mf9D95JGJ5hZNsWwRAtD3Mo/ueaNWV0Bsq33vmaH7Yet 582cb7RU0SHgg07slL5NDkypXBxm/TQwLqm7SQqI17jEWNxQMlGn+H+k5/u9RbHEyaJT9MqpGYaqf d2krn4vO2Q9zuFuJct/gsUdanqP3+aiBiD6+TrLUE0BGGkwR/OK7/ZWrH8ETcKQq7t1kxYBicF7H+ UReiIo3yVNdYH/ts+7BltFL+R7p/CVEYgaOAriACthsLNrc3nPoxSyGm3dLucZPhw6eCqYeF/T2q2 ZFInpC6+AwlJCFA4++Q2JQ==; Original-Received: from [87.69.77.57] (port=1713 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 1o6W0a-0008BT-Bp for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 07:37:24 -0400 In-Reply-To: (message from Hongyi Zhao on Wed, 29 Jun 2022 19:25:53 +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:138192 Archived-At: > From: Hongyi Zhao > Date: Wed, 29 Jun 2022 19:25:53 +0800 > Cc: help-gnu-emacs > > > > 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. > > But I waited a minute and didn't see any matching results highlighted > on the screen, as shown in the attached file. With what value of max-redisplay-ticks? With a reasonable value, you should see a warning telling you that the window displaying this file is taking too long to redisplay, and Emacs should remain responsive, so that you can type C-g and then other commands. > BTW, all the matched results will be displayed in vscode almost at the > same time as the input. Can VSCode be programmed to changed its display and its commands like Emacs can?