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#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients Date: Mon, 10 Oct 2022 09:11:01 +0300 Message-ID: <83k058i4y2.fsf@gnu.org> References: <20194da7-2318-46db-7536-bbd9e3ddf945@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40079"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58404@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 10 08:13:02 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 1ohm2A-000A8k-3O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 08:13:02 +0200 Original-Received: from localhost ([::1]:60814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohm27-0000GJ-Fv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 02:12:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohm1D-000094-9c for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 02:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohm1C-0005l1-QD for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 02:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohm1C-00036D-I3 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 02:12: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: Mon, 10 Oct 2022 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58404-submit@debbugs.gnu.org id=B58404.166538226211828 (code B ref 58404); Mon, 10 Oct 2022 06:12:02 +0000 Original-Received: (at 58404) by debbugs.gnu.org; 10 Oct 2022 06:11:02 +0000 Original-Received: from localhost ([127.0.0.1]:45521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohm0E-00034h-8M for submit@debbugs.gnu.org; Mon, 10 Oct 2022 02:11:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohm0D-000344-0A for 58404@debbugs.gnu.org; Mon, 10 Oct 2022 02:11:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohm07-0005cO-O1; Mon, 10 Oct 2022 02:10:55 -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=hLi9N77+x60r8OMVkWy4t9/oYWyaUAjtJRsIcHQlDO8=; b=fTo63yBYWt5O ieVmYDoBKvvyklp+FH7psaiC8nFkga247sBb/1EZ8kqfUIghMzK4o9iv1ipZHzaDhL9y6jqnBwffp 8NBYk7+Z+WoCK7T9f/suXlbaLvIs4z19K9XGzus+uHZ0IV/r5e/c2VYhTvYP5j0y5Kc+WLZiNSuSe mgxdLfXDHI8L40DuU8SZlTv3yVmOi9D6J/vYcjAzYSI9eQ2VsrUsJxlC8drH3ziN+XrG5VIh8RYoU 95urrunJRxvEB9jLcgsSur2gZp+9yoWyEVR9k4HeocLCMqUE3noKUXUwyfMrzH8aIcsSPtHoGBVY6 BTnqRfMMoWrYLIHqMIYBxg==; Original-Received: from [87.69.77.57] (port=1999 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 1ohm06-0000sU-Cu; Mon, 10 Oct 2022 02:10:55 -0400 In-Reply-To: <20194da7-2318-46db-7536-bbd9e3ddf945@gmail.com> (message from Jim Porter on Sun, 9 Oct 2022 16:32:28 -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:244983 Archived-At: > Date: Sun, 9 Oct 2022 16:32:28 -0700 > From: Jim Porter > > On the other hand, I think it *would* be useful to prompt if you're in > the last client, but there are other non-client frames. This can happen > if you start the main Emacs process without --daemon or if you use > --no-wait. For example: > > $ emacs -Q --daemon > $ emacsclient foo.txt > $ emacsclient --no-wait -c bar.txt > > ;; From the first client: > M-x save-buffers-kill-emacs > => This Emacs session has clients; exit anyway? > > This is ok, except the prompt could be clearer. The real issue is that > the session has non-client frames that would get killed. > > Attached is a patch to do this. IMO, this is an unnecessary annoyance. We don't by default ask the user any questions today, when they want to kill an Emacs session. Why should we change that in this case? What is the use case where this command could be invoked by mistake and will risk losing edits or other valuable work?