From b261dd13478770624217287166255cfc8c620868 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Fri, 1 Dec 2023 09:18:28 +0200 Subject: [PATCH] * lisp/simple.el (minibuffer-default-add-shell-commands): Require 'dired-aux'. This is necessary for 'shell-command-guess' after removing autoload cookie since declare-function doesn't autoload it. --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 0fbab6cfa89..652fc7ba540 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -4284,7 +4284,8 @@ after the default value." (let* ((filename (if (listp minibuffer-default) (car minibuffer-default) minibuffer-default)) - (commands (and filename (shell-command-guess (list filename))))) + (commands (and filename (require 'dired-aux) + (shell-command-guess (list filename))))) (setq commands (mapcar (lambda (command) (concat command " " filename)) commands)) -- 2.39.2