From: Juri Linkov Date: Fri, 1 Dec 2023 07:18:28 +0000 (+0200) Subject: * lisp/simple.el (minibuffer-default-add-shell-commands): Require 'dired-aux'. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b261dd13478770624217287166255cfc8c620868;p=emacs.git * 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. --- 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))