Function: dframe-get-focus
dframe-get-focus is an interactive and byte-compiled function defined
in dframe.el.gz.
Signature
(dframe-get-focus FRAME-VAR ACTIVATOR)
Documentation
Change frame focus to or from a dedicated frame.
If the selected frame is not in the symbol FRAME-VAR, then FRAME-VAR frame is selected. If the FRAME-VAR is active, then select the attached frame. If FRAME-VAR is nil, ACTIVATOR is called to created it.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dframe.el.gz
;;; Utilities
;;
(defun dframe-get-focus (frame-var activator)
"Change frame focus to or from a dedicated frame.
If the selected frame is not in the symbol FRAME-VAR, then FRAME-VAR
frame is selected. If the FRAME-VAR is active, then select the
attached frame. If FRAME-VAR is nil, ACTIVATOR is called to
created it."
(interactive)
(if (eq (selected-frame) (symbol-value frame-var))
(if (frame-live-p dframe-attached-frame)
(dframe-select-attached-frame))
;; make sure we have a frame
(if (not (frame-live-p (symbol-value frame-var)))
(funcall activator 1))
;; go there
(select-frame (symbol-value frame-var))
)
(other-frame 0))