emacs-ess / ESS

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

`ess-S-quit-kill-buffers-p` is not respected #1305

Closed ywwry66 closed 1 month ago

ywwry66 commented 2 months ago

To reproduce:

  1. Set ess-S-quit-kill-buffers-p to ask
  2. Start an R session by M-x R
  3. Quit R by calling ess-quit.
  4. Answer y to the prompt "Delete all buffers associated with process R?"
  5. Answer n to the prompt "Save workspace image?"

The value ask does trigger the prompt, but it does not kill any buffers associated with R. Setting ess-S-quit-kill-buffers-p to t does not kill the buffers either. I have also tried setq inferior-R-args "--no-save", and the result is the same.

ywwry66 commented 1 month ago

I misunderstood the purpose of ess-S-quit-kill-buffers-p. It is supposed to only kill those R script buffers associated with the R process, but leaves the process buffer itself untouched. It actually works as intended.