emacs-libvterm icon indicating copy to clipboard operation
emacs-libvterm copied to clipboard

Unable to close vterm

Open theottm opened this issue 3 years ago • 2 comments

Hi,

whenever I try to kill a vterm buffer using C-d or kill-this-buffer I get the error:

Attempt to delete minibuffer or sole ordinary window

The variable vterm-kill-buffer-on-exit is set to t. vterm-exit-function is also nil.

I'm running Emacs as a daemon and my WM is EXWM, but running as another process.

I just tried to split the window and then killing the vterm buffer works. So it seems killing a vterm also calls delete-window. Is there a way to avoid that?

theottm avatar Jul 22 '22 17:07 theottm

My first guess is you have some other hooks/customization in place that conflict with vterm. Since you can easily reproduce the problem, my suggestion is bisecting your config file to find what is the problem. If the error happens even with a clean config, we can try to understand better what is going on.

Sbozzolo avatar Jul 23 '22 10:07 Sbozzolo

Sounds like a good debugging strategy, thanks. I'll try that out.

On Sat, Jul 23, 2022, 12:17 Gabriele Bozzola @.***> wrote:

My first guess is you have some other hooks/customization in place that conflict with vterm. Since you can easily reproduce the problem, my suggestion is bisecting your config file to find what is the problem. If the error happens even with a clean config, we can try to understand better what is going on.

— Reply to this email directly, view it on GitHub https://github.com/akermu/emacs-libvterm/issues/607#issuecomment-1193101158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKQJUNK5CSMTP6LLR3JXXDVVPBEXANCNFSM54MGNHTQ . You are receiving this because you authored the thread.Message ID: @.***>

theottm avatar Jul 23 '22 10:07 theottm

It turns out this was caused by vterm-toggle. Setting vterm-toggle-reset-window-configration-after-exit to t fixed the problem.

theottm avatar Aug 29 '22 08:08 theottm