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#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Date: Wed, 27 Jul 2022 21:58:54 +0300 Message-ID: <831qu6bcwh.fsf@gnu.org> References: <838roebivp.fsf@gnu.org> <834jz2bgvr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56800@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 20:59:24 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 1oGmFf-000AKI-GH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 20:59:23 +0200 Original-Received: from localhost ([::1]:56568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGmFe-0004Qy-DL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 14:59:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGmFM-0004OA-CU for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 14:59:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGmFL-0003n4-1o for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 14:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGmFK-0005gN-So for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 14:59: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: Wed, 27 Jul 2022 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs Original-Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.165894833621815 (code B ref 56800); Wed, 27 Jul 2022 18:59:02 +0000 Original-Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 18:58:56 +0000 Original-Received: from localhost ([127.0.0.1]:57000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGmFE-0005fn-H9 for submit@debbugs.gnu.org; Wed, 27 Jul 2022 14:58:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGmFB-0005fX-6y for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 14:58:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGmF5-0003lU-VU; Wed, 27 Jul 2022 14:58:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4fZ/PTqOKsXw13ZbMILBYgp2S9kbZiGVBgltu1/93k8=; b=nV/HyDnc+LM9n801/iyL 6GxgtPNm6t+4NFG9SED+XpGG+1tLoiqeO5tvcJNqi68dGUYddrSQMKtsQEKGQ9OY6AAEsR3eO9t6k TlMX+YugBRtsGGfkBw9ysb6ghd3dRCIJUz0jdimmpMPE/phBG9Y0xeN95jVVVxflKODqay4IDGlxX 4i8wwWF/43rG3RUwIKnIYFMC9kSyN1Sn/d6zYtRbBX8UzQlv/+fK9myASYlrDgbcZge01femPuNtT FJsTVw0yUT7+eNtryceXesHnf5qSdBeI5+FeCSsHiRyDJ/5ov+QEqAdaBdQFao0hchjRDDvPsCTes SGQagqk3f1mflg==; Original-Received: from [87.69.77.57] (port=2592 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 1oGmF5-0002JY-2h; Wed, 27 Jul 2022 14:58:47 -0400 In-Reply-To: (message from Paul Pogonyshev on Wed, 27 Jul 2022 19:52:31 +0200) 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:238057 Archived-At: > From: Paul Pogonyshev > Date: Wed, 27 Jul 2022 19:52:31 +0200 > Cc: 56800@debbugs.gnu.org > > Yeah, apparently `kill-emacs' is considered "low-level primitive": > > Functions to call with no arguments to query about killing Emacs. > If any of these functions returns nil, killing Emacs is canceled. > ‘save-buffers-kill-emacs’ calls these functions, but ‘kill-emacs’, > the low level primitive, does not. See also ‘kill-emacs-hook’. > > Since I have rebound C-x C-c for my private use (why waste such a nice shortcut on something used once > in a few days?), I have been using `kill-emacs'. But apparently it's not what should be used... Emacs making > it easy to silently break things, nothing new. > > I suggest that `desktop-release-lock' call is still moved from something hooked on > `kill-emacs-query-functions' to `kill-emacs-hook'. That part is supposed to be done unconditionally. That change was made because the hook can ask questions, which doesn't work in a daemon session. So we moved the hook.