[ESS-bugs] select-window (C-c M-j) doesn't give input focus to target (*R*) [Carbon GNU Emacs]
David Reitter
david.reitter at gmail.com
Tue Mar 14 13:31:28 CET 2006
I understand that, in ESS-mode, C-c M-j (and friends) are supposed to
select the *R* window and the buffer shown therein, so the input
focus is in that window in the end.
ESS selects the appropriate frame (`select-frame') and window
(`select-window') to do so in the function `ess-show-buffer'.
In current CVS versions of GNU Emacs (head, Carbon port) and ESS
5.2.8, this doesn't work. The *R* window is selected by `ess-show-
buffer' (as I have verified, both visually and by evaluating
(selected-window)), but the input focus (cursor is solid block, not
frame) remains on the original window. As soon as keyboard input is
made, the source window gets selected again (visibly).
To reproduce:
Arrange two frames: one showing just a buffer in R-mode, the other
one showing the *R* process buffer. Enter some R code into the first
buffer. Try to evaluate a line from within the first buffer by typing
C-c M-j. This reliably produces the bug.
Additional info:
There has been a change to the behavior of display-buffer (doesn't
select target frame any more) a few weeks ago, which should have
brought the display-buffer in line with its documentation.
I'm not sure if this is a problem with ESS or with (Carbon) Emacs -
please excuse the cross-posting.
In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2006-03-14 on rodrigues.inf.ed.ac.uk
X server distributor `Apple Computers', version 10.4.5
configured using `configure '--without-x' '--prefix=/usr/local''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: iso-8859-1
default-enable-multibyte-characters: t
Major mode: ESS[S]
Minor modes in effect:
encoded-kbd-mode: t
tooltip-mode: t
auto-compression-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
line-number-mode: t
Recent input:
r e <tab> p o <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> r e
<backspace> <backspace> <backspace> r e p o r t - e
s s <tab> <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> e s s - b u <tab> <tab> <backspace>
<backspace> <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> r e <tab> <escape> <escape>
<escape> C-h v e s s - v <tab> s <tab> <return> <help-echo>
<help-echo> <help-echo> <wheel-down> <double-wheel-down>
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
<triple-wheel-down> <triple-wheel-up> <triple-wheel-up>
<help-echo> <mac-apple-event> <help-echo> <escape>
x r e p o r t - e m <tab> <return>
Recent messages:
Finished evaluation
Loading line: x ...
Starting evaluation...
Finished evaluation
Making completion list... [3 times]
Quit
Loading pp...done
Type C-x 1 to remove help window.
mwheel-scroll: End of buffer [2 times]
Loading emacsbug...done
More information about the ESS-bugs
mailing list