From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.devel Subject: Re: [RFC] Option to kill `emacs --daemon' when closing the last client frame Date: Fri, 22 Oct 2021 21:51:17 +0200 Message-ID: <87lf2kale2.fsf@no.workgroup> References: <838rymal1z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38971"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 22 21:52:20 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1me0aS-0009uA-B3 for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Oct 2021 21:52:20 +0200 Original-Received: from localhost ([::1]:51160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me0aQ-0000MB-8u for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Oct 2021 15:52:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me0Zc-0007oR-BO for emacs-devel@gnu.org; Fri, 22 Oct 2021 15:51:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:39613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me0Za-0006UK-2W for emacs-devel@gnu.org; Fri, 22 Oct 2021 15:51:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634932282; bh=TSd94TzdXgTUf6oUR16EcG8xiHfh8YYrePKTQzeKy9U=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:Date; b=iRkzmgIx2nsnHgL0iitnIDl5LeE0/n29NPaZum2I4jZ+brLJmQXyHtdQz73Lb5dGZ V2vT7TBx8+a/twphtgAobL7NMTKwHkVbveVniNszltP4aHUp4q8LbM7zLnSgcFfQ67 IR8X8JZryGkMXMgyDQd51R0oRFjzhoRcxOx3hZso= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MPokD-1mHEef07kJ-00Mtga; Fri, 22 Oct 2021 21:51:22 +0200 In-Reply-To: <838rymal1z.fsf@gnu.org> Mail-Followup-To: emacs-devel@gnu.org X-Provags-ID: V03:K1:dnnSbtdmfVD8PIu2sOmt2CdSaHOvEl1w5p6OlaM77P4whZSKBnh INNcskJjJ1kchTQ4a/DFBscM8MPw1wiWDNOe3Nlm5KFPjT/RIeVs/AlZWgdsuqZP04KKvSR GsiTBH0ymjlYBrB8or/d9/ptcB4EGqOpnaTYzjfWfySQWxQzQEPQZdO5hRUVES/pHJd2ShN zI37sThGT+oNSFLcWEvtQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ni+aCTBzNso=:LqLsejGwr3i6UhME2zJw4M l/aBjvGVA149wudtjD1JnqvZ1a1rZ1ZmTZzcj1uhnJP3EytVjz1nR1XAi7Z7uRJedbZgnk4VH adFNcO852B1yxSQr87SBD8cVBnS4Ir/RKf0FpBDyLlzpSJtez334VhmAklMhypF2CK+9z9Roh Z77tnXbnDDC2JFWtVBAm8vLlhahlGFtxDPLKcDmpNNPPLcREdVrFASY1vKcduveS/qWYuHvmu zqt9E/ONIhCjZI3D43GpblZL4YpceoeX3DwrcqROwCBFHq9kuqGYdmLrrHev5iCrAqa6u1HTU XLo/WF8+Fmdw6B+v3+we9Np1duPRuCU1lEZ3j7qtUdTOfXKwbBt2TOKvUKHWpBO90guL4v337 TLmsmQmgUuvo8B5QnUL3SIUF9mjgJRs36xw9cUkhFPCzTumAKI0THa/vHL4ymjMQ2oBoJbD8c S4fHSWHU2gi9F/Tu+1Iss6iu8wH+q9OTOMZRKFW8wY2CSIz63TEwDpY92zrN5rlGd5JKVEWu0 zdgtCT2xg0v8Q5RZCv+SQOBBrn7OXywknCgiy5Mio5JdRa5EkAR3a7RSvanhqwHsTzwmnMqml SZkuOjse2XeD8+T9E6lp49cT+IfRhrdaqrT4c/mh/BY3ZTzJz8CNRKKlTUQEMC8huLGZ+AQJ9 WtPnsrdCLloH8roz5kYgcnFcHTa3JcArL3ZNmAobzb6LtA3wx/SHFFqSOu4tUl2QgJvQ2+tLa MWEkCC3WpKaLF52Q2ZypR5UiWkc3zGQqH4+mtNyTItlfI/ekpQyYWVg8dD0ifqJLN+bkB6Y6 Received-SPF: pass client-ip=212.227.15.19; envelope-from=telegraph@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277578 Archived-At: Hi Eli, emacs developers, * Eli Zaretskii [2021-10-21; 10:34]: > We could add a new command to the server-client protocol, and make > emacsclient send this command when invoked with the (hypothetical) new > command-line option. But what happens then if there are two emacsclients connecting to the daemon, one with this hypothetical command line option, the other one without and the one without is the last client which closes it's connection with the daemon? >> Another method might be to add an option like >> `daemon-kill-when-no-clients' that defaults to nil. Then after an >> `emacsclient' is killed, we can consult that variable, and if it's true= , >> kill the daemon if there are no remaining clients. > > That'd require users to modify their init files, which I think is > slightly less desirable than the alternative with a new protocol > command. Only if they want to use that new behaviour. Emacs users in most cases need to do that in order to use newly changed UI features. Ciao; Gregor =2D- -... --- .-. . -.. ..--.. ...-.-