Skip to content

Commit eb4a120

Browse files
committed
Allow using spaces in `inferior-lisp' command names
* lisp/progmodes/inf-lisp.el (inferior-lisp): Allow using spaces in the command names (by splitting using shell syntax) (bug#16005).
1 parent 28e7b51 commit eb4a120

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lisp/progmodes/inf-lisp.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
(require 'comint)
6464
(require 'lisp-mode)
65+
(require 'shell)
6566

6667

6768
(defgroup inferior-lisp nil
@@ -289,15 +290,20 @@ to continue it."
289290
"Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'.
290291
If there is a process already running in `*inferior-lisp*', just switch
291292
to that buffer.
293+
292294
With argument, allows you to edit the command line (default is value
293295
of `inferior-lisp-program'). Runs the hooks from
294296
`inferior-lisp-mode-hook' (after the `comint-mode-hook' is run).
297+
298+
If any parts of the command name contains spaces, they should be
299+
quoted using shell quote syntax.
300+
295301
\(Type \\[describe-mode] in the process buffer for a list of commands.)"
296302
(interactive (list (if current-prefix-arg
297303
(read-string "Run lisp: " inferior-lisp-program)
298304
inferior-lisp-program)))
299305
(if (not (comint-check-proc "*inferior-lisp*"))
300-
(let ((cmdlist (split-string cmd)))
306+
(let ((cmdlist (split-string-shell-command cmd)))
301307
(set-buffer (apply (function make-comint)
302308
"inferior-lisp" (car cmdlist) nil (cdr cmdlist)))
303309
(inferior-lisp-mode)))

0 commit comments

Comments
 (0)