[ESS-bugs] select-window (C-c M-j) doesn't give input focus to target (*R*) [Carbon GNU Emacs]

Martin Maechler maechler at stat.math.ethz.ch
Mon Apr 3 10:04:49 CEST 2006


>>>>> "StEgl" == Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>
>>>>>     on Sun, 2 Apr 2006 19:59:42 +0100 writes:

    >> 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.

    StEgl> Yes.  It probably only worked because I use focus-follows-mouse
    StEgl> behaviour, and maybe enough other people do 

yes, I (and almost all in our statistics "department") have been
doing so forever...

    StEgl> for this bug not to have been found before.  thanks
    StEgl> for persisting with this!

thank you, David, indeed!

    >> 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:

    StEgl> Good idea.  I think this code came from my iswitchb package, which
    StEgl> predates select-frame-set-input-focus -- but since the ChangeLog.9 in
    StEgl> emacs says this function was define 2001, I think we can just use it
    StEgl> 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.

    StEgl> yes, not sure if it exists in XEmacs... will check.

Good!
So the fix should hopefully also go into the upcoming release of
ESS 5.3.0.

Martin




More information about the ESS-bugs mailing list