From: Drew Adams <drew.adams@oracle.com>
To: pquessev@gmail.com, help-gnu-emacs@gnu.org
Subject: RE: Dired listing is not left aligned
Date: Tue, 24 Mar 2020 11:36:46 -0700 (PDT) [thread overview]
Message-ID: <6c954bb2-4df2-4eed-b340-bf3e48856fad@default> (raw)
In-Reply-To: <82y2rpy7u3.fsf@gmail.com>
> I use emacs 26.3 on Windows 64 bits and I encounter a problem with
> dired. Some entries are not correctly left aligned: they are shifted
> by spaces towards right. In fact each time a directory is inserted in
> the dired listing, existing lines below the new entry are shifted by 2
> spaces.
>
> I tried emacs -Q and the problem is still there. I also tried emacs
> 26.3 on Linux (actually on WSL) and there is no problem.
I confirm this. What's worse, it is true back through
Emacs 24.5. Emacs 24 seems to be where this regression
was introduced - in Emacs 23.4 there is no such problem.
The recipe I used was to insert two subdirs of a dir D,
and then to insert a subdir of one of those subdirs.
When I did the latter action, the second subdir of D
that I inserted was shifted right.
Debugging with `emacs -Q' just a bit, the problem seems
to be in `dired-insert-directory', when it does this:
(indent-rigidly opoint (point) 2)
The problem is that (point) is past the end of the
subdir that is being inserted. It's past the end of
the next subdir, so that one gets indented also.
next prev parent reply other threads:[~2020-03-24 18:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-24 17:35 Dired listing is not left aligned Pascal Quesseveur
2020-03-24 18:36 ` Drew Adams [this message]
2020-03-25 14:14 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6c954bb2-4df2-4eed-b340-bf3e48856fad@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=pquessev@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).