Subject: bug#79293: [PATCH] Pass dired default filenames via defaults argument

From: Juri Linkov <[email-masked]>
Date: Thu, 28 Aug 2025 09:21:41 +0300

close 79293 31.0.50
thanks

> This also fixes bug#25609, with even less code, and dired-tests and
> dired-aux-tests both once again all pass.
>
> This version of the patch also extends the change to
> dired-compare-directories, so it gets the abbreviate-file-name benefits
> too.

Thanks, I tested it, and everything works correctly,
so now pushed.

> -                          (setq-local minibuffer-default-add-function nil)
> -			  (setq minibuffer-default defaults))
> +                          ;; Don't run `read-file-name--defaults'
> +                          (setq-local minibuffer-default-add-function nil))

Thanks for adding this comment, now I remember this was intentional
to prevent running this function in read-file-name-default.