aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-22 14:13:07 +0000
committerRichard M. Stallman1996-03-22 14:13:07 +0000
commitdd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119 (patch)
tree93b9331b4539e49fd60a26a230d09aec2d6d742e
parent29db528baef4ba58447da2bb633c421ed551374a (diff)
downloademacs-dd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119.tar.gz
emacs-dd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119.zip
(switch-to-lisp): Sometimes turn on pop-up-frames.
-rw-r--r--lisp/progmodes/inf-lisp.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el
index b56b9a5dd58..870d3f944b7 100644
--- a/lisp/progmodes/inf-lisp.el
+++ b/lisp/progmodes/inf-lisp.el
@@ -361,7 +361,12 @@ Prefix argument means switch to the Lisp buffer afterwards."
361With argument, positions cursor at end of buffer." 361With 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)