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#59047: 29.0.50; [PATCH] dired-hide-subdir breaks dired-hide-details-mode Date: Thu, 10 Nov 2022 12:09:25 +0200 Message-ID: <83bkpfrui2.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59047-done@debbugs.gnu.org To: Gabriel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 10 11:11:40 2022 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 1ot4X5-0009yE-JX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Nov 2022 11:11:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot4Vk-0006Sj-7E; Thu, 10 Nov 2022 05:10:16 -0500 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 1ot4VW-0006OX-Kc for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 05:10:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ot4VW-000079-3O for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 05:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ot4VV-0007NT-Vk for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 05:10:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2022 10:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 59047@debbugs.gnu.org, eliz@gnu.org, gabriel376@hotmail.com Original-Received: via spool by 59047-done@debbugs.gnu.org id=D59047.166807497528320 (code D ref 59047); Thu, 10 Nov 2022 10:10:01 +0000 Original-Received: (at 59047-done) by debbugs.gnu.org; 10 Nov 2022 10:09:35 +0000 Original-Received: from localhost ([127.0.0.1]:41956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4V5-0007Mh-8r for submit@debbugs.gnu.org; Thu, 10 Nov 2022 05:09:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4V2-0007MU-Rg for 59047-done@debbugs.gnu.org; Thu, 10 Nov 2022 05:09:33 -0500 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 1ot4Ux-0007is-LR; Thu, 10 Nov 2022 05:09:27 -0500 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=R34HUzeGIdPt15z1QBHHOZzP4o3GMB/hpC2mNAghZ/Y=; b=gfSLPrRoemal q/kIkp8z2ypBY7Qsk93WoNZSDq3ZW8PJ7QXVfI1+FbsF2VI3YYoufIJynTLNmcrsvLm0x84QNhy58 LgQkkso1YT9Km6wip4DwnvbcJUuC6E2biZDhogEpuLQDPQFJ3J+nKLOhDpX8QIpTRvColS4AU4WAB 1FgYwrrLVO2+CLX3JnVKR9kuleLkll79Ih4eGMb1OjqW/w6lHEl3FHRnu0o6ysS+91AZKZiHBOU9r W/3ScmeEmgqsu2UViWRTnn8yAj4LsiCB0YHuVXkfRfFnZanTbvhxwxPdLC1PLpSSPMWQo16jULrTM M3dBkULn/hfO12uuPDra5Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot4Uw-0005jd-4d; Thu, 10 Nov 2022 05:09:26 -0500 In-Reply-To: (message from Gabriel on Sat, 05 Nov 2022 08:32:16 -0300) 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:247501 Archived-At: > From: Gabriel > Date: Sat, 05 Nov 2022 08:32:16 -0300 > > Description: > In Dired, the use of `dired-hide-subdir' breaks the subsequent > invocations of `dired-hide-details-mode'. > > Steps to reproduce: > Emacs 29.0.50 (master 8721e87a6ec0874057f83f54498a0e3a64475a53) > 1) emacs -Q > 2) Open any Dired buffer, e.g.: C-x C-f ~/ > 3) Press key ( a couple of times to toggle `dired-hide-details-mode' > 4) Press key $ twice to hide and unhide the current directory list > 5) Press key ( a couple of times to toggle `dired-hide-details-mode' > > On step 5), the `dired-hide-details-mode' ceases to work. > > Patch: > The patch below adds a call to `dired-insert-set-properties` to restore > the text properties lost by `dired-hide-subdir'. More specifically, the > `dired--hide' removes the 'invisible text property that is used by Dired > to toggle the visibility of some information, such as > details-information, details-detail and details-link. Thanks, installed.