Subject: Re: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling)

From: Eli Zaretskii <[email-masked]>
Date: Thu, 18 Aug 2022 17:10:51 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Thu, 18 Aug 2022 16:01:13 +0200
> 
> This reproduces for me:
> 
> (progn
>   (run-at-time 1 1 (lambda ()))
>   (pop-to-buffer "foo.txt")
>   (text-mode)
>   (insert (propertize (make-string 20000 ?x) 'display "foo")))
>  
> But not in -Q; just with my normal .emacs.  I'll start bisecting.

I don't see "Narrow" in the modeline after the above.

But a momentary narrowing does happen, and it comes from here:

      safe_run_hooks_maybe_narrowed (Qpre_command_hook,
				     XWINDOW (selected_window));
  [...]

      safe_run_hooks_maybe_narrowed (Qpost_command_hook,
				     XWINDOW (selected_window));

The function on pre-command-hook in my case is tooltip-hide.