all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Nicolas Richard <theonewiththeevillook@yahoo.fr>, 17219@debbugs.gnu.org
Subject: bug#17219: 24.3.50; wrong alignment when a list is given to dired
Date: Sun, 22 Dec 2024 21:08:50 +0000	[thread overview]
Message-ID: <87a5cn77dx.fsf@kubajecminek.cz> (raw)
In-Reply-To: <877g71yrdc.fsf@yahoo.fr>

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: =?UTF-8?q?Jakub=20Je=C4=8Dm=C3=ADnek?= <kuba@kubajecminek.cz>
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
 	(if (dired-goto-subdir dir)
 	    (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)
-- 
2.45.2







  parent reply	other threads:[~2024-12-22 21:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07 17:35 bug#17219: 24.3.50; wrong alignment when a list is given to dired Nicolas Richard
2019-08-15  0:03 ` Lars Ingebrigtsen
2019-09-19 16:18   ` Nicolas Richard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-09-20  6:28     ` Eli Zaretskii
2019-09-20 12:48     ` Lars Ingebrigtsen
2024-12-22 21:08 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-23  0:25   ` Charalampos Mitrodimas
2024-12-23 17:52     ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-23 18:20       ` Charalampos Mitrodimas

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5cn77dx.fsf@kubajecminek.cz \
    --to=bug-gnu-emacs@gnu.org \
    --cc=17219@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=kuba@kubajecminek.cz \
    --cc=theonewiththeevillook@yahoo.fr \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.