From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56176: 28.1.50; csv-align-mode misaligns when display-line-numbers-mode is on Date: Fri, 24 Jun 2022 11:38:32 +0200 Message-ID: <87zgi2qu3r.fsf@gnus.org> References: <87pmizjftu.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4179"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56176@debbugs.gnu.org, Stefan Monnier To: Joost Kremers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 24 11:39:17 2022 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 1o4fmX-0000uh-AR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 11:39:17 +0200 Original-Received: from localhost ([::1]:53122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4fmW-0005rG-2v for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 05:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4fmO-0005qn-MJ for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2022 05:39:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4fmI-00086D-6v for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2022 05:39:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4fmI-0007NF-5k for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2022 05:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jun 2022 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56176 X-GNU-PR-Package: emacs Original-Received: via spool by 56176-submit@debbugs.gnu.org id=B56176.165606353128325 (code B ref 56176); Fri, 24 Jun 2022 09:39:02 +0000 Original-Received: (at 56176) by debbugs.gnu.org; 24 Jun 2022 09:38:51 +0000 Original-Received: from localhost ([127.0.0.1]:40893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4fm7-0007Mm-BR for submit@debbugs.gnu.org; Fri, 24 Jun 2022 05:38:51 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:48150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4fm3-0007MV-DI for 56176@debbugs.gnu.org; Fri, 24 Jun 2022 05:38:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3AjTCpKBdo6RqPgGk6gdUol5D+4GVVTgWMiA7KH4iD4=; b=qL5UhND3fRUnLK7bNdCEZjqjaf GxgQdzT4vlfChWwRcalV+FlteuFnAjQaCRE/EBxxaTBuMe0FLv/AJo05p1IGJ5pD22t98vNHYzVL/ JORTu8mGYntAiwXBPR0AUja/7JbQnpljvpSbwLKckfcqGdH6DAtlTaSdQQIdXGub2Ra0=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4fls-0008Sk-W8; Fri, 24 Jun 2022 11:38:39 +0200 X-Now-Playing: Coil's _Heartworms_: "Assassins Of Hakim Bey (Ft. Bill Laswell & Hakim Bey)" In-Reply-To: <87pmizjftu.fsf@fastmail.fm> (Joost Kremers's message of "Thu, 23 Jun 2022 21:26:59 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:235164 Archived-At: Joost Kremers writes: > I work with csv files with long lines, which do not fit the window. If I > activate csv-align-mode and display-line-numbers-mode, then move to the end of a > line (so that the first few columns are not visible anymore), the columns that > are visible are no longer properly aligned. If I disable > display-line-numbers-mode, they are propely aligned again. > > I could attach some screen shots showing the problem, but I'm not sure > attachments are allowed here. Let me know if I should. Attachments are allowed, but I can reproduce the problem without them. The problem seems to be in the computations in csv--jit-align, which don't take the line numbers mode area into account. But after poking at it for a couple of minutes, it's not immediately clear to me what the algorithm is actually doing, so I've added Stefan to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no