From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24164: 25.1.50; `global-linum-mode' with text scaling Date: Sat, 27 Jul 2019 17:37:15 +0200 Message-ID: <87ftmrbiac.fsf@mouse.gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="248277"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24164@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 17:38:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrOls-0012Sb-0Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 17:38:08 +0200 Original-Received: from localhost ([::1]:46216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrOlq-000706-6w for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 11:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58743) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrOln-000700-Cu for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrOlm-00063u-60 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrOlm-000637-1f for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrOll-0006lu-SZ for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 15:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24164 X-GNU-PR-Package: emacs Original-Received: via spool by 24164-submit@debbugs.gnu.org id=B24164.156424184225959 (code B ref 24164); Sat, 27 Jul 2019 15:38:01 +0000 Original-Received: (at 24164) by debbugs.gnu.org; 27 Jul 2019 15:37:22 +0000 Original-Received: from localhost ([127.0.0.1]:45209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrOl8-0006kb-8Y for submit@debbugs.gnu.org; Sat, 27 Jul 2019 11:37:22 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:40762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrOl6-0006kT-Rw for 24164@debbugs.gnu.org; Sat, 27 Jul 2019 11:37:21 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrOl2-00028h-Dm; Sat, 27 Jul 2019 17:37:18 +0200 In-Reply-To: (Drew Adams's message of "Fri, 5 Aug 2016 11:18:32 -0700 (PDT)") 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: 209.51.188.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:163886 Archived-At: Drew Adams writes: > emacs -Q > > (global-linum-mode t) > > Increase text size several times: `C-x =3D =3D =3D =3D =3D =3D'. > > Decrease it several times: `C-x - - - - - -'. > > Each time you increase, the space for the line numbers, to the left of > the fringe, is enlarged. When you decrease, that space is not reduced. > The margin should reflect the apparent size of the line numbers, not > some previous, larger size Confirmed. However, this is the result of the following change: commit b92307f6708f9abff0b2ac242fe4b668232a9153 Author: Jo=C3=A3o T=C3=A1vora Date: Tue Nov 17 22:23:59 2015 +0000 linum-mode plays more nicely with other margin-setting extensions =20=20=20=20 linum.el will only modify the left margin if it needs to, and will only reset the it back to 0 if it guesses that no-one has touched that margin in the meantime. =20=20=20=20 As such, this is a more of a workaround than an actual fix, but fixes the problems described in bug#20674 regarding the interaction with modes such as darkroom-mode and olivetti-mode. =20=20=20=20 A similar fix was commited to nlinum.el in ELPA.git's e7f5f549fbfb740b911fb7f33b42381ecece56d8 =20=20=20=20 * linum.el (linum-delete-overlays): Restore margins more criteriously. (linum-update-window): Set margins more criteriously. >From the discussion in that bug report, it seems the consensus is that there's no real way to fix this -- except not using linum.el. By now Emacs has native line number support, so the issue is moot-ish, and I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no