all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'martin rudalics'" <rudalics@gmx.at>
Cc: 11566@debbugs.gnu.org
Subject: bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuffer frame?
Date: Tue, 29 May 2012 07:12:26 -0700	[thread overview]
Message-ID: <96A3CCDD100E49C6ACF2739484C9239A@us.oracle.com> (raw)
In-Reply-To: <4FC49A24.7000403@gmx.at>

> You didn't tell us whether it works for you "in general".  If you work
> with two frames for "some time" does `redirect-frame-focus' what it is
> supposed to do?  If it doesn't we have a strange situation 
> where, citing from Ito's comment in bug#11513,

Sorry, I don't know what you mean.  I have been using multiple frames for a long
time, yes.  But I do not directly call `redirect-frame-focus'.  I do call
`select-frame-set-input-focus' in various places.

Does that mean that `r-f-f' works for me in general?  I really have no idea.

>  > > When I run lower-frame function in Emacs frame 
>  > > interactively, Emacs frame is brought behind of
>  > > other application window(s) but has focus.
>  > > Key inputs are passed to lowered frame.  I tested 4 
>  > > Windows PC, and all PCs show the same behavior.

Yes, I was the first to confirm what was reported in bug #11513.

> so Windows OT1H handles key input passed to a frame that is not in the
> foreground and OTOH doesn't pass key input to another frame even if
> explicitly asked to do so.

Apparently so.

(That a window manager can accept input passed to a frame that is not on top in
the stacking order is not exceptional.  That is (was, at least) true for many w.
mgrs on UNIX, where you could even change the input focus without changing the
stacking order ("foreground") just by moving the mouse over a lower frame.)

>  >> Try the sit-for approach.  Try to make a standalone example like
>  >> (let ((old-frame ... some existing frame))
>  >>    (make-frame)
>  >>    (redirect-frame-focus old-frame))
>  >> and see whether it fails giving focus to `old-frame'.
>  >
>  > Still not sure what you mean by using `sit-for' 
>  > (how/where?).  But I tried that simple example, and yes,
>  > it systematically fails to give focus to `old-frame'.
>  > The newly created frame keeps the focus - every time.
> 
> I suppose my example was just silly.  Maybe you should try again with
> 
> (let ((old-frame (selected-frame))
>        (new-frame (make-frame)))
>    (redirect-frame-focus new-frame old-frame))

That puts (keeps) the input focus in old-frame.  So it seems to work as it
should.

(But new-frame has its title and border highlighted as if it had the focus.
Somehow there is a disconnect between the two.  But maybe such highlighting is
intended only to indicate the topmost frame?  Dunno.)

> I don't know anything about `redirect-frame-focus' and can't test it
> reliably here because I'm using special autoraise-frame settings which
> likely interfere with any such focus redirection.

I know less that you, but I can perhaps test it if you suggest what to test.






  reply	other threads:[~2012-05-29 14:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-27  0:07 bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuffer frame? Drew Adams
2012-05-27 13:22 ` martin rudalics
2012-05-27 15:01   ` Drew Adams
2012-05-29  9:43     ` martin rudalics
2012-05-29 14:12       ` Drew Adams [this message]
2012-05-29 15:44         ` Eli Zaretskii
2012-05-29 16:10           ` Drew Adams
2012-05-29 16:44             ` Eli Zaretskii
2012-05-29 19:15               ` Drew Adams
2012-05-29 19:47                 ` Eli Zaretskii
2012-05-29 20:28                   ` Drew Adams
2012-05-29 15:40       ` Eli Zaretskii
2012-05-29 16:10         ` Drew Adams
2012-05-29 16:46           ` Eli Zaretskii
2012-05-29 19:15             ` Drew Adams
2012-05-29 20:20               ` Eli Zaretskii
2012-05-29 21:31                 ` Drew Adams
2012-05-30 18:43                   ` Eli Zaretskii
2012-05-30 20:10                     ` Drew Adams
2012-05-28 18:02 ` Drew Adams
2012-10-03  9:13 ` martin rudalics

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=96A3CCDD100E49C6ACF2739484C9239A@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=11566@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    /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.