1
0

emacs: allow spaces in TERMINAL

This commit is contained in:
2025-08-19 12:46:36 -07:00
parent a72d9d5886
commit 2cbaea2554

View File

@@ -964,7 +964,11 @@ frame if FRAME is nil, and to 1 if AMT is nil."
(interactive) (interactive)
(if (file-remote-p default-directory) (if (file-remote-p default-directory)
(shell) (shell)
(start-process "terminal" nil (getenv "TERMINAL")))) (let ((terminal-cmd (getenv "TERMINAL")))
(when terminal-cmd
;; Split the command properly, handling spaces in paths
(let ((args (split-string-and-unquote terminal-cmd)))
(apply 'start-process "terminal" nil args))))))
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
;; --- Compilation ;; --- Compilation