T H A N K ' S Kevin. Works! Will cost me much study to understand it.
(what's the correct way to answers in this mailing list? - ( so the
archive is built correctly ) )
Kevin Rodgers wrote:
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))))
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs