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 00:21:17 +0200 [thread overview]
Message-ID: <435EAFDD.2090207@student.lu.se> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICAEPPCNAA.drew.adams@oracle.com>
Drew Adams wrote:
>My understanding is that it is the MS Windows window-manager that
>automatically selects/focusses the new frame, and that that cannot be
>prevented from within Emacs. If there is a way to inhibit this behavior,
>that would be even better than getting the focus back after it has been
>given to the new frame.
>
>
I believe that the new w32 window can be created without getting the
focus, but I am not sure. And it is a rather complex change that must be
made.
>But I don't understand what you are suggesting I do - at all.
>
> A workaround is maybe to use `after-make-frame-functions'?
>
>I already mentioned that I tried that. What do you suggest I put in that
>hook, concretely? I tried reselecting the original buffer/window/frame and
>the minibuffer, none of which seemed to work.
>
>
Something like this (but it is a bit ugly):
(setq pop-up-frames t
default-frame-alist '((minibuffer))
minibuffer-frame-alist '((minibuffer . only)))
(define-key minibuffer-local-completion-map [down] 'foo)
(defvar this-frame nil)
(defun foo-focus-this(frame-dummy)
(run-with-idle-timer 0.1
nil
'select-frame-set-input-focus
this-frame))
(defun foo () (interactive)
(add-hook 'after-make-frame-functions 'foo-focus-this)
(setq this-frame (selected-frame))
(display-buffer (get-buffer-create "foo")))
next prev parent reply other threads:[~2005-10-25 22:21 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 [this message]
2005-10-25 23:43 ` Drew Adams
2005-10-26 7:03 ` Lennart Borgman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=435EAFDD.2090207@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 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.