]> git.eshelyaron.com Git - emacs.git/commitdiff
; Revert last change
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 24 Jul 2025 16:48:26 +0000 (18:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 20:14:08 +0000 (22:14 +0200)
* 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

index 6982655254ca6f61340ff508102d2af37a2c5ffb..948a714c3717f7a80151e66866ee7d1aeba4a05c 100644 (file)
@@ -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 ()