From 336b7f41606b57bbfe0e7bc1530cd14d44009821 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 7 Jul 1994 05:07:02 +0000 Subject: [PATCH] (switch-to-buffer-other-frame): Raise the frame. --- lisp/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 2ccfa29d135..ed6bb39cafd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -443,7 +443,8 @@ unlike `file-truename'." "Switch to buffer BUFFER in another frame." (interactive "BSwitch to buffer in other frame: ") (let ((pop-up-frames t)) - (pop-to-buffer buffer t))) + (pop-to-buffer buffer t) + (raise-frame (window-frame (selected-window))))) (defun find-file (filename) "Edit file FILENAME. -- 2.39.5