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

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

bug#28879: 26.0.90; Narrowed line numbers shown with display-line-number


From: Andy Moreton
Subject: bug#28879: 26.0.90; Narrowed line numbers shown with display-line-numbers-widen
Date: Tue, 17 Oct 2017 21:40:16 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

From emacs -Q:
1) Open a lisp file
   (setq display-line-numbers-widen t)
   M-x display-line-numbers-mode
2) Move point inside a function
   M-x narrow-to-defun
3) M-x widen

After (2) the window shows line numbers relative to the start of
the buffer, as expected.

After (3), the window shows line numbers starting from 1 for the
narrowed region. After the next mouse or keyboard input, the line
numbers are displayed normally.

Thus it seems that when display-line-numbers-widen is non-nil the line
numbers are not recomputed after widen until then next input.

In GNU Emacs 26.0.90 (build 9, x86_64-w64-mingw32)
 of 2017-10-17 built on QUIETUS
Repository revision: 2e1b3522b8562f94a98fed07aeddb6b5ba0dbc6c






reply via email to

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