help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs freezes again when I try to open a file including only one ver


From: Hongyi Zhao
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

On Thu, Jun 30, 2022 at 8:38 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Thu, Jun 30, 2022 at 12:07 AM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > > Date: Wed, 29 Jun 2022 22:30:47 +0800
> > > Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
> > >
> > > 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]