From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#28879: 26.0.90; Narrowed line numbers shown with display-line-numbers-widen Date: Wed, 18 Oct 2017 18:39:12 +0100 Message-ID: References: <83k1zse88m.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1508348861 17921 195.159.176.226 (18 Oct 2017 17:47:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2017 17:47:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt) To: 28879@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 18 19:47:34 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sR8-0001sb-NH for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 19:47:22 +0200 Original-Received: from localhost ([::1]:45832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sRE-0002Dx-Lk for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 13:47:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sL3-0005rn-QX for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:41:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4sKz-0001wJ-Tg for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4sKz-0001wE-QB for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4sKz-0001BF-JP for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:41:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Oct 2017 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15083484034451 (code B ref -1); Wed, 18 Oct 2017 17:41:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Oct 2017 17:40:03 +0000 Original-Received: from localhost ([127.0.0.1]:48548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sK1-00019M-SY for submit@debbugs.gnu.org; Wed, 18 Oct 2017 13:40:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sK0-00019A-Vq for submit@debbugs.gnu.org; Wed, 18 Oct 2017 13:40:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4sJu-000140-SL for submit@debbugs.gnu.org; Wed, 18 Oct 2017 13:39:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4sJu-00013q-Ox for submit@debbugs.gnu.org; Wed, 18 Oct 2017 13:39:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sJt-0005FR-C3 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:39:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4sJp-00011h-E7 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:39:53 -0400 Original-Received: from [195.159.176.226] (port=48746 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4sJp-000113-6e for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:39:49 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e4sJM-0002Hz-Ep for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:39:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:7GxHcSwXdbxpntiJwp3hxwoFkHk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138680 Archived-At: On Wed 18 Oct 2017, Eli Zaretskii wrote: >> From: Andy Moreton >> 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.