From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao 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 20:22:36 +0800 Message-ID: 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> <834k037lac.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 14:24:51 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 1o6WkU-000AI7-RO for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 14:24:50 +0200 Original-Received: from localhost ([::1]:46660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6WkT-00063m-8B for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 08:24:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Wia-0005Uz-9A for help-gnu-emacs@gnu.org; Wed, 29 Jun 2022 08:22:52 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:34368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6WiY-0007qi-OD; Wed, 29 Jun 2022 08:22:52 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id d2so20491619ejy.1; Wed, 29 Jun 2022 05:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rp2C6uaaTxY5LxFVv+GYucw01kgGIXQ0q3bOsEzBeAI=; b=B18m/IkYahrD8RcNhVajZVVjjz3B9hQxuRHYKGuvigpjVQhvXD3ry4CJvlRybAljBu MJHhr6ZwLsPwMiJfCHB8VvBJLyu7856kLGw1Sxl24RHXlgMaQNdGUTUvj2CQ+KCSDIhI VVGTDOg7+4gl4XYt9KDM5dQUtxMEWRqsP/0/g4vpyCx06mBZdJRYhrLXWE1c9VrW5eRy ipkf7zjok34wZdXXFMC74tIdZ+yxgi97IPD0kO9juJkUr3cvSJ6q7QB9IqqkL/QKmEmS O3YjvlU4BfjZIi9FjUZN6X3NPzg2iaGFxf+0AF6YlCdaQZSHIm9cGKQnEr+uFiCXvD4S lTSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rp2C6uaaTxY5LxFVv+GYucw01kgGIXQ0q3bOsEzBeAI=; b=rqK66N4XlKvh43ipk9kVWGHmc6ec/anEs0QiZf0C2XtrOmnUunSuEGeASJDqLFYmu6 oCA8R8vTXlgeGqGzRWWmfimzbCjN/5YE60drVbu1PO3r17TUYFLkmuw+1KTxU+IXCsxm PqNsl8lPodOsTSCUX4DWIYt6F/gACN8xCiXRo8T+obFHBUBbCz78XXw0YnRJjfVXTuz5 0J3cWytfLxH1Vxg0pNVwQRHhT7ME2/4vfMJ80HrBAIZ7cV8+z9ou4wmCE+rxvF6Zy4Tn l93GVdADlWkrZfte7+rOdSgRbFZ2GSrIjD3ZJM6HQY/xDfJrd9SC4cxxe/u4zn9p/19k tFtw== X-Gm-Message-State: AJIora8SE2bbUsAw5oenbkxqur6d2nmaNDfei+fZbVuMvAlp2GR6PwaE RJ+kIYcOPVgJOI4OSZ+nX6SfXatam4h39MRQrnh7+L0HgSI= X-Google-Smtp-Source: AGRyM1s1v+e4poHaJPVUkT+E4oLjC469V/54ablt7pHm+LaeEDYRBtO5j70NA38fpewvpjTc5jCQkD3y1Ik49eQnpjU= X-Received: by 2002:a17:906:7482:b0:722:ea8f:3a12 with SMTP id e2-20020a170906748200b00722ea8f3a12mr3182210ejl.220.1656505368519; Wed, 29 Jun 2022 05:22:48 -0700 (PDT) In-Reply-To: <834k037lac.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:138193 Archived-At: On Wed, Jun 29, 2022 at 7:37 PM Eli Zaretskii wrote: > > > 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? (setq max-redisplay-ticks 250000) > 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? Not clear. My description of the behavior of it and its specific third-party plug-ins is based on the corresponding default settings. Best, Hongsheng