From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Q on frame focus with MS Windows
Date: Wed, 26 Oct 2005 09:03:32 +0200 [thread overview]
Message-ID: <435F2A44.5050603@student.lu.se> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICIEAACOAA.drew.adams@oracle.com>
Drew Adams wrote:
>It turns out that this will do the trick for me:
>
> (defun foo () (interactive)
> (display-buffer (get-buffer-create "foo")
> (select-frame-set-input-focus (window-frame (minibuffer-window))))
>
>It was select-frame-set-input-focus that I was missing - in particular,
>w32-focus-frame. I thought I had already tried it, but I guess not.
>
>
Or, it is just that it is a bit tricky. I think there might be a race
condition here. It does not work for me without the
`run-with-idle-timer' I suggested.
I believe some part of the frame creation is run asynchronously.
next prev parent reply other threads:[~2005-10-26 7:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 20:33 Q on frame focus with MS Windows Drew Adams
2005-10-25 21:45 ` Lennart Borgman
2005-10-25 21:57 ` Drew Adams
2005-10-25 22:21 ` Lennart Borgman
2005-10-25 23:43 ` Drew Adams
2005-10-26 7:03 ` Lennart Borgman [this message]
2005-10-26 15:15 ` Drew Adams
2005-10-26 15:30 ` Lennart Borgman
2005-10-26 16:01 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=435F2A44.5050603@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).