]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#71235
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 2 Jun 2024 13:09:44 +0000 (15:09 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Jun 2024 09:48:55 +0000 (11:48 +0200)
* lisp/dired.el (dired-insert-directory): Fix remote case.

* lisp/net/tramp.el (tramp-remote-path): Add "/opt/homebrew/bin".

(cherry picked from commit a37e812d9677a1e97daf112ec2d821aaacd7664f)

lisp/dired.el
lisp/net/tramp.el

index f2a75df6ef1240ec3e0681331ea350e89c07bff4..c51e5e42c29a87b52109959276b153dcbe50c1a1 100644 (file)
@@ -1710,9 +1710,10 @@ see `dired-use-ls-dired' for more details.")
       (cond ((and dir-wildcard (files--use-insert-directory-program-p))
              (setq switches (concat "-d " switches))
              (let* ((default-directory (car dir-wildcard))
+                    (ls (or (and remotep "ls")
+                            insert-directory-program))
                     (script (format "%s %s %s"
-                                    insert-directory-program
-                                    switches (cdr dir-wildcard)))
+                                    ls switches (cdr dir-wildcard)))
                     (sh (or (and remotep "/bin/sh")
                             (executable-find shell-file-name)
                             (executable-find "sh")))
index 06ba0cd59ebc0f19699cc59a64725c925fe4eb7a..3cd0fdf5a86211fc52936d080da1683e9b7fd3bd 100644 (file)
@@ -1370,7 +1370,7 @@ let-bind this variable."
   '(tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin"
     "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin"
     "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin"
-    "/opt/bin" "/opt/sbin" "/opt/local/bin")
+    "/opt/bin" "/opt/sbin" "/opt/local/bin" "/opt/homebrew/bin")
   "List of directories to search for executables on remote host.
 For every remote host, this variable will be set buffer local,
 keeping the list of existing directories on that host.