comparison lisp/progmodes/inf-lisp.el @ 14857:eb23eca2abf9

(switch-to-lisp): Sometimes turn on pop-up-frames.
author Richard M. Stallman <rms@gnu.org>
date Fri, 22 Mar 1996 14:13:07 +0000
parents 83f275dcd93a
children 9005c1013176
comparison
equal deleted inserted replaced
14856:f64fa743c80f 14857:eb23eca2abf9
359 (defun switch-to-lisp (eob-p) 359 (defun switch-to-lisp (eob-p)
360 "Switch to the inferior Lisp process buffer. 360 "Switch to the inferior Lisp process buffer.
361 With argument, positions cursor at end of buffer." 361 With argument, positions cursor at end of buffer."
362 (interactive "P") 362 (interactive "P")
363 (if (get-buffer inferior-lisp-buffer) 363 (if (get-buffer inferior-lisp-buffer)
364 (pop-to-buffer inferior-lisp-buffer) 364 (let ((pop-up-frames
365 ;; Be willing to use another frame
366 ;; that already has the window in it.
367 (or pop-up-frames
368 (get-buffer-window inferior-lisp-buffer t))))
369 (pop-to-buffer inferior-lisp-buffer))
365 (error "No current inferior Lisp buffer")) 370 (error "No current inferior Lisp buffer"))
366 (cond (eob-p 371 (cond (eob-p
367 (push-mark) 372 (push-mark)
368 (goto-char (point-max))))) 373 (goto-char (point-max)))))
369 374