all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Friedrich Laher <fritz.laher@schmieder-laher.de>
Subject: Re: focus return to old frame after make-frame
Date: Fri, 05 Aug 2005 23:06:28 +0200	[thread overview]
Message-ID: <42F3D4D4.7020906@schmieder-laher.de> (raw)
In-Reply-To: <dd08jc$lbr$1@sea.gmane.org>

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))))

      reply	other threads:[~2005-08-05 21:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 13:25 focus return to old frame after make-frame Friedrich Laher
2005-08-05 17:45 ` Kevin Rodgers
2005-08-05 21:06   ` Friedrich Laher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42F3D4D4.7020906@schmieder-laher.de \
    --to=fritz.laher@schmieder-laher.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.