Subject: Re: bug#77039: 31.0.50; Flickering on macOS

From: Gerd Möllmann <[email-masked]>
Date: Sun, 23 Mar 2025 10:25:34 +0100

"Aaron Jensen" <[email-masked]> writes:

> On Sun, Mar 23, 2025 at 12:59 AM, Eli Zaretskii <[email-masked]> wrote:
>
>  From: Aaron Jensen <[email-masked]> 
>  Date: Sat, 22 Mar 2025 17:38:01 -0400 
>  Cc: Eli Zaretskii <[email-masked]>, [email-masked], [email-masked]
>
>  It's global-display-line-numbers-mode. 
>
>  Repro from emacs -Q: 
>
>  (defun foo () 
>  (Interactive) 
>  (global-display-line-numbers-mode) 
>  (term "/usr/bin/yes") 
>  (switch-to-buffer "*scratch*"))
>
>  If you set display-line-numbers-mode to 'visual globally, does the problem go away?
>
> No, nor does disabling blink cursor mode or commenting out the lines you referenced.
>
> I'm using this, please double check I'm not doing something wrong.
>
> (defun foo ()
>   (interactive)
>   (blink-cursor-mode -1)
>   (global-display-line-numbers-mode)
>   (setq-default display-line-numbers-mode 'visual)
                                      ^^^^^

Vdisplay_line_numbers = display-line-numbers. Also, I would set it before
activating the mode because setq-default doesn't change existing
buffer-local bindings.