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

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Mon Apr 3 14:46:37 CEST 2006


Dear all,

I've committed some code to SVN to fix this bug that David noted.  I
have not yet tested it on XEmacs...  David, are you able to check out
this version from SVN?

----------------------------------------------------------------------
   The latest development version of ESS is available via
`https://svn.R-project.org/ESS/', the ESS Subversion repository.  If
you have a Subversion client (see `http://subversion.tigris.org/'), you
can download the sources using:
     % svn checkout https://svn.r-project.org/ESS/trunk PATH
----------------------------------------------------------------------



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

(Martin: do you have focus-follows-mouse set to t?)


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

What I have done is to copy the code from gnus-util.el which has a
similar function, and presumably works for both Emacs and XEmacs.
(Although David, if you look closely, gnus-util.el does not test for
mac -- I will send a bug report and cc: you in.)

Stephen




More information about the ESS-bugs mailing list