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#55560: 29.0.50; kill-emacs on daemon doesn't remove ~/.emacs.d/.emacs.desktop.lock Date: Sat, 21 May 2022 22:50:40 +0300 Message-ID: <837d6e8y27.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9381"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55560@debbugs.gnu.org To: Peter Ludemann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 21:52: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 1nsV8z-0002H3-K6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 21:52:09 +0200 Original-Received: from localhost ([::1]:58926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsV8x-0003c9-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 15:52:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsV8r-0003bz-Ry for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 15:52:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsV8r-0000uC-Jp for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 15:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsV8r-0003lq-Iy for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 15:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 19:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55560 X-GNU-PR-Package: emacs Original-Received: via spool by 55560-submit@debbugs.gnu.org id=B55560.165316267014417 (code B ref 55560); Sat, 21 May 2022 19:52:01 +0000 Original-Received: (at 55560) by debbugs.gnu.org; 21 May 2022 19:51:10 +0000 Original-Received: from localhost ([127.0.0.1]:43014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsV82-0003kT-0h for submit@debbugs.gnu.org; Sat, 21 May 2022 15:51:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsV7x-0003jL-0b for 55560@debbugs.gnu.org; Sat, 21 May 2022 15:51:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsV7r-0000nf-Hz; Sat, 21 May 2022 15:50:59 -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=tHca7COpj785cZ/HJPRrE45XKN/qLUKlv/x7f4nRw6c=; b=fgZLeeoMq2T6 bmRr7JpwLuCJK5Ng7gYobfOAsKrqQRH8fvVHpbCT9hNy6N1VjS+gBMPtxj7LrroUatUTqarAMKj58 Ve5PsWlkr8DCBvmpcJe50scT1t/dnc4BQmBDLZXWK2MB2msk4eySUS+N/k7kIAB8nR2rn+q0uPTKK AJ05woTKOkJyQ2/BvkUYsLKZaa6G20nNC6zD5rQHC78+h60GXrJBZUM1/RsP3DZsgbwHjuhKSvqPk QyRiKdViIcv3bSBEt00iLKcMBSMxy4ku7eGkZzEiyyt+EyK9MmedW/1C74CmypDcE+4aJlkaEe3xU g5u6Ua6eKZi5zWQ8iCxLlw==; Original-Received: from [87.69.77.57] (port=2917 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 1nsV7r-0005zs-0k; Sat, 21 May 2022 15:50:59 -0400 In-Reply-To: (message from Peter Ludemann on Sat, 21 May 2022 12:16:50 -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:232852 Archived-At: > From: Peter Ludemann > Date: Sat, 21 May 2022 12:16:50 -0700 > > I started emacs with "emacs --daemon". I stopped it with the > "kill-emacs" command. Emacs stopped, but the desktop lock file > remained. Following is the my console (not showing the > "emacs --daemon" command). > > I'm pretty sure that older emacsen deleted the lock file > when the daemon was stopped, so this looks like a > regression. If it makes a difference, there was an > existing .emacs.desktop file when I started the daemon. This was a deliberate change in Emacs 28.1: the function that deletes the desktop lock file is now on kill-emacs-query-functions, and that hook is not called from kill-emacs (because kill-emacs isn't supposed to prompt the user, and desktop-kill sometimes need to prompt). Why are you stopping Emacs will kill-emacs? The right way of doing that is to invoke save-buffers-kill-emacs instead, which _will_ delete the desktop lock file.