emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q on frame focus with MS Windows


From: Lennart Borgman
Subject: Re: Q on frame focus with MS Windows
Date: Wed, 26 Oct 2005 09:03:32 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]