Closed mmaechler closed 5 years ago
Further investigation shows:
C-c C-q
, i.e., (ess-quit)
alone is the culprit: It leaves two identical *R*
buffers displayed.(ess-cleanup)
called from (ess-quit--override *)
which is the culprit: It does call (display-buffer *)
in a way that's not correct in this case. This is a relatively recent (Feb.22 ) change b2778ed23I have noticed this issue too.
I'll take a look at this this weekend or early next week (unless someone beats me to it)
On Tue, Mar 19, 2019, 5:49 AM Lionel Henry notifications@github.com wrote:
I have noticed this issue too.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/emacs-ess/ESS/issues/867#issuecomment-474303210, or mute the thread https://github.com/notifications/unsubscribe-auth/ALXMiXdg5ejcbL3q4u1Zpq9LD5tHDW5Dks5vYMCegaJpZM4b5uQa .
As I found that (ess-cleanup)
was really only called from (the two versions of) (ess-quit--override)
, I've simply reverted that small part of b2778ed.
Another quirk since our switch to use Emacs display-buffer thoroughly:
Inside
*R*
, I do often kill R and restart it very quickly {I told ESS to call R with "--no-save" so it does not ask me}:C-c C-q
callsq("no")
[for me]M-x R
would restart R ... and it does,but since our switch to use display-buffer , in that case I now get twice the same
*R*
buffer (with the newly started R process) displayed in my Emacs [2 buffers on top of each other]. This not only happens when before the restart*R*
was the only visible buffer, but even and that is really a pain when I already had two buffers, say an ESS onefoofile.R
and the iESS*R*
. After restaring, thefooFile.R
buffer is replaced [in display] by one of the two*R*
buffers.