all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Van Ly <van.ly@sdf.org>
Cc: 73455@debbugs.gnu.org
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	[thread overview]
Message-ID: <865xqjdim3.fsf@gnu.org> (raw)
In-Reply-To: <dcsr0985axx.fsf@sdf.org> (message from Van Ly on Wed, 25 Sep 2024 09:39:38 +0000)

> From: Van Ly <van.ly@sdf.org>
> Cc: 73455@debbugs.gnu.org
> Date: Wed, 25 Sep 2024 09:39:38 +0000
> 
> 
> Eli Zaretskii <eliz@gnu.org> 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.





  reply	other threads:[~2024-09-25 12:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-24 15:27 bug#73455: 30.0.91: find buffer pretty print columns don't line up on 1080p Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-24 18:02 ` Eli Zaretskii
2024-09-25  9:39   ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-25 12:26     ` Eli Zaretskii [this message]
2024-09-25 15:36       ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-25 16:16         ` Eli Zaretskii
2024-09-25 17:24           ` Stefan Kangas
2024-09-25 17:46             ` Eli Zaretskii
2024-09-26 13:20               ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-26 14:11                 ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=865xqjdim3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=73455@debbugs.gnu.org \
    --cc=van.ly@sdf.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.