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: Tue, 17 Oct 2017 05:41:56 +0300 Message-ID: <83bml6fqbv.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> <83zi8rf8rx.fsf@gnu.org> <1508200557.2705080.1141019864.6A2B8BD5@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 1508208203 1260 195.159.176.226 (17 Oct 2017 02:43:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 02:43:23 +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 Tue Oct 17 04:43:19 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 1e4HqR-0006PB-Lg for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 04:43:03 +0200 Original-Received: from localhost ([::1]:36169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4HqZ-0005LA-0J for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 22:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4HqT-0005Ks-4X for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 22:43:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4HqQ-0008Ca-0r for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 22:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4HqP-0008CU-TX for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 22:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4HqP-0000vs-N4 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 22:43: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: Tue, 17 Oct 2017 02:43: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.15082081453539 (code B ref 28844); Tue, 17 Oct 2017 02:43:01 +0000 Original-Received: (at 28844) by debbugs.gnu.org; 17 Oct 2017 02:42:25 +0000 Original-Received: from localhost ([127.0.0.1]:44549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4Hpo-0000v0-TG for submit@debbugs.gnu.org; Mon, 16 Oct 2017 22:42:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4Hpn-0000ul-71 for 28844@debbugs.gnu.org; Mon, 16 Oct 2017 22:42:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4Hpe-0007UF-Sj for 28844@debbugs.gnu.org; Mon, 16 Oct 2017 22:42:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4Hpe-0007UA-Op; Mon, 16 Oct 2017 22:42:14 -0400 Original-Received: from [176.228.60.248] (port=2522 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e4Hpe-0003af-03; Mon, 16 Oct 2017 22:42:14 -0400 In-reply-to: <1508200557.2705080.1141019864.6A2B8BD5@webmail.messagingengine.com> (message from Paul Rankin on Tue, 17 Oct 2017 10:35:57 +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:138571 Archived-At: > From: Paul Rankin > Cc: agrambot@gmail.com, 28844@debbugs.gnu.org > Date: Tue, 17 Oct 2017 10:35:57 +1000 > > Your mode updates the display on its own without notifying Emacs. The basic conceptual problem is that “every time you need the value” is predicated on when display-line-numbers-mode changes the value. There’s no way for another lisp program to know when that is. But if you always call line-number-display-width, you don't need to know that, because that function will return the current value (which will change to reflect the changes in the space taken by line numbers). So I don't think I understand the problem, and without that I cannot think of a solution. Can you clarify the problem, please?