help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dired listing is not left aligned


From: Drew Adams
Subject: RE: Dired listing is not left aligned
Date: Tue, 24 Mar 2020 11:36:46 -0700 (PDT)

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]