emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b261dd13478: * lisp/simple.el (minibuffer-default-add-shell-comma


From: Juri Linkov
Subject: master b261dd13478: * lisp/simple.el (minibuffer-default-add-shell-commands): Require 'dired-aux'.
Date: Fri, 1 Dec 2023 02:19:35 -0500 (EST)

branch: master
commit b261dd13478770624217287166255cfc8c620868
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]