[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Option to kill `emacs --daemon' when closing the last client f
From: |
Eli Zaretskii |
Subject: |
Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame |
Date: |
Fri, 22 Oct 2021 09:41:46 +0300 |
> Cc: me@xenu.pl, emacs-devel@gnu.org
> From: Jim Porter <jporterbugs@gmail.com>
> Date: Thu, 21 Oct 2021 19:42:23 -0700
>
> I hope an example will illustrate what I mean[1]. I start with two
> terminals open, A and B[2]. In terminal A, I run `emacs -nw foo.txt'. In
> terminal B, I run `emacsclient -nw -c bar.txt'. Now, suppose I want to
> stop editing foo.txt in terminal A and go back to doing something else.
> I'd type `C-x C-c', but then my emacsclient in terminal B will close too.
No, it should say the session has client, and ask for confirmation.
You also have C-z to temporarily suspend the session on A.
> However, using the daemon configuration with ALTERNATE_EDITOR="", I
> could run `emacsclient -nw -c ...' in each terminal. Then when I type
> `C-x C-c' in terminal A, it only kills that client, not the daemon
> process. I can then continue to edit in terminal B without interruption.
>
> Of course, this isn't a bug, it's just how emacs and emacsclient work
> together when not using `emacs --daemon'. It just turned out to be
> inconvenient for how I use Emacs, so I've moved to using `emacs
> --daemon' instead.
Which is exactly why we provided the daemon mode, so I see no problem
here, I see a solution for a particular class of use patterns.
Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Eli Zaretskii, 2021/10/20
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Jim Porter, 2021/10/20
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Eli Zaretskii, 2021/10/21
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Jim Porter, 2021/10/21
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Gregor Zattler, 2021/10/22
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Eli Zaretskii, 2021/10/23
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Gregor Zattler, 2021/10/23
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Eli Zaretskii, 2021/10/23
- Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame, Gregor Zattler, 2021/10/23