From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#40529: 26.3; global-display-line-numbers-mode and flymake-show-diagnostics-buffer error Date: Fri, 10 Apr 2020 17:09:36 +0100 Message-ID: References: <83v9m7n98j.fsf@gnu.org> <83r1wvmt7k.fsf@gnu.org> <83ftdbmjan.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005baf3705a2f1f637" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56166"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40529@debbugs.gnu.org, nadiasggeb001@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 10 18:10:24 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMwEZ-000EWI-Tm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Apr 2020 18:10:24 +0200 Original-Received: from localhost ([::1]:36450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMwEZ-0008ES-0o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Apr 2020 12:10:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34468) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMwEG-0008C9-As for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 12:10:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMwEF-0006cr-9O for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 12:10:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMwEF-0006cm-6n for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 12:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMwEF-0002Ri-1B for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 12:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Apr 2020 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40529 X-GNU-PR-Package: emacs Original-Received: via spool by 40529-submit@debbugs.gnu.org id=B40529.15865349949367 (code B ref 40529); Fri, 10 Apr 2020 16:10:02 +0000 Original-Received: (at 40529) by debbugs.gnu.org; 10 Apr 2020 16:09:54 +0000 Original-Received: from localhost ([127.0.0.1]:55901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMwE6-0002R1-7d for submit@debbugs.gnu.org; Fri, 10 Apr 2020 12:09:54 -0400 Original-Received: from mail-il1-f174.google.com ([209.85.166.174]:41917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMwE5-0002Qp-2R for 40529@debbugs.gnu.org; Fri, 10 Apr 2020 12:09:53 -0400 Original-Received: by mail-il1-f174.google.com with SMTP id t6so2225639ilj.8 for <40529@debbugs.gnu.org>; Fri, 10 Apr 2020 09:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eD8Fk3lbvq5fjTsyyZXfm0zK+VHnsngYFozt3IkrH8U=; b=TRolO6mrnaK5PO+hGOi4IBqcnykp9MLJoNuxOYi5LdgAsJZO/RX95wwlRtvPyczhR4 K/tERfO8w72HRcHnMQFzKzS3VdSM400Q6EJzQKgR36BnKKHHAaeYJqbdhfyzGHk025vx 6pk+vVFGyU0XBVO5/sbDNH998AfYkgFFnK09BTIYljDKi+3ASRbZCSLTm2NQjS7QOQ9/ IAOkDFG1fLi037pnRng+6YM66nZXa+OTIsW1srCnEO1GYNHSm400oHERoEAK3vCJsodb urZ+KDRCVaMhqPsmHYfsMChKy2s1KBOFoWuIRgeK0Z1/qbhlGdZp+JzfaeAkrUK+oI43 rqMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eD8Fk3lbvq5fjTsyyZXfm0zK+VHnsngYFozt3IkrH8U=; b=T/MH0nE4XZofboUaZf9X/chddsrQyBFV9bIi5zFbpnTU2zU76ciCGKXBmcXnXe7L0r q6CD9U6eA0q2sEw3VQqFVPICiS6AnDV31Duq7ud/ZEUADyi+RKuwpHy4Gwmz5OXg4aVm o0UnFihA60r6fsnp7Xk6awhNPxXbBey70qHmKfxY6mojs6+Ypmtlc0bfv1sH0bRnRh0+ u6+VBiT+J2iwn75rmipbB6girZKGlB0FqU6BN5XbFouZIHytTaAC1n8cI04tDjTGvdTp f/1Px9zkNDP2aHQ5j9aF05xVRhhYapNJHYLt28FZQDQ96Jb6i/Y00xsSw54AeGgpsTti i14w== X-Gm-Message-State: AGi0PuaBn4Dc8E6Pyk0EoLJ9qDM9ayoxRaJYuUBuKgbrJBxU71GKExhO pLgm2h2ytoah3OtAkoDYN+/jxfDK7MVe2ItKSAE= X-Google-Smtp-Source: APiQypKEsxufpF5/b6Yef6Tq6IAIljwmrs751stINI4fqPKKHlqwiEp574eJ3zE/RbdVBmLhNg0DIuUDW4VkQprNdkA= X-Received: by 2002:a92:c00c:: with SMTP id q12mr5711814ild.125.1586534987573; Fri, 10 Apr 2020 09:09:47 -0700 (PDT) In-Reply-To: <83ftdbmjan.fsf@gnu.org> 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178193 Archived-At: --0000000000005baf3705a2f1f637 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 10, 2020 at 4:50 PM Eli Zaretskii wrote: > > From: Jo=C3=A3o T=C3=A1vora > > Date: Fri, 10 Apr 2020 15:38:58 +0100 > > Cc: nadiasggeb001@gmail.com, 40529@debbugs.gnu.org > > > > Exactly. I think this answers your question in the first paragraph. > > > > Yes, and it raises another one for which I don't have an answer to. > > Why does it do that? What do line numbers have to do with > > tabulated lists? > > When line numbers are turned on or off in a buffer under > tabulated-list-mode, the buffer needs to be redisplayed because the > column counts change, and that affects alignment of the columns. > That's why tabulated-list-mode defines a function to be run from > display-line-numbers-mode-hook. > Thanks. That makes some sense, though I didn't know line numbers affected column counts in the actual buffer contents (I though they used the margin or the fringe, but I confess my ignorance here). Anyway, this leaves me wondering if there isn't a hook ordering bug here. Maybe it's just a question of delaying entry in tabulated-list-mode until important stuff is set up. I don't know, I haven't looked at actual code yet. Jo=C3=A3o --0000000000005baf3705a2f1f637 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Apr 10, 2020 at 4:50 PM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com><= br> > Date: Fri, 10 Apr 2020 15:38:58 +0100
> Cc: nadia= sggeb001@gmail.com, 40529@debbugs.gnu.org
>
>=C2=A0 Exactly.=C2=A0 I think this answers your question in the first p= aragraph.
>
> Yes, and it raises another one for which I don't have an answer to= .=C2=A0
> Why does it do that? What do line numbers have to do with
> tabulated lists?

When line numbers are turned on or off in a buffer under
tabulated-list-mode, the buffer needs to be redisplayed because the
column counts change, and that affects alignment of the columns.
That's why tabulated-list-mode defines a function to be run from
display-line-numbers-mode-hook.

Thanks.= =C2=A0 That makes some sense, though I didn't know line numbers
affected column counts in the actual buffer contents (I though they used=
the margin or the fringe, but I confess my ignorance here).=C2= =A0 Anyway, this
leaves me wondering if there isn't a ho= ok ordering bug here. Maybe it's
just a question of delaying = entry in tabulated-list-mode until important stuff
is set up.=C2= =A0 I don't know, I haven't looked at actual code yet.

Jo=C3=A3o
--0000000000005baf3705a2f1f637--