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: Thu, 30 Jun 2022 13:41:02 +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> <8335fn7e64.fsf@gnu.org> <831qv778ye.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="20830"; 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 Thu Jun 30 07:42:50 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 1o6mwx-0004yO-Op for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 07:42:47 +0200 Original-Received: from localhost ([::1]:51482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6mww-0003gS-9S for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 01:42:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6mvV-0003gH-M7 for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 01:41:17 -0400 Original-Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]:37457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6mvT-0006zi-UI; Thu, 30 Jun 2022 01:41:17 -0400 Original-Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-fb6b4da1dfso24430867fac.4; Wed, 29 Jun 2022 22:41:15 -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=gw6Su+eoseCc5wJVYiTOXmmoRBs3T0s/DuSI3EiMJtA=; b=KC655/LwqB9Cg28pG0WJtRrGFCVdLxyW4TYFYwJQvoJrYm8ZxaB/MLib46BC9mBSWT RXlBQ7GWdOw40QKwZsVTpJfgefzzcm1b7eA7Dlu+J8XosgAqGQwlTSrsMHYdjseDuB5i eiVz+YWvvcoobNGLfjSec5jXxpd/c/g7As/tnEwiZZcKt2YK3tBZv9cD/uhLb6fXtoTj YwVFjJVIjgoKgn0uAjBvjEmoA7zYRdvt6phHRArSvOzWv0CTtMldW/fafRGhUIWVngSP qLj2aI49UoDcL41ttJX0VoMBebBoa0RIxyk4jS1dqejuKXbtHQbExmpyn2hlcmLUn9x+ BT1A== 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=gw6Su+eoseCc5wJVYiTOXmmoRBs3T0s/DuSI3EiMJtA=; b=eZRvG2eRVY8d71L4OyCy7PJ/mvUIcO0uIZCj4isb8HeCSaXxnGXgbznExj/3CwMbCQ wIBxavV5+u1FADTVFqVcttPS59a9jzK/EAHMKJ5B2X7qmgUq8kkh0qACI5g0Mjnbb4s1 K+v8523LRjcHoTiBeEd5mcssIxppWFU5MQeoR9hmtznGWcqcqYulr3Z2omIAbW8NVUtb Ds12MLF5KVe2psxLpYmQ46rfZXMxAMfYAOulE8Mr/KejEs4l9sgMRMpkHJbhvQLNFswx P3b+7SW5ucB49vI3d2ciZQIR8bQ3ZCjslhxh/OmeO1Mwe/1eUMykDurFRpNrfbx5kFno N+fg== X-Gm-Message-State: AJIora+zXJiyeyh1bvfptLbsB4LK+UcuZGRJfe4NbeoPCSi5kIrftVkP VWD3YwR+Jn1hBHH6WgkcQaRAzl5rk2dMUAebk23XkIml+NRY7A== X-Google-Smtp-Source: AGRyM1syk/GCGDleP6qH45R1uP2DnQ3bOBLMXCyOSzo3x9kgvFWqQ50FC4TWsmMv9Yqng3TdHBoAFqFP9mO8tSdzfPU= X-Received: by 2002:a05:6870:c386:b0:102:fcb:86cd with SMTP id g6-20020a056870c38600b001020fcb86cdmr5398321oao.296.1656567673841; Wed, 29 Jun 2022 22:41:13 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::35; envelope-from=hongyi.zhao@gmail.com; helo=mail-oa1-x35.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:138211 Archived-At: On Thu, Jun 30, 2022 at 8:38 AM Hongyi Zhao wrote: > > On Thu, Jun 30, 2022 at 12:07 AM Eli Zaretskii wrote: > > > > > From: Hongyi Zhao > > > Date: Wed, 29 Jun 2022 22:30:47 +0800 > > > Cc: help-gnu-emacs > > > > > > OK. Let me take a concrete result as an example. If I search > > > `|isgroup|', then VSCode will give the only result immediately as > > > shown in the attached file. Now, how can I achieve this in Emacs? > > > > Maybe you can't, it depends on how deep into the file that match is > > and how fast is your system (if it's very fast, try enlarging the > > value of max-redisplay-ticks). > > I tried with the following value, and Emacs really does the trick, as > shown in the attached file: > > (setq max-redisplay-ticks 100000000) > > However, in this case, the delay between input and display in > minibuffer is very large. Just out of curiosity, I wonder why my following configuration as discussed here [1], also can't solve the real-time display of search results appeared in extremely long lines: ``` (use-package so-long :config (setq-default so-long-action 'longlines-mode) (setq-default longlines-show-hard-newlines t) (global-so-long-mode +1) ) ``` [1] https://lists.gnu.org/archive/html/help-gnu-emacs/2022-03/msg00511.html > > But you are asking questions that are not relevant to what this > > feature does. This feature prevents Emacs from freezing when you > > visit such files. That is all it does. As I tried explaining several > > times already. > > > > Best, > Honsghen