From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#32337: 26.1; display-line-numbers-mode makes cursor ill-aligned when number face is changed Date: Tue, 25 Sep 2018 16:40:43 -0300 Message-ID: References: <87effjtdpw.fsf@gmail.com> <838t5qo7cw.fsf@gnu.org> <83y3dqmhkl.fsf@gnu.org> <83va8umgok.fsf@gnu.org> <83tvoemfjo.fsf@gnu.org> <83bmakugtw.fsf@gnu.org> <83k1p6tzjj.fsf@gnu.org> <83in4qtxt0.fsf@gnu.org> <83va7p1glx.fsf@gnu.org> <83d0tpvj3j.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1537904431 3399 195.159.176.226 (25 Sep 2018 19:40:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2018 19:40:31 +0000 (UTC) Cc: rms@gnu.org, 32337@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 25 21:40:27 2018 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 1g4tC4-0000kc-H4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 21:40:24 +0200 Original-Received: from localhost ([::1]:54994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4tEB-0000m6-AH for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 15:42:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4tDh-0000bb-UV for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 15:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4tDd-00019C-Qw for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 15:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49790) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4tDd-000196-Ma for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 15:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4tDd-0000yY-KM for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 15:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Sep 2018 19:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32337 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32337-submit@debbugs.gnu.org id=B32337.15379044713685 (code B ref 32337); Tue, 25 Sep 2018 19:42:01 +0000 Original-Received: (at 32337) by debbugs.gnu.org; 25 Sep 2018 19:41:11 +0000 Original-Received: from localhost ([127.0.0.1]:54048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4tCo-0000xN-VQ for submit@debbugs.gnu.org; Tue, 25 Sep 2018 15:41:11 -0400 Original-Received: from mail-yw1-f66.google.com ([209.85.161.66]:44516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4tCn-0000x7-B0 for 32337@debbugs.gnu.org; Tue, 25 Sep 2018 15:41:09 -0400 Original-Received: by mail-yw1-f66.google.com with SMTP id s73-v6so1347284ywg.11 for <32337@debbugs.gnu.org>; Tue, 25 Sep 2018 12:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FNhI3gOQ6BLro70YzDKaAkS6U+Y0loMV5YJjQK8GSXA=; b=W8mqedbmY+y1jkkSA5KqdpRp/39pGanZb/L3eFlVvAsEoNjdsA/wpc19tYkrA0lTr5 mvhzJoP2gCjSG+ZT8qFRofs+wNmuTA7OyAbHF+GXHyCqib6yX8M4ywHuNP+ugJkr7fQh 1q/9x9r00ggyIIQ45l/ccD0yfl6qj0/2oXX9g3PzQ9DxiZbSIpWISAlzyYgWyWShetDl T1vhhKcR0tgpIMNV+3bVudE1G/11qIJKvjlqudCWP77YeHC0InwkXkIhStcnHxWtsUG7 CSxwbVEjHMg/P/kQ0OvLwCwK76d6EJlVp46wE4VILgslwGKJHfKnZdV9ykCHMnuTH123 bSug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FNhI3gOQ6BLro70YzDKaAkS6U+Y0loMV5YJjQK8GSXA=; b=gQSQOtyWX8FQaYEcTvBkYbF4b9vNFHvzpvMy1yZU0F4YJuSdO+BT5Yx5u14LXybPf+ BY6zuiykqHpYiEQjgxOFa1hruMIfn/yzYT+o75Zbgf22XhOL5kZ6Qjav2poNhDsZo0sI VcWPcnEsVvNQlCxUQm5z271DLFYN4eievxFcqRzELy8j80Z/ajOMauTQEsOXMWNlLTmS QpF8cOgQ2Fz9iLInPu/qPukDiG7c6ikC8RtVloM549y/yQzvmxncyyGBFnY8sAtyLyUi TGf8I59lie5kH66siR0XavIL0SM+muBPokRKzHT+T2BRT9xpDkhxrQu/5/qV/heNalrl kCCg== X-Gm-Message-State: ABuFfogc4MypBrMcqHft8v2MNOxyOyCgsgWSaGntTYPiVO5vXgTCaDbS y9SroJJ88TtlbP612aQ2TrC/B7/v/XfInHFDXHw= X-Google-Smtp-Source: ACcGV62L481zMXzWpPG75GrIOvX5FTXBCa7ccrXcKm3nSHPIYiqu0rka0/tDjsIQeCFIB4sfkYGqrkTaa5Zsjk7NVKY= X-Received: by 2002:a81:138e:: with SMTP id 136-v6mr1428048ywt.485.1537904463765; Tue, 25 Sep 2018 12:41:03 -0700 (PDT) Original-Received: by 2002:a25:424a:0:0:0:0:0 with HTTP; Tue, 25 Sep 2018 12:40:43 -0700 (PDT) In-Reply-To: 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:150661 Archived-At: > Isn't it possible to use the smaller font just > for the beginning of the line, as it is for the lines above EOB? I mean, you're already computing the width as if the numbers would go down up to the bottom of the window and then filling them with spaces instead of numbers when below EOB, it seems to me that treating below-EOB lines the same way than above-EOB ones (in the sense of limiting the display number face only to the first columns of the buffer) isn't that removed from the current algorithm, although from a cursory look I recognize I'm no quite following the code.