[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: |
Wed, 18 Oct 2017 18:39:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt) |
On Wed 18 Oct 2017, Eli Zaretskii wrote:
>> From: Andy Moreton <andrewjmoreton@gmail.com>
>> Date: Tue, 17 Oct 2017 21:40:16 +0100
>>
>> 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.
>
> Right. And if your Emacs is built with --enable-checking (which is
> something I advise for the first couple of pretest of a new release),
> you might be able to trigger an assertion violation by repeating the
> above recipe several times.
Good point - mine was built without it.
> Should be fixed now. Thanks for reporting this.
Confirmed fixed.