Subject: bug#54091: Subject: 27.2; Seems Weird behavior of display-line-numbers

From: Eli Zaretskii <[email-masked]>
Date: Mon, 21 Feb 2022 20:40:53 +0200

> From: "1041559871" <[email-masked]>
> Date: Tue, 22 Feb 2022 00:54:54 +0800
> 
> emacs quicklisp.lisp -Q
> M-x hs-minor-mode
> M-x hs-hide-all
> M-x display-line-numbers-mode
> M-g M-g 1011
> C-e
> Type some spaces here
> 
> The position of the current line number move right
> You can access quicklisp.lisp from here:
> https://www.quicklisp.org/beta/
> or directly download this: https://beta.quicklisp.org/quicklisp.lisp
> 
> In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0)
>  of 2022-02-14 built on localhost
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
> System Description: Gentoo/Linux

I seem to be unable to reproduce this, neither in Emacs 27.2 nor in
the current development sources.

What is the size (in lines) of your Emacs window that shows
quicklisp.lisp in this scenario?  That is, if you go to the beginning
of the buffer, what is the number of the last line visible on display?