diff options
| -rw-r--r-- | lisp/progmodes/inf-lisp.el | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el index 08eddc47869..09bbb9674d9 100644 --- a/lisp/progmodes/inf-lisp.el +++ b/lisp/progmodes/inf-lisp.el | |||
| @@ -255,7 +255,6 @@ to continue it." | |||
| 255 | (use-local-map inferior-lisp-mode-map) ;c-c c-k for "kompile" file | 255 | (use-local-map inferior-lisp-mode-map) ;c-c c-k for "kompile" file |
| 256 | (setq comint-get-old-input (function lisp-get-old-input)) | 256 | (setq comint-get-old-input (function lisp-get-old-input)) |
| 257 | (setq comint-input-filter (function lisp-input-filter)) | 257 | (setq comint-input-filter (function lisp-input-filter)) |
| 258 | (setq comint-input-sentinel 'ignore) | ||
| 259 | (run-hooks 'inferior-lisp-mode-hook)) | 258 | (run-hooks 'inferior-lisp-mode-hook)) |
| 260 | 259 | ||
| 261 | (defun lisp-get-old-input () | 260 | (defun lisp-get-old-input () |
| @@ -282,7 +281,7 @@ of `inferior-lisp-program'). Runs the hooks from | |||
| 282 | (read-string "Run lisp: " inferior-lisp-program) | 281 | (read-string "Run lisp: " inferior-lisp-program) |
| 283 | inferior-lisp-program))) | 282 | inferior-lisp-program))) |
| 284 | (if (not (comint-check-proc "*inferior-lisp*")) | 283 | (if (not (comint-check-proc "*inferior-lisp*")) |
| 285 | (let ((cmdlist (inferior-lisp-args-to-list cmd))) | 284 | (let ((cmdlist (split-string cmd))) |
| 286 | (set-buffer (apply (function make-comint) | 285 | (set-buffer (apply (function make-comint) |
| 287 | "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) | 286 | "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) |
| 288 | (inferior-lisp-mode))) | 287 | (inferior-lisp-mode))) |
| @@ -293,22 +292,6 @@ of `inferior-lisp-program'). Runs the hooks from | |||
| 293 | ;;;###autoload | 292 | ;;;###autoload |
| 294 | (defalias 'run-lisp 'inferior-lisp) | 293 | (defalias 'run-lisp 'inferior-lisp) |
| 295 | 294 | ||
| 296 | ;;; Break a string up into a list of arguments. | ||
| 297 | ;;; This will break if you have an argument with whitespace, as in | ||
| 298 | ;;; string = "-ab +c -x 'you lose'". | ||
| 299 | (defun inferior-lisp-args-to-list (string) | ||
| 300 | (let ((where (string-match "[ \t]" string))) | ||
| 301 | (cond ((null where) (list string)) | ||
| 302 | ((not (= where 0)) | ||
| 303 | (cons (substring string 0 where) | ||
| 304 | (inferior-lisp-args-to-list (substring string (+ 1 where) | ||
| 305 | (length string))))) | ||
| 306 | (t (let ((pos (string-match "[^ \t]" string))) | ||
| 307 | (if (null pos) | ||
| 308 | nil | ||
| 309 | (inferior-lisp-args-to-list (substring string pos | ||
| 310 | (length string))))))))) | ||
| 311 | |||
| 312 | (defun lisp-eval-region (start end &optional and-go) | 295 | (defun lisp-eval-region (start end &optional and-go) |
| 313 | "Send the current region to the inferior Lisp process. | 296 | "Send the current region to the inferior Lisp process. |
| 314 | Prefix argument means switch to the Lisp buffer afterwards." | 297 | Prefix argument means switch to the Lisp buffer afterwards." |