diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-03-22 14:13:07 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-03-22 14:13:07 +0000 |
commit | dd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119 (patch) | |
tree | 93b9331b4539e49fd60a26a230d09aec2d6d742e /lisp/progmodes/inf-lisp.el | |
parent | 29db528baef4ba58447da2bb633c421ed551374a (diff) | |
download | emacs-dd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119.tar.gz emacs-dd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119.tar.bz2 emacs-dd4d27ca9e2f98f20895c2ba3f4059b4a7b0a119.zip |
(switch-to-lisp): Sometimes turn on pop-up-frames.
Diffstat (limited to 'lisp/progmodes/inf-lisp.el')
-rw-r--r-- | lisp/progmodes/inf-lisp.el | 7 |
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." With argument, positions cursor at end of buffer." (interactive "P") (if (get-buffer inferior-lisp-buffer) - (pop-to-buffer 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 (push-mark) |