Function: idlwave-shell-source-frame
idlwave-shell-source-frame is a byte-compiled function defined in
idlw-shell.el.gz.
Signature
(idlwave-shell-source-frame)
Documentation
Return the frame to be used for source display.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlw-shell.el.gz
(defun idlwave-shell-source-frame ()
"Return the frame to be used for source display."
(if idlwave-shell-use-dedicated-frame
;; We want separate frames for source and shell
(if (frame-live-p idlwave-shell-display-wframe)
;; The frame exists, so we use it.
idlwave-shell-display-wframe
;; The frame does not exist. We use the current frame.
;; However, if the current is the shell frame, we make a new frame,
;; or recycle the first existing visible frame
(setq idlwave-shell-display-wframe
(if (eq (selected-frame) idlwave-shell-idl-wframe)
(or
(let ((flist (visible-frame-list)))
(catch 'exit
(while flist
(if (not (eq (car flist)
idlwave-shell-idl-wframe))
(throw 'exit (car flist))
(setq flist (cdr flist))))))
(make-frame))
(selected-frame))))))