[ESS-bugs] select-window (C-c M-j) doesn't give input focus to target (*R*) [Carbon GNU Emacs]
S.J.Eglen at damtp.cam.ac.uk
Sun Apr 2 20:59:42 CEST 2006
> Moving the mouse around isn't going to do anything on Carbon / OS X,
> and also not on any X11 version if configured differently. For
> example, the X11 server I occasionally use (Apple X11) can be
> configured to select the windows that the mouse points on - but
> that's not the default.
Yes. It probably only worked because I use focus-follows-mouse
behaviour, and maybe enough other people do for this bug not to have
been found before. thanks for persisting with this!
> Secondly, why not use `select-frame-set-input-focus' to do this?
> It's meant to do exactly that.
> With X, on the Mac, and on Windows it calls the appropriate function,
> while the backup is actually the call to set-mouse-position:
Good idea. I think this code came from my iswitchb package, which
predates select-frame-set-input-focus -- but since the ChangeLog.9 in
emacs says this function was define 2001, I think we can just use it
instead, as you suggest.
> I would probably test for (fboundp `select-frame-set-input-focus)
> before using it. You may need to keep the set-mouse-position business
> for XEmacs or very old versions of GNU Emacs - it's worth checking.
yes, not sure if it exists in XEmacs... will check.
More information about the ESS-bugs