emacs: allow spaces in TERMINAL
This commit is contained in:
@@ -964,7 +964,11 @@ frame if FRAME is nil, and to 1 if AMT is nil."
|
||||
(interactive)
|
||||
(if (file-remote-p default-directory)
|
||||
(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
|
||||
|
||||
Reference in New Issue
Block a user