all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: 11566@debbugs.gnu.org
Subject: bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuffer frame?
Date: Tue, 29 May 2012 13:28:24 -0700	[thread overview]
Message-ID: <311006E0722F4F798C1F973A211FD1CB@us.oracle.com> (raw)
In-Reply-To: <83y5oa22ie.fsf@gnu.org>

> > > On Windows, at least with the default setup, selecting a 
> > > frame also grabs focus.  So these two functions do the same.
> > 
> > No, definitely not with my (non-default) setup.  Selecting 
> > a frame does not give it the input focus.
> 
> Not even in "emacs -Q"?  IOW, is this an Emacs setup issue, or a
> Windows setup issue?

I don't know what the test recipe would be.

I don't know what it is for my setup either.  All I know is that I have had to
add calls to `select-frame-set-input-focus', and that `select-frame' did not do
the trick.

And I don't say that `select-frame' _never_ gives focus to the frame it selects.
I'm saying only that in some situations I have had to use `s-f-s-i-p'.

Typically, IIRC, this has been necessary when using the minibuffer, and, e.g. a
key in the minibuffer map caused a new frame to be created or (correctly) caused
some action to take place in another frame.  In such situations I need to call
`s-f-s-i-f' to the standalone minibuffer frame in order to continue with
minibuffer input (e.g. completion).  `select-frame' does not cut the mustard
here.

> > Hence my need to call `select-frame-set-input-focus' in a 
> > few places.  And, I would guess, hence the existence of two 
> > different functions: `select-frame' and `s-f-s-i-f'.
> 
> My guess is that they exist because on X the situation is quite
> different: X defaults (or at least used to) to "pointer to focus", not
> "click to focus".

Could be.  But as I say, `select-frame' did not seem to do the job, which is why
I moved on to `s-f-s-i-f', which did.

> > I'm no expert on any of this, obviously.
> 
> Unfortunately, neither am I.  I just read a bit about this for the
> last few days, because apparently no one else wanted to work on bug
> #11513.

Thank you for your efforts.






  reply	other threads:[~2012-05-29 20:28 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
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 [this message]
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=311006E0722F4F798C1F973A211FD1CB@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=11566@debbugs.gnu.org \
    --cc=eliz@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.