From 7208106e8143ecc22c5313ddd1ea785fc9086d6b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 30 Mar 2022 16:21:02 +0300 Subject: [PATCH] Fix regression in 'dired-buffers-for-dir' * lisp/dired.el (dired-buffers-for-dir): Fix inadvertently swapped arguments. (Bug#54636) --- lisp/dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index ede89189154..75dcd33e67c 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2887,7 +2887,7 @@ As a side effect, killed dired buffers for DIR are removed from ((null (buffer-name buf)) ;; Buffer is killed - clean up: (setq dired-buffers (delq elt dired-buffers))) - ((dired-in-this-tree-p (car elt) dir) + ((dired-in-this-tree-p dir (car elt)) (with-current-buffer buf (when (and (or subdirs (assoc dir dired-subdir-alist)) -- 2.39.5