From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51993: 29.0.50; [PATCH] Killing emacsclient terminal with `server-stop-automatically' doesn't prompt to save files Date: Thu, 20 Oct 2022 09:23:34 +0300 Message-ID: <83y1tbxbbt.fsf@gnu.org> References: <9e47c871-a2c3-d764-bec9-d87abf3efe83@gmail.com> <79a53ecc-dbfc-d088-d80d-96f349be794a@gmail.com> <834k7vw2vb.fsf@gnu.org> <87czc4tosz.fsf@gnus.org> <83lepoi58p.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27418"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 51993@debbugs.gnu.org, gregory@heytings.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 20 08:28:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1olP2I-0006vN-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 08:28:10 +0200 Original-Received: from localhost ([::1]:44300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olP2G-0007Uj-D6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 02:28:08 -0400 Original-Received: from [::1] (port=41012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olOzt-0006Jp-Aa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 02:25:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olOyK-0006HJ-BK for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2022 02:24:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olOyI-0002KA-IS for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2022 02:24:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olOyI-0002ZZ-E4 for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2022 02:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2022 06:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51993-submit@debbugs.gnu.org id=B51993.16662470279866 (code B ref 51993); Thu, 20 Oct 2022 06:24:02 +0000 Original-Received: (at 51993) by debbugs.gnu.org; 20 Oct 2022 06:23:47 +0000 Original-Received: from localhost ([127.0.0.1]:60969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olOy3-0002Z4-Ba for submit@debbugs.gnu.org; Thu, 20 Oct 2022 02:23:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olOy0-0002Yn-9e for 51993@debbugs.gnu.org; Thu, 20 Oct 2022 02:23:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olOxu-0002Hf-VG; Thu, 20 Oct 2022 02:23:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/KaIFjpiBDBStMiGqGJPdj9KLte/OYs4yu7H3o4qjGM=; b=R/xMZejFkXRb XnOz1LjoUVECK11hrvC5uthdhey22dbkmnxH8nExXTxYWKpvMJ4sovwBSjXfFMKcDneNNPAne5T+g Z2KaessqSrmCnQM73Tq/Zq3jPNf0IPWznsCbtJCTnoEX+tyWrrhx9NehzhCuKJFeI1IP96BA1chFd IFynqZtTbWBnGmukxEvBYA0orvFeVq0N2sZ/kDtt9wX3qqnO7yUCFuzl6z1LtszDaET2GdJPAstP8 nX9JMF+dxxuOxq7OLecGmm5dVN930kKiXLedMTkeeMylej0UofO+syTkREIgPNjh7nAk/KbqmnkPH 09AqMbDEvFHtq6hkgz7RIQ==; Original-Received: from [87.69.77.57] (port=1243 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olOxu-0000IR-ES; Thu, 20 Oct 2022 02:23:38 -0400 In-Reply-To: (message from Jim Porter on Wed, 19 Oct 2022 20:14:38 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245920 Archived-At: > Date: Wed, 19 Oct 2022 20:14:38 -0700 > Cc: larsi@gnus.org, 51993@debbugs.gnu.org, gregory@heytings.org > From: Jim Porter > > I proposed a couple of behaviors that I described in as much detail as I > could in the hopes of avoiding confusion and coming to an agreement > here: > . > > To summarize it briefly, the behavior I would personally prefer is this. > When deleting an emacs client by any means (e.g. 'C-x C-c', clicking the > X on the last frame of a client, etc): > > a) if this is not the last client, behave the same as Emacs 28: > prompt to save files specified when starting "emacsclient", and then > delete that client. > > b) if this *is* the last client, prompt the user to save everything > (as with 'save-buffers-kill-emacs'), and then delete the client + kill > the Emacs daemon. You mean, in b), instead of just deleting the frame and leaving the daemon run, you want to shut down Emacs in its entirety, as if the user invoked kill-emacs? I'm okay with that as an optional behavior, although I myself won't use it, as it's too dangerous.