From unknown Sun Aug 10 16:45:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24164: 25.1.50; `global-linum-mode' with text scaling Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Aug 2016 18:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24164@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147042113231662 (code B ref -1); Fri, 05 Aug 2016 18:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2016 18:18:52 +0000 Received: from localhost ([127.0.0.1]:56853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVjhr-0008Eb-U2 for submit@debbugs.gnu.org; Fri, 05 Aug 2016 14:18:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVjhq-0008EH-1h for submit@debbugs.gnu.org; Fri, 05 Aug 2016 14:18:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVjhk-0003mz-0n for submit@debbugs.gnu.org; Fri, 05 Aug 2016 14:18:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_40,XPRIO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVjhj-0003mB-Tt for submit@debbugs.gnu.org; Fri, 05 Aug 2016 14:18:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVjhh-0002ZJ-Ml for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 14:18:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVjhd-0003lX-Gp for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 14:18:40 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:25989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVjhd-0003lO-6m for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 14:18:37 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u75IIZuX002311 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 5 Aug 2016 18:18:35 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u75IIYAq004792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 5 Aug 2016 18:18:35 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u75IIY2W017871 for ; Fri, 5 Aug 2016 18:18:34 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 5 Aug 2016 11:18:32 -0700 (PDT) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 In GNU Emacs 25.1.50.1 (i686-pc-mingw32) of 2015-12-10 Repository revision: 6148555ee5a3d0139ae517803718b3e0357933c7 Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dye= s --enable-check-lisp-object-type --without-compress-install 'CFLAGS=3D-Og -ggdb3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include'' From unknown Sun Aug 10 16:45:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24164: 25.1.50; `global-linum-mode' with text scaling 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 X-GNU-PR-Keywords: To: Drew Adams Cc: 24164@debbugs.gnu.org Received: via spool by 24164-submit@debbugs.gnu.org id=B24164.156424184225959 (code B ref 24164); Sat, 27 Jul 2019 15:38:01 +0000 Received: (at 24164) by debbugs.gnu.org; 27 Jul 2019 15:37:22 +0000 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 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 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 From: Lars Ingebrigtsen References: Date: Sat, 27 Jul 2019 17:37:15 +0200 In-Reply-To: (Drew Adams's message of "Fri, 5 Aug 2016 11:18:32 -0700 (PDT)") Message-ID: <87ftmrbiac.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: > emacs -Q > > (global-linum-mode t) > > Increase text size several times: `C-x = = = = = ='. > > Decrease it several times: `C-x - - - - - -'. > > Each time you increase, the space for the line numbe [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 27 11:37:29 2019 Received: (at control) by debbugs.gnu.org; 27 Jul 2019 15:37:29 +0000 Received: from localhost ([127.0.0.1]:45212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrOlE-0006ky-Kh for submit@debbugs.gnu.org; Sat, 27 Jul 2019 11:37:29 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrOlC-0006kn-84 for control@debbugs.gnu.org; Sat, 27 Jul 2019 11:37:26 -0400 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 1hrOl9-00028o-Ir for control@debbugs.gnu.org; Sat, 27 Jul 2019 17:37:25 +0200 Date: Sat, 27 Jul 2019 17:37:23 +0200 Message-Id: <87ef2bbia4.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24164 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 24164 wontfix close 24164 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 24164 wontfix close 24164 quit