From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jakub =?UTF-8?Q?Je=C4=8Dm=C3=ADnek?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#17219: 24.3.50; wrong alignment when a list is given to dired Date: Sun, 22 Dec 2024 21:08:50 +0000 Message-ID: <87a5cn77dx.fsf@kubajecminek.cz> References: <877g71yrdc.fsf@yahoo.fr> Reply-To: Jakub =?UTF-8?Q?Je=C4=8Dm=C3=ADnek?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nicolas Richard , 17219@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 22:10:19 2024 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 1tPTDO-00081j-BN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 22:10:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPTDA-0005VO-UQ; Sun, 22 Dec 2024 16:10:05 -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 1tPTD9-0005SR-4T for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 16:10:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPTD8-0003oP-RG for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 16:10:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:In-Reply-To:References:Subject; bh=ljUQFot9q/8TnQVvatCBSRSDkdimh04sqoCWUVAKO2I=; b=l1qRLFQ0JIRR9EZ0LDGMtk9wPB+667oRzpn6WqRIbikgJdb4gClXwYYwb/mk8V3XRiqXv6E3Y5YUkXq6m6KG9ZT9ysmStSfiHNHfClqivB8F+XK/6YUtjcak3RZujks+CyfXzhgXshQHKdwJEZuaDf9+lNzxV1BZiqE7YGhHGGCJPybfFmVGKsrm7AZzzxTfp2Y3AGnWulz546eVEvoV9BPftd0wOL8cV36lWD7wfb+7ebBixMSJ0iRAe+ty8+498X3RyCth18fQJS7fqCWZHMn2uvPaYiL+awvyApqZFzWb9/EAgIo5l6fDHBYdC/n0UObAXqqZ50Ssr2/3lVYkcg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPTD8-0001WX-JY for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 16:10:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <877g71yrdc.fsf@yahoo.fr> Resent-From: Jakub =?UTF-8?Q?Je=C4=8Dm=C3=ADnek?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2024 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 17219-submit@debbugs.gnu.org id=B17219.17349017475771 (code B ref 17219); Sun, 22 Dec 2024 21:10:02 +0000 Original-Received: (at 17219) by debbugs.gnu.org; 22 Dec 2024 21:09:07 +0000 Original-Received: from localhost ([127.0.0.1]:52148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPTCE-0001V0-Hq for submit@debbugs.gnu.org; Sun, 22 Dec 2024 16:09:06 -0500 Original-Received: from mail-10624.protonmail.ch ([79.135.106.24]:51741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPTCA-0001US-Kt for 17219@debbugs.gnu.org; Sun, 22 Dec 2024 16:09:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kubajecminek.cz; s=protonmail2; t=1734901735; x=1735160935; bh=ljUQFot9q/8TnQVvatCBSRSDkdimh04sqoCWUVAKO2I=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=JtDQ71wtNmT+a+g6dBr46lf6PTOM0jfBLBXiIK+3oqOw1Q0r9rtG3ljpw6tmYVWMw saJpFIcKgsLbO8veGsKCm9yaFXrj8EkkKX3sp9zU6WGaSXgp+nZRFuInmPzbPxleXA 7iBNyfiekRtQW8iZKrfpQGaSWq99jRDxNI4l9gKOO1y+NSZPP8/VzjNc9HQAWlG1nS XlLHYflp4Dw0CgeVbPA3WuXIFEcMBFRc/8dQaacBpx3uhxW3sdjDZYUeSBp9nvt/tp VMT7sVA1bKa+PDF/VlUde6HXCevvmcsgivd8Ib+thMlBTr2UOoLj1c1uEOKSHZEcMk w1tm5gtQBif7g== Feedback-ID: 98803324:user:proton X-Pm-Message-ID: 53b0f474647f7fbe6c50e417c4b9e731e638699c 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:297629 Archived-At: It seems that adding simple `dired--align-all-files' to the end of `dired-revert' resolves this. >From 41780fde84fe1c55a0a7417a833dc0b8303a3db8 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Jakub=3D20Je=3DC4=3D8Dm=3DC3=3DADnek?=3D Date: Sun, 22 Dec 2024 21:53:53 +0100 Subject: [PATCH] Align files after dired revert (Bug#17219) * lisp/dired.el (dired-revert): Add dired--align-all-files function call. --- lisp/dired.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index 028b862d159..acd31fb6424 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2157,7 +2157,8 @@ dired-revert =09(if (dired-goto-subdir dir) =09 (dired-hide-subdir 1)))) (unless modflag (restore-buffer-modified-p nil)) - (hack-dir-local-variables-non-file-buffer)) + (hack-dir-local-variables-non-file-buffer) + (dired--align-all-files)) ;; outside of the let scope ;;; Might as well not override the user if the user changed this. ;;; (setq buffer-read-only t) --=20 2.45.2