From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73455: 30.0.91: find buffer pretty print columns don't line up on 1080p Date: Wed, 25 Sep 2024 15:26:44 +0300 Message-ID: <865xqjdim3.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8429"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73455@debbugs.gnu.org To: Van Ly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 25 14:28:52 2024 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 1stR8W-000245-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Sep 2024 14:28:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stR8L-0001bF-5e; Wed, 25 Sep 2024 08:28:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stR8H-0001aU-Gb for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 08:28:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stR8G-0004mQ-D3 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 08:28:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=/QXUvo9zeyn1G3CsA6O55hUw1P6fQTRsAFILx8GK00k=; b=UlSy6xokQaCpZBcjbM5f+7w9SIn78q9TlB2Mfzk5iOV8hCf+OKJc/Tt/UbYVbWQQUAttxsRdq7JKxDPOVlpoER5uaJS6CbU4ErZW2kqnT3ckUQuj/EZAUZ0Ignhdpa/eZJXNTb3QUBQtxdXWDmmFRYlrUXv0dp06NUIpxdlnuFF3SLfP/kh9wWMHtwGjWdMg0XcfHXBlXXF3SrbU5Ab6aLM7qICYOBYMZhluEaxaGXwN2PSBO+XvE0n4mt6qjxfe5b2zKs00C6tJO+3QFIaiFlseh4q7HUwlUw3p1f+Hr0a/xXLgMgdV0Xq3FHVRtoY6jWpUNnbSQ11HXs9oFgaIcg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stR8f-0005iX-Tx for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 08:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2024 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73455 X-GNU-PR-Package: emacs Original-Received: via spool by 73455-submit@debbugs.gnu.org id=B73455.172726728521838 (code B ref 73455); Wed, 25 Sep 2024 12:29:01 +0000 Original-Received: (at 73455) by debbugs.gnu.org; 25 Sep 2024 12:28:05 +0000 Original-Received: from localhost ([127.0.0.1]:58948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stR7k-0005g7-Qv for submit@debbugs.gnu.org; Wed, 25 Sep 2024 08:28:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stR7i-0005fM-16 for 73455@debbugs.gnu.org; Wed, 25 Sep 2024 08:28:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stR7B-0004Se-R8; Wed, 25 Sep 2024 08:27:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/QXUvo9zeyn1G3CsA6O55hUw1P6fQTRsAFILx8GK00k=; b=Ydj+H8CSwYsY k8D1GNxUP/UG2OtsekLHaFg/eK/1kvPL0jRfJvQeP6ss+NDFdZOgGhQ3ZCHhDYFqMxNqWyA/gIKBd TycWniKMvL+yZ7YECTovTSZbWIHOuu7KLdUSfA7qmE6qRTrxHSQDQVCYQ49cGT25+v27AshvNXNCu t20YkUE5pPp74OWgDmhiv+d7Kt4Co0Elez+t0kfs78wvWifccWpsDBWIyxZiSGyvUv60PShptyTnM rqF7KltkXY6eMi7kTaoOfikZsmWPV3Fe1N5ac6dFWuJ3In+dived9QwPcZ9Y9XnewOv+LX7zdmVoY 3vSlcpivaIQy2bGj5oSAug==; In-Reply-To: (message from Van Ly on Wed, 25 Sep 2024 09:39:38 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292392 Archived-At: > From: Van Ly > Cc: 73455@debbugs.gnu.org > Date: Wed, 25 Sep 2024 09:39:38 +0000 > > > Eli Zaretskii writes: > > >> > >> Expect to see columns line up in pretty print. > > > > If you run the 'find' command shown at the beginning of the buffer > > from the shell prompt, after you chdir to the NetBSD-10 directory, do > > the columns align in the output, or do you see the same misalignment > > as in the screenshot you posted? > > > > That command at the shell prompt inside Emacs and outside on the Xterm > > $ find . \( -name \*file.c \) -ls > > generates misaligned columns as seen in the screenshot. Here is a > clip of three lines taken from the Xterm and this is also misaligned inside > Emacs at the shell prompt output > > 799508 16 -rw-r--r-- 1 van wheel 6006 May 22 2021 ./sys/lib/libsa/loadfile.c > 12794193 16 -rw-r--r-- 1 van wheel 4161 Jul 15 2020 ./sys/stand/efiboot/efifile.c > 807438 8 -rw-r--r-- 1 van wheel 3571 Jan 14 2017 ./tests/kernel/kqueue/read/t_file.c Then I think this is the reason. Emacs does not realign the columns in the output of the Find command, it uses the output as-is. Since you are on NetBSD, I'm guessing that your Find command is not GNU Find, and it probably doesn't guarantee that the columns are aligned. I think I see in the GNU Find code which tries to handle this case, so maybe you could install GNU Find and try with that.