From e3f594232144f1d33e86efcc74861ca97f8ac2d4 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 24 Jul 2025 18:48:26 +0200 Subject: [PATCH] ; Revert last change * lisp/net/tramp-smb.el (tramp-connection-local-default-system-variables): Add "" to `exec-suffixes'. (Bug#78886) (cherry picked from commit ec96ea30ba8911c34a664d8d9989d9a64380e073) --- lisp/net/tramp-smb.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index 6982655254c..948a714c371 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el @@ -2169,19 +2169,20 @@ Removes smb prompt. Returns nil if an error message has appeared." ;; This the default value of %PATHEXT% in MS Windows 11, plus ".py" ;; for Python. Once we have remote processes, we might set this ;; host-specific using that remote environment variable. + ;; The suffix "" is added for the benefit of local processes, + ;; started in a remote buffer. (Bug#78886) (exec-suffixes . (".com" ".exe" ".bat" ".cmd" ".vbs" ".vbe" - ".js" ".jse" ".wsf" ".wsh" ".msc" ".py"))) + ".js" ".jse" ".wsf" ".wsh" ".msc" ".py" ""))) "Default connection-local system variables for remote smb connections.") (connection-local-set-profile-variables 'tramp-smb-connection-local-default-system-profile tramp-smb-connection-local-default-system-variables) -;; It must be disabled, see Bug#78886. -;; (connection-local-set-profiles -;; `(:application tramp :protocol ,tramp-smb-method) -;; 'tramp-smb-connection-local-default-system-profile) +(connection-local-set-profiles + `(:application tramp :protocol ,tramp-smb-method) + 'tramp-smb-connection-local-default-system-profile) (add-hook 'tramp-unload-hook (lambda () -- 2.39.5