Subject: bug#48147: 27.2; dired-hide-details-mode does not work properly with dired-subdirs

From: Michael Heerdegen <[email-masked]>
Date: Sun, 04 Jul 2021 02:06:14 +0200

Maxime Tréca <[email-masked]> writes:

> To reproduce this issue:
>
> - Activate dired-hide-details-mode
> - Insert a subdirectory pressing 'i'
> - Hide the subdirectory using the '$' key
> - Show the subdirectory again using '$'
>
> The resulting subdirectory shows dired lines with all information
> even though dired-omit-mode is activated.

Indeed.  Toggling `dired-hide-details-mode' doesn't even help (the
buffer contents are broken), one has to revert the buffer.

This happens because `dired--unhide' unconditionally removes any
`invisible` text properties, including the `dired-hide-details-detail`
valued ones used by `dired-hide-details-mode' (see the "FIXME" note in
the code).

Michael.