From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28844: 26.0.90; display-line-numbers-mode should call window-configuration-change-hook Date: Mon, 16 Oct 2017 17:48:50 +0300 Message-ID: <83zi8rf8rx.fsf@gnu.org> References: <1508054203.3504379.1139170720.0D0E99E9@webmail.messagingengine.com> <59E32D49.4030007@gmx.at> <1508065717.3534312.1139251176.600E646A@webmail.messagingengine.com> <59E350AE.3060005@gmx.at> <1508074073.3557079.1139314312.4BFE5BC2@webmail.messagingengine.com> <83o9p8h2yv.fsf@gnu.org> <1508124120.3709085.1139805520.1F653A1C@webmail.messagingengine.com> <87efq37knc.fsf@gmail.com> <1508130850.3734431.1139876192.21CE8281@webmail.messagingengine.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1508165585 32532 195.159.176.226 (16 Oct 2017 14:53:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 14:53:05 +0000 (UTC) Cc: 28844@debbugs.gnu.org, agrambot@gmail.com To: Paul Rankin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 16 16:53:01 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 1e46l2-0006Dz-TY for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 16:52:45 +0200 Original-Received: from localhost ([::1]:33351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e46lA-0004Gw-F3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 10:52:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e46iU-0002Eh-Iu for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 10:50:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e46iP-0003s4-Ui for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 10:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e46iP-0003rx-QX for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 10:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e46iP-00014K-Id for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 10:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2017 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28844 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28844-submit@debbugs.gnu.org id=B28844.15081653674064 (code B ref 28844); Mon, 16 Oct 2017 14:50:01 +0000 Original-Received: (at 28844) by debbugs.gnu.org; 16 Oct 2017 14:49:27 +0000 Original-Received: from localhost ([127.0.0.1]:43962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e46hq-00013U-Mp for submit@debbugs.gnu.org; Mon, 16 Oct 2017 10:49:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e46ho-00013G-GH for 28844@debbugs.gnu.org; Mon, 16 Oct 2017 10:49:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e46hW-00039t-MP for 28844@debbugs.gnu.org; Mon, 16 Oct 2017 10:49:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e46hW-00039P-3U; Mon, 16 Oct 2017 10:49:06 -0400 Original-Received: from [176.228.60.248] (port=1916 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e46hV-0001cB-Jd; Mon, 16 Oct 2017 10:49:05 -0400 In-reply-to: <1508130850.3734431.1139876192.21CE8281@webmail.messagingengine.com> (message from Paul Rankin on Mon, 16 Oct 2017 15:14:10 +1000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:138524 Archived-At: > From: Paul Rankin > Cc: Eli Zaretskii , 28844@debbugs.gnu.org > Date: Mon, 16 Oct 2017 15:14:10 +1000 > > > To see if line numbers are present in a buffer (and to make it > > compatible with older Emacsen), you should use something like: > > > > (bound-and-true-p display-line-numbers) Indeed, if the problem is with determining whether line-number-display-width should be called, then bound-and-true-p is the way. Sorry I didn't realize this was the issue. > Sweet, thanks! I’ve encountered another bug with this mode #28855, so I think until it gets its house in order, the best thing to go with is: > (if (bound-and-true-p display-line-numbers) (display-line-numbers-mode 0)) So does this mean the issue in this bug report (which AFAIU was how to set the window's display margins in a way that is sensitive to display-line-numbers-mode) is resolved for you? Or is there anything else to be done about this? (Bug#28855 is a separate issue, I will respond to that there.) Thanks.