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: Fri, 20 Oct 2017 12:42:18 +0300 Message-ID: <83po9icg05.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> <83bml6fqbv.fsf@gnu.org> <1508213954.647567.1141167720.1CC00459@webmail.messagingengine.com> <06925BCF-6C99-423B-AB13-E7331E22B867@gnu.org> <1508224426.2790345.1141279648.61B955E6@webmail.messagingengine.com> <460F2754-49F1-4470-8121-5CBF39C0845C@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508492607 32638 195.159.176.226 (20 Oct 2017 09:43:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2017 09:43:27 +0000 (UTC) Cc: agrambot@gmail.com, 28844-done@debbugs.gnu.org To: hello@paulwrankin.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 20 11:43:21 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 1e5Tpc-000646-Ao for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Oct 2017 11:43:08 +0200 Original-Received: from localhost ([::1]:52847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Tpj-0007j9-FF for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Oct 2017 05:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Tpc-0007is-UU for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 05:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5TpY-0007fA-2k for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 05:43:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5TpY-0007f1-0C for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 05:43:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e5TpX-0004a3-Pc for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 05:43:03 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Oct 2017 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 28844 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 28844@debbugs.gnu.org, eliz@gnu.org, hello@paulwrankin.com Original-Received: via spool by 28844-done@debbugs.gnu.org id=D28844.150849256217573 (code D ref 28844); Fri, 20 Oct 2017 09:43:01 +0000 Original-Received: (at 28844-done) by debbugs.gnu.org; 20 Oct 2017 09:42:42 +0000 Original-Received: from localhost ([127.0.0.1]:51130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5TpC-0004ZM-II for submit@debbugs.gnu.org; Fri, 20 Oct 2017 05:42:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5TpB-0004Z7-1X for 28844-done@debbugs.gnu.org; Fri, 20 Oct 2017 05:42:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5Tp4-0007Lp-QL for 28844-done@debbugs.gnu.org; Fri, 20 Oct 2017 05:42:35 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Tox-0007KC-5V; Fri, 20 Oct 2017 05:42:27 -0400 Original-Received: from [176.228.60.248] (port=2375 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e5Tow-00026g-N5; Fri, 20 Oct 2017 05:42:26 -0400 In-reply-to: <460F2754-49F1-4470-8121-5CBF39C0845C@gnu.org> (message from Eli Zaretskii on Tue, 17 Oct 2017 11:33:57 +0300) 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:138756 Archived-At: > Date: Tue, 17 Oct 2017 11:33:57 +0300 > From: Eli Zaretskii > Cc: 28844@debbugs.gnu.org, agrambot@gmail.com > > So having looked at your package, I think post-command-hook will solve your > problem. All you need to do in the hook is check if line-number-display-width > returns a value different from the last time, and if so, call your function > olivetti-set-environment; otherwise do nothing. Another possibility is to use pre-redisplay-function. An example is in tabulated-list.el. Anyway, since there were no further comments, I'm marking this bug done.