Friedrich Laher wrote:
> Is it possible - by lisp-code - to get the focus back to the former
> frame after evaluation of (make-frame ...) ?
Does this work:
(defadvice make-frame (around focus-frame activate)
"Restore focus to the (previously) selected frame."
(let ((selected-frame (selected-frame))
(focus-function (intern (format "%s-focus-frame" window-system))))
ad-do-it
(when (fboundp focus-function)
(funcall focus-function selected-frame))))
--
Kevin Rodgers
_______________________________________________
Help-gnu-emacs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs