emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
620 stars 162 forks source link

display-buffer quirk: `*R*` shown *twice* after restart #867

Closed mmaechler closed 5 years ago

mmaechler commented 5 years ago

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

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 one foofile.R and the iESS *R*. After restaring, the fooFile.R buffer is replaced [in display] by one of the two *R* buffers.

mmaechler commented 5 years ago

Further investigation shows:

lionel- commented 5 years ago

I have noticed this issue too.

jabranham commented 5 years ago

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 .

mmaechler commented 5 years ago

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.