# HG changeset patch # User Karl Heuer # Date 910835757 0 # Node ID 3be52677d3306e351746f96624abf93af7bff3c3 # Parent 3267bdc78ccac06cb66c1f8d88d5e0d6ecc8bc76 (switch-to-lisp): if no inferior lisp present, call `run-lisp' instead of signalling an error. diff -r 3267bdc78cca -r 3be52677d330 lisp/progmodes/inf-lisp.el --- a/lisp/progmodes/inf-lisp.el Wed Nov 11 19:31:24 1998 +0000 +++ b/lisp/progmodes/inf-lisp.el Thu Nov 12 01:55:57 1998 +0000 @@ -362,17 +362,17 @@ "Switch to the inferior Lisp process buffer. With argument, positions cursor at end of buffer." (interactive "P") - (if (get-buffer inferior-lisp-buffer) + (if (get-buffer-process inferior-lisp-buffer) (let ((pop-up-frames ;; Be willing to use another frame ;; that already has the window in it. (or pop-up-frames (get-buffer-window inferior-lisp-buffer t)))) (pop-to-buffer inferior-lisp-buffer)) - (error "No current inferior Lisp buffer")) - (cond (eob-p + (run-lisp inferior-lisp-program)) + (when eob-p (push-mark) - (goto-char (point-max))))) + (goto-char (point-max)))) ;;; Now that lisp-compile/eval-defun/region takes an optional prefix arg,