unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 24164@debbugs.gnu.org
Subject: bug#24164: 25.1.50; `global-linum-mode' with text scaling
Date: Sat, 27 Jul 2019 17:37:15 +0200	[thread overview]
Message-ID: <87ftmrbiac.fsf@mouse.gnus.org> (raw)
In-Reply-To: <b691f04d-d48d-4444-89bc-c94cf7c7e592@default> (Drew Adams's message of "Fri, 5 Aug 2016 11:18:32 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> 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 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ão Távora <joaotavora@gmail.com>
Date:   Tue Nov 17 22:23:59 2015 +0000

    linum-mode plays more nicely with other margin-setting extensions
    
    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.
    
    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.
    
    A similar fix was commited to nlinum.el in ELPA.git's
    e7f5f549fbfb740b911fb7f33b42381ecece56d8
    
    * 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2019-07-27 15:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 18:18 bug#24164: 25.1.50; `global-linum-mode' with text scaling Drew Adams
2019-07-27 15:37 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftmrbiac.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=24164@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).