all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame
Date: Sat, 23 Oct 2021 20:41:12 +0200	[thread overview]
Message-ID: <87zgqzinxz.fsf@no.workgroup> (raw)
In-Reply-To: <83k0i45eva.fsf@gnu.org>

Hi Eli, emacs devs,
* Eli Zaretskii <eliz@gnu.org> [2021-10-23; 11:23]:
>> From: Gregor Zattler <telegraph@gmx.net>
>> Date: Sat, 23 Oct 2021 09:45:00 +0200
>> If the protocol command is sent by emnacsclient because of a command
>> line option, it's up to the user if and in which order s/he chooses
>> to start emacsclients with/out this command -line option!?
>
> Yes, and I don't understand why you are saying this.  Once the new
> server command was sent to the server, the server will kill Emacs when
> last client connection is closed.  Why is that a problem, again?
> Please describe the entire scenario where you think this is a problem.

To me it would be confusing, if the last emacsclient exiting
from the server kills it, if there is not such command-line
option in it's invocation.  It could be quite a while since
the client which signals this to the server is exited.  Both
emacsclient invocations could be buried in some scripts,
effectively started via desktop events.  This could lead to
situations where the user does not know why the server died
and which are hard to debug.


[...]
>> I for instance rarely call emacsclient by name from the
>> command-line, but only for debugging reasons.  In normal
>> live I call it via shell scripts.  These I would have to
>> adapt, if I would want to make use of the new command-line
>> option.
>
> Adapt how?  If your shell scripts are well written, they accept extra
> command-line options anyhow, right?  So all you'd need is to call that
> script with this additional command-line option, right?

Depends on the shell script.  E.g. `crontab -e' calls
$EDITOR or $VISUAL and that's were one would want to edit a
config file.  That's not a problem for me, because I see no
point in using the discussed feature.  I simply want to
state, that adaptions are necessary in both cases.

> I don't necessarily object to the user option as well, but it is only
> useful if the user wants _all_ of his/her daemon sessions to behave
> like that.

Yes.  I consider this to be a bug, see bug#51360.

Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-



  reply	other threads:[~2021-10-23 18:41 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20  4:20 [RFC] Option to kill `emacs --daemon' when closing the last client frame Jim Porter
2021-10-20  4:36 ` Tomasz Konojacki
2021-10-20 20:07   ` Jim Porter
2021-10-21  6:07     ` Eli Zaretskii
2021-10-22  2:42       ` Jim Porter
2021-10-22  6:41         ` Eli Zaretskii
2021-10-23 20:38           ` Jim Porter
2021-10-20 12:13 ` Eli Zaretskii
2021-10-21  3:43   ` Jim Porter
2021-10-21  7:34     ` Eli Zaretskii
2021-10-22  2:58       ` Jim Porter
2021-10-22 19:51       ` Gregor Zattler
2021-10-23  6:23         ` Eli Zaretskii
2021-10-23  7:45           ` Gregor Zattler
2021-10-23  8:23             ` Eli Zaretskii
2021-10-23 18:41               ` Gregor Zattler [this message]
2021-10-25  6:11     ` Jean Louis
2021-10-25 17:18       ` Jim Porter
2021-10-22 11:58 ` Stefan Monnier
2021-10-24 21:49   ` Jim Porter
2021-10-25  6:19   ` Jean Louis
2021-10-25 18:06     ` Jim Porter
2021-10-23 19:57 ` Gregory Heytings
2021-10-24 11:54   ` Gregory Heytings
2021-10-24 15:17     ` Gregory Heytings
2021-11-08  5:13       ` chad
2021-10-25  6:20   ` Jean Louis
2021-10-25  7:37     ` Gregory Heytings
  -- strict thread matches above, loose matches on Subject: below --
2021-10-25 22:38 Peter Oliver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgqzinxz.fsf@no.workgroup \
    --to=telegraph@gmx.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.