Function: dframe-switch-buffer-attached-frame
dframe-switch-buffer-attached-frame is an interactive and
byte-compiled function defined in dframe.el.gz.
Signature
(dframe-switch-buffer-attached-frame &optional BUFFER)
Documentation
Switch to BUFFER in the attached frame, and raise that frame.
This overrides the default behavior of switch-to-buffer which is
broken because of the dedicated frame.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dframe.el.gz
(defun dframe-switch-buffer-attached-frame (&optional buffer)
"Switch to BUFFER in the attached frame, and raise that frame.
This overrides the default behavior of `switch-to-buffer' which is
broken because of the dedicated frame."
(interactive)
;; Assume we are in the dedicated frame.
(other-frame 1)
;; Now switch buffers
(if buffer
(switch-to-buffer buffer)
(call-interactively 'switch-to-buffer nil nil)))