From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 56800@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16589391423501 (code B ref -1); Wed, 27 Jul 2022 16:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2022 16:25:42 +0000 Received: from localhost ([127.0.0.1]:56868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGjqw-0000uP-0F for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:25:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:50762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGjqu-0000uF-2x for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:25:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGjqt-0005PV-RI for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:25:39 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:43536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGjqs-00068Y-3H for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:25:39 -0400 Received: by mail-yb1-xb31.google.com with SMTP id o15so2956678yba.10 for ; Wed, 27 Jul 2022 09:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ncd81vIdG6LlZo2g5bjlIsP4qOquc+5ft82YO4g5wnA=; b=SNa87sEXBzZKo9CgmYOJX5/9wxLOTZxoq8vRt2ZK/+xXDU6qfqinYuoI0q5+oUsGSz +5ZH0vdRCTGl9Kr1YYHbd3pCInDStdV1YdKuWeRvIoz6Ir1qyAWB6ZJBYCF5q2pRK1WW IBT4P1tXIdubFgIOihjg68Fw7uhaRjXGtrUNC1R/o/L031OL2X0I7kfqnLnywYdQI9CX vT7Adx36JnR96cpxbD0nnE8uXM532Fnu38y3e2cYjQKVTL3TMuh0giHIv/r51aXLwesR KKACX3N/uFWbBT+uWnV/zuvLQOkTev6uUPYPbUtA5nyCJfQnO9i8ZTLJhkU9yZ/TRT1V ASyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ncd81vIdG6LlZo2g5bjlIsP4qOquc+5ft82YO4g5wnA=; b=VXg2/doBC1DKQB/AFkVvWi1HKMhMUgYj1tbdAnS5YPGNQL5DvaE6zkc6iNSQyAdarw vhcezhZUHsOHHCUQ9kENFuFI7mcnNpSGiIeaTz3KK0ywDCZ3/U06s07e0wq+Z1BsACjt SY8nyWuW6v7VwWVmDTgo1vQvQ67hGJ6Qh/PI6XiZjxePUMlOpDVNL8RxeJL8eY4/jW8t vQVf7kGvrQBXd+QG6Uhm6hXsXUCQqN7Eky5DrHIBDAosg5xGsm5UX4zpFKd6quWQqT8c L1Iv/bjhGgfTJe0KcKnbCBuJTXmSjXO82+qPdMsD0WrSCwVd4WzwJxA/lZNCXyGeepd7 hnpw== X-Gm-Message-State: AJIora+YVFbYB0nFrRE5qmKzUexuBqbbn3iBsKSmN44IujOCYzdKY1Ln 7T3sUA96f022liRPktLu7sAHbINwyPzhX8O0M/HEqic= X-Google-Smtp-Source: AGRyM1u/Ly7BhgXO6eQwN6g3RTJOYNIMN1mNxrHCYBTM70YzK66ZcOiIQHcUUS8puQU0ZcNCx2GbAl4vXmqFtBnNOCA= X-Received: by 2002:a05:6902:1021:b0:670:c012:7f4e with SMTP id x1-20020a056902102100b00670c0127f4emr18720666ybt.357.1658939135905; Wed, 27 Jul 2022 09:25:35 -0700 (PDT) MIME-Version: 1.0 From: Paul Pogonyshev Date: Wed, 27 Jul 2022 18:25:24 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000e6536305e4cbdd71" Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=pogonyshev@gmail.com; helo=mail-yb1-xb31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000e6536305e4cbdd71 Content-Type: text/plain; charset="UTF-8" GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.33, cairo version 1.16.0) of 2022-07-26 Practically every time I start up Emacs, I get this pointless warning and a question if I really want to use the desktop file anyway. If there were actually another Emacs running, this warning would be fine, even useful. However, in 95% of cases here it happens because computer was shut down, Emacs crashed etc. In fact, I have just now verified that even if I cleanly `M-x kill-emacs RET' my Emacs and then start a new one, the new still thinks that the old, killed Emacs might still be using the desktop file somehow (i.e. PID is that of the previous Emacs process). The code in `desktop.el' should really check if the process with that PID still exists before claiming that it might be using the desktop file somehow. Paul --000000000000e6536305e4cbdd71 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Vers= ion 2.24.33, cairo version 1.16.0) of 2022-07-26

Practic= ally every time I start up Emacs, I get this pointless warning and a questi= on if I really want to use the desktop file anyway. If there were actually = another Emacs running, this warning would be fine, even useful. However, in= 95% of cases here it happens because computer was shut down, Emacs crashed= etc. In fact, I have just now verified that even if I cleanly `M-x kill-em= acs RET' my Emacs and then start a new one, the new still thinks that t= he old, killed Emacs might still be using the desktop file somehow (i.e. PI= D is that of the previous Emacs process).

The code= in `desktop.el' should really check if the process with that PID still= exists before claiming that it might be using the desktop file somehow.

Paul
--000000000000e6536305e4cbdd71-- From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Pogonyshev Cc: 56800@debbugs.gnu.org Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.16589406076474 (code B ref 56800); Wed, 27 Jul 2022 16:51:02 +0000 Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 16:50:07 +0000 Received: from localhost ([127.0.0.1]:56883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkEY-0001gM-UB for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:50:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkEW-0001fh-SM for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 12:50:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGkE8-0001A7-Dj; Wed, 27 Jul 2022 12:49:54 -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=UbiHhrU8iYZ1FV49muGf18puLtbDt8sPLjaoc8bsfQE=; b=JOwp2AJbwDM6 8CBttWdXTuRRYHv6sRQQP1CTPKdMwd2BVlemKWZFM4aB2MeskBSPRdMTj66fFTThROzK3jMBfMZVL ZsNBQqM2Ri09lhP9diOrUcNKeKimiuCnZrBfAkplrDS6HihjO60PaYdi6FOQgRa0hv1UtuCi4/BcI vTp0lWITlf+0/YSeYGRSnG4EISUSpK21FUq4g6LvPD1kqoKa8Hf1hCv5RjaEJMWsIIYM+9ETJSHTb XelSrzNGFtxaLvodVpwh7m1hRjDcVtTpVA3Z9UCCWRkFER+Jm0wqU+3q2AbQdzXXGXBzpNz4m46jf OD+bfJk4Gpal6mZdd+yFdw==; Received: from [87.69.77.57] (port=2638 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 1oGkE7-00050D-QV; Wed, 27 Jul 2022 12:49:40 -0400 Date: Wed, 27 Jul 2022 19:49:46 +0300 Message-Id: <838roebivp.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Paul Pogonyshev on Wed, 27 Jul 2022 18:25:24 +0200) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Paul Pogonyshev > Date: Wed, 27 Jul 2022 18:25:24 +0200 > > The code in `desktop.el' should really check if the process with that PID still exists before claiming that it > might be using the desktop file somehow. AFAIU, you should be able to have that if you customize desktop-load-locked-desktop to give it the value 'check-pid'. Did you try that? From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 16:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 56800@debbugs.gnu.org Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.16589411377474 (code B ref 56800); Wed, 27 Jul 2022 16:59:02 +0000 Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 16:58:57 +0000 Received: from localhost ([127.0.0.1]:56887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkN6-0001wT-RT for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:58:57 -0400 Received: from mail-yb1-f175.google.com ([209.85.219.175]:37638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkN3-0001wC-Vy for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 12:58:55 -0400 Received: by mail-yb1-f175.google.com with SMTP id 141so6576727ybn.4 for <56800@debbugs.gnu.org>; Wed, 27 Jul 2022 09:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SeqqNV7DIbrt7qjpNtGTkBAvagTpbKTr8OGH8SwbDVA=; b=MD/LXSbtD+SCtub2790mN0bXZwtpNFrYh5uV/b+uOuu5p7LO7lIo1FP5llQ2LcZz5C IoEDPrpZN76f4Uod8HIQwRfoLxN+K0X003kRs0qYhcsHljP+iuozMDm+nD3elA9o39rJ OB7H9ozBL7JQj4yrNLmmSQePjeYlGogx/qrvbprqIckEMPFlPljr8TI/b4ipiO6KwKgu e5HZvn9NxVt1ZCdzMoYfOToUfv4D9BLgnT5WdVIxqG+gdMPyKRytBhjXElxznXrJTc6g q9nVkq8pUtPQqhlWYUc0F2sL3c7P8Lmat9QA7Qd59+iF6bpeONt63jm7JBz2UABAhJT4 UUjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SeqqNV7DIbrt7qjpNtGTkBAvagTpbKTr8OGH8SwbDVA=; b=Op4cxnH6gDqqQCl6Cuwah/O952hV5J6mAd+XehP5YRvyCGzOH57r0Ti8Qrib4uJRV5 dOS4wmNUldP75Pmk3PsKemkOnmTzPQvxDm8KQfZSZIDsBEvHWJ/7X7CdBl5v98+eLzqt zVb+4LWZDBIK3yMcdYuuTLxLK846TspbDtJeG/0bG8/q+D2CkTGxP/bIChfsb4U9FP9C ZfuqjHP6Ck4o0W/Iht4n4AjgvirNMNSYU6wmSzhXn+YeRzAQkCM3sDKc1OwZscTTMrWc 2ozkY2Tii/R5ua5SpxRBvZq/z7+fCQ1h5MYgBe4g66xlmBTS8eeo5o6r2IDhGc8fNeq9 bp6Q== X-Gm-Message-State: AJIora90vJxcwKvubFSBrYu540jONfJxdhxAl10xRRmfPOD/rV2QoX0b UcXdtlVV+gNBJaflRybrVeO/UD4eVhNdrlXESA== X-Google-Smtp-Source: AGRyM1tXOW7bDFAUJHmduQpoeSPB9m4OkrJbmzTWgw79Dx+Wg0rtJhpP8uuyNxYC1twLFKzPqU9PPFxcozacWKNsQ7M= X-Received: by 2002:a25:3416:0:b0:671:7ea3:19d6 with SMTP id b22-20020a253416000000b006717ea319d6mr5054479yba.116.1658941128202; Wed, 27 Jul 2022 09:58:48 -0700 (PDT) MIME-Version: 1.0 References: <838roebivp.fsf@gnu.org> In-Reply-To: <838roebivp.fsf@gnu.org> From: Paul Pogonyshev Date: Wed, 27 Jul 2022 18:58:36 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000a65c9005e4cc54cd" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000a65c9005e4cc54cd Content-Type: text/plain; charset="UTF-8" No, but I have tried now. I guess I understand the default behavior better now (even if I don't find it generally useful enough to be the default; how many users really have remotely mounted paths in `desktop-dirname'?). But why does even cleanly exiting Emacs leave desktop file "apparently used"? Paul On Wed, 27 Jul 2022 at 18:50, Eli Zaretskii wrote: > > From: Paul Pogonyshev > > Date: Wed, 27 Jul 2022 18:25:24 +0200 > > > > The code in `desktop.el' should really check if the process with that > PID still exists before claiming that it > > might be using the desktop file somehow. > > AFAIU, you should be able to have that if you customize > desktop-load-locked-desktop to give it the value 'check-pid'. Did you > try that? > --000000000000a65c9005e4cc54cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No, but I have tried now. I guess I understand the default= behavior better now (even if I don't find it generally useful enough t= o be the default; how many users really have remotely mounted paths in `des= ktop-dirname'?).

But why does even cleanly exiting E= macs leave desktop file "apparently used"?

Paul

On Wed, 27 Jul 2022 at 18:50, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Paul Pogonyshev <pogonyshev@gmail.com> > Date: Wed, 27 Jul 2022 18:25:24 +0200
>
> The code in `desktop.el' should really check if the process with t= hat PID still exists before claiming that it
> might be using the desktop file somehow.

AFAIU, you should be able to have that if you customize
desktop-load-locked-desktop to give it the value 'check-pid'.=C2=A0= Did you
try that?
--000000000000a65c9005e4cc54cd-- From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Pogonyshev Cc: 56800@debbugs.gnu.org Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.165894317611714 (code B ref 56800); Wed, 27 Jul 2022 17:33:02 +0000 Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 17:32:56 +0000 Received: from localhost ([127.0.0.1]:56934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGku0-00032r-5R for submit@debbugs.gnu.org; Wed, 27 Jul 2022 13:32:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkty-00032a-30 for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 13:32:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGkts-000803-Si; Wed, 27 Jul 2022 13:32:48 -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=T1QexnBtgicQZQExlmv3/mCF2WS6Wbhk8jN9oMnPwbM=; b=kQ78T6iv1wBt JfOjWDM+y1VkaG05Wu310GnIt2TG6gVc+5CV1S0qDSJrB+DqGIUyla7bTVcE0eCuTFBaL81Lp8JAm 7NTOlRHK+yMz9YPsgDRnk5QZMO/7Zk8MrlDQvCK07njk3wN4wa9yw0s3rW2DYIpSqyb6cmeL+5EnI ZOE6c1v5JCS6HmWHjsxe64gVVXL+9HtmVXUaj6naO2UErlx4Y7zT9TnjTrzoBklVydJxuf+SVTkv9 ECI3shP1sk3pNuqCr9/rx65F/rtcJ3hdQdLYmqSl7GBVStGX+0UwBeJEJGy0X2ZqdyuUqdynhk3Fh ouAEhHF8kfuK1hqn+Fz/Mw==; Received: from [87.69.77.57] (port=1310 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 1oGkts-00085B-Cz; Wed, 27 Jul 2022 13:32:48 -0400 Date: Wed, 27 Jul 2022 20:32:56 +0300 Message-Id: <834jz2bgvr.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Paul Pogonyshev on Wed, 27 Jul 2022 18:58:36 +0200) References: <838roebivp.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Paul Pogonyshev > Date: Wed, 27 Jul 2022 18:58:36 +0200 > Cc: 56800@debbugs.gnu.org > > But why does even cleanly exiting Emacs leave desktop file "apparently used"? It shouldn't, and it doesn't here. Something I hope you will look into and tell what you found. From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 56800@debbugs.gnu.org Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.165894437314253 (code B ref 56800); Wed, 27 Jul 2022 17:53:02 +0000 Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 17:52:53 +0000 Received: from localhost ([127.0.0.1]:56938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGlDI-0003hp-W7 for submit@debbugs.gnu.org; Wed, 27 Jul 2022 13:52:53 -0400 Received: from mail-yw1-f169.google.com ([209.85.128.169]:46732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGlDE-0003hN-6b for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 13:52:50 -0400 Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-31f445bd486so64848967b3.13 for <56800@debbugs.gnu.org>; Wed, 27 Jul 2022 10:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m/yhawwLdUAn+gyODIxks72vjsPunvKWqmatBTz+UX8=; b=C9NPxE84z8t+zTZsENbXAvxxiYoK7+wYc3KJ/qJKRPiJzURw0OlLrxZyjA/nn7UIv0 NxfTnFSiZT956WpOvBhtXqEzYw0ofP3cyFULDvEUIz9Joo9NVSMKWvfKSN4n7U6b0w93 +m3Vmf7hyK5zA0ILcHtr2Le9chhgdRIzLy7CGZ1R7343u0N1BhUoVYJoI/Ib0Ua/OWal EXb9sJQP+h4siirOKPYkjrjZLFfmlc81HaNbJZ7VzClzyez2P0PPrFeL0C7773isprHZ pmQ1+ILz6bWXDHvRvG9/t7WACt/694cIEtxBoH7c5rtvxHpyiTCtCJqLaEd4qJhYCPck pDjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m/yhawwLdUAn+gyODIxks72vjsPunvKWqmatBTz+UX8=; b=lB0DJoPofwhLPdTBMP/9Uus8wfJzvU7M8k7QwozO6O69lxDfgmpAFCSwpnOvTV3zuc fctceI3L8AKocqxyu+eeec9tHJx++ckNgtmzWwCwA8EsUARweqzbxDNJbhUgFPwcSKAH IeSbpgqnF3YRXJdVHTXTIfryQt8/QJiMoAJbgERZFOmP+qO29xkVWuri6PBZcCyWQRes Fuq/t3PjLXZICnGDHV4oq8283ZxFJb7tqqsP4DBh/81DkEo+oeVFtqOvoNHOd8KsEOzv qk8DG/e+VMyHrwh8DZkH6JgplrTXCDBCA53ta1kBsX3vXiWb54GJLH8D4lFoSnmL/F+L 7PcA== X-Gm-Message-State: AJIora9MIk6Hh85/7ipIEkMyXjy58189xx/giJmp5U+MaR+nn5C25dsa 4VEfsC2ZfCugaACw9xzr1EzV8ogdPn0rg5+qzimr1Xz12g== X-Google-Smtp-Source: AGRyM1uDPZv/4WG1U+43NYRPP52+iPMSfGXpGFKTkZYiR4d59amfyTSPbfuz4EURII2pz1g1fnF50z6XcJPEHxzniYM= X-Received: by 2002:a0d:fe46:0:b0:31e:56c0:d051 with SMTP id o67-20020a0dfe46000000b0031e56c0d051mr20778386ywf.371.1658944362298; Wed, 27 Jul 2022 10:52:42 -0700 (PDT) MIME-Version: 1.0 References: <838roebivp.fsf@gnu.org> <834jz2bgvr.fsf@gnu.org> In-Reply-To: <834jz2bgvr.fsf@gnu.org> From: Paul Pogonyshev Date: Wed, 27 Jul 2022 19:52:31 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000006ac69a05e4cd15ec" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000006ac69a05e4cd15ec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. =E2=80=98save-buffers-kill-emacs=E2=80=99 calls these functions, but = =E2=80=98kill-emacs=E2=80=99, the low level primitive, does not. See also =E2=80=98kill-emacs-hook= =E2=80=99. 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. Paul On Wed, 27 Jul 2022 at 19:32, Eli Zaretskii wrote: > > From: Paul Pogonyshev > > Date: Wed, 27 Jul 2022 18:58:36 +0200 > > Cc: 56800@debbugs.gnu.org > > > > But why does even cleanly exiting Emacs leave desktop file "apparently > used"? > > It shouldn't, and it doesn't here. Something I hope you will look > into and tell what you found. > --0000000000006ac69a05e4cd15ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yeah, apparently `kill-emacs' is considered "low-= level primitive":

=C2=A0 =C2=A0 Functions to call w= ith no arguments to query about killing Emacs.
=C2=A0 =C2=A0=C2=A0If any= of these functions returns nil, killing Emacs is canceled.
=C2=A0 =C2= =A0=C2=A0=E2=80=98save-buffers-kill-emacs=E2=80=99 calls these functions, b= ut =E2=80=98kill-emacs=E2=80=99,
=C2=A0 =C2=A0=C2=A0the low level primit= ive, does not.=C2=A0 See also =E2=80=98kill-emacs-hook=E2=80=99.
<= div>
Since I have rebound C-x C-c for my private use (why was= te 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 fr= om something hooked on `kill-emacs-query-functions' to `kill-emacs-hook= '. That part is supposed to be done unconditionally.

Paul

On Wed, 27 Jul 2022 at 19:32, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Paul Pogonyshev <pogonyshev@gmail.com>= ;
> Date: Wed, 27 Jul 2022 18:58:36 +0200
> Cc: 56800@d= ebbugs.gnu.org
>
> But why does even cleanly exiting Emacs leave desktop file "appar= ently used"?

It shouldn't, and it doesn't here.=C2=A0 Something I hope you will = look
into and tell what you found.
--0000000000006ac69a05e4cd15ec-- From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." 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 X-GNU-PR-Keywords: To: Paul Pogonyshev Cc: 56800@debbugs.gnu.org Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.165894833621815 (code B ref 56800); Wed, 27 Jul 2022 18:59:02 +0000 Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 18:58:56 +0000 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 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 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==; 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 Date: Wed, 27 Jul 2022 21:58:54 +0300 Message-Id: <831qu6bcwh.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Paul Pogonyshev on Wed, 27 Jul 2022 19:52:31 +0200) References: <838roebivp.fsf@gnu.org> <834jz2bgvr.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Sun Aug 17 10:19:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 56800@debbugs.gnu.org Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.165894978624844 (code B ref 56800); Wed, 27 Jul 2022 19:24:02 +0000 Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 19:23:06 +0000 Received: from localhost ([127.0.0.1]:57057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGmcb-0006Sd-UY for submit@debbugs.gnu.org; Wed, 27 Jul 2022 15:23:06 -0400 Received: from mail-yb1-f181.google.com ([209.85.219.181]:38612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGmcZ-0006RR-C7 for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 15:23:04 -0400 Received: by mail-yb1-f181.google.com with SMTP id d124so14363464ybb.5 for <56800@debbugs.gnu.org>; Wed, 27 Jul 2022 12:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ov4hFA1kFwjnAApPmn5jo3Ats/+gqCW2OVEEMGo+MY8=; b=WI4eYQ2ShZazt4PdQaSMw5+5J9RzB10FvQLIMAnin9EpnM2tDEImZi44GZiHlZ+1Hh P7s9o6Wkwz6IzI9uUbG0OrURqSCj1qU5N8YvaNBj2imb4N+BP3cAyH7TqspAgs23mRw9 XpfJ8DXO57Y026eGE4vDqd2x/zZP7x/Rp8Fglg1VN/KnWsmKNrh/7JNUfLIFDdiOfo/S vdtSK0ofw6uqt5nmE7nx3XZW9ZYBqUf9nmDmIpj1B64KdqEWM+IgIDUDKA6wLgTbNk9B 9sRthtShVFsMZu8OyM3TcecMuKL8GeFatwwS/6hXZWN71gh1ABSUqqVHfzF1B13y1/8D ZJdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ov4hFA1kFwjnAApPmn5jo3Ats/+gqCW2OVEEMGo+MY8=; b=7va0K/jsm9NNyatdJOZZshQ8J9/cY4QOgZ1m+qvdpTo6jXySCPOYZGGnuauMwMbHWa RxVZlTY9Z4JBQ34hHjhoCGUhXYnAvgzPEIO/2ts6y3ebVCnttsWz2ydGX/vGuBPIB6q/ U3ynZR5Py5S8EiYytq++PsAn4XR4gu9o0/NnizXtMdns/w/XXw+k07DE1hcFG6mGfgdG +LouG8438x+dz1zOkaeZpWlaCelQcW1gyBv+D18uE2+CHDpkqrhs/n6TNX7ZjIkaiJoW HGIweapTWb0CIOvIOjDXBsVjKPfHzvs37ZSnHsWCJm4G26O9NuH3eckPJkppB976hY6L r1DA== X-Gm-Message-State: AJIora/qxobE3kAZw4qn9z02AE/e7PPmdxRIfUBjzfX/dTd0h3plI9GT nsLAf41S6biDrB526iWons0dCwhlsxG/C9SHOcUaoe/f8A== X-Google-Smtp-Source: AGRyM1ufie+y5xXIcT1gC8+SZcA8Pu7kxqWrmo1aJvX7LTtbsg3AgLs4AM9JOmdqFpcqzgWrGtdw94drS4MXjyfy1vY= X-Received: by 2002:a25:cdc7:0:b0:66f:601f:5296 with SMTP id d190-20020a25cdc7000000b0066f601f5296mr18816714ybf.170.1658949777862; Wed, 27 Jul 2022 12:22:57 -0700 (PDT) MIME-Version: 1.0 References: <838roebivp.fsf@gnu.org> <834jz2bgvr.fsf@gnu.org> <831qu6bcwh.fsf@gnu.org> In-Reply-To: <831qu6bcwh.fsf@gnu.org> From: Paul Pogonyshev Date: Wed, 27 Jul 2022 21:22:46 +0200 Message-ID: Content-Type: multipart/mixed; boundary="00000000000036035905e4ce581b" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000036035905e4ce581b Content-Type: multipart/alternative; boundary="00000000000036035705e4ce5819" --00000000000036035705e4ce5819 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I meant something like what is in the attached patch. The problem is that _everything_ got moved to `...-query-functions', including that part that has nothing to do with querying. Paul On Wed, 27 Jul 2022 at 20:58, Eli Zaretskii wrote: > > 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. > > =E2=80=98save-buffers-kill-emacs=E2=80=99 calls these functions, bu= t =E2=80=98kill-emacs=E2=80=99, > > the low level primitive, does not. See also =E2=80=98kill-emacs-ho= ok=E2=80=99. > > > > 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 no= t > 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 somethin= g > hooked on > > `kill-emacs-query-functions' to `kill-emacs-hook'. That part is suppose= d > 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. > --00000000000036035705e4ce5819 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I meant something like what is in the attached patch. The = problem is that _everything_ got moved to `...-query-functions', includ= ing that part that has nothing to do with querying.

Paul=



On Wed, 27 Jul 2022 at 20:58, Eli Z= aretskii <eliz@gnu.org> wrote:
> From: Paul Po= gonyshev <pogo= nyshev@gmail.com>
> Date: Wed, 27 Jul 2022 19:52:31 +0200
> Cc: 56800@d= ebbugs.gnu.org
>
> Yeah, apparently `kill-emacs' is considered "low-level primit= ive":
>
>=C2=A0 =C2=A0 =C2=A0Functions to call with no arguments to query about = killing Emacs.
>=C2=A0 =C2=A0 =C2=A0If any of these functions returns nil, killing Emac= s is canceled.
>=C2=A0 =C2=A0 =C2=A0=E2=80=98save-buffers-kill-emacs=E2=80=99 calls the= se functions, but =E2=80=98kill-emacs=E2=80=99,
>=C2=A0 =C2=A0 =C2=A0the low level primitive, does not.=C2=A0 See also = =E2=80=98kill-emacs-hook=E2=80=99.
>
> 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 som= ething hooked on
> `kill-emacs-query-functions' to `kill-emacs-hook'. That part i= s supposed to be done unconditionally.

That change was made because the hook can ask questions, which doesn't<= br> work in a daemon session.=C2=A0 So we moved the hook.
--00000000000036035705e4ce5819-- --00000000000036035905e4ce581b Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Followup-to-5bd04ea307-still-have-M-x-kill-emacs-rel.patch" Content-Disposition: attachment; filename="0001-Followup-to-5bd04ea307-still-have-M-x-kill-emacs-rel.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l63zutmf0 RnJvbSBlNzM4YzA2MzEyY2UzMmY5MmFjZDYyY2RhZDlkODM0MjQ1MWJkNzM0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIFBvZ29ueXNoZXYgPHBvZ29ueXNoZXZAZ21haWwuY29t PgpEYXRlOiBXZWQsIDI3IEp1bCAyMDIyIDIxOjIwOjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0g Rm9sbG93dXAgdG8gNWJkMDRlYTMwNzogc3RpbGwgaGF2ZSBgTS14IGtpbGwtZW1hY3MnIHJlbGVh c2UKIGRlc2t0b3AgbG9jawoKLS0tCiBsaXNwL2Rlc2t0b3AuZWwgfCAxMiArKysrKysrKystLS0K IDEgZmlsZSBjaGFuZ2VkLCA5IGluc2VydGlvbnMoKyksIDMgZGVsZXRpb25zKC0pCgpkaWZmIC0t Z2l0IGEvbGlzcC9kZXNrdG9wLmVsIGIvbGlzcC9kZXNrdG9wLmVsCmluZGV4IDg1MGQyYTg2ZWYu LmEwOTMxZTA1M2UgMTAwNjQ0Ci0tLSBhL2xpc3AvZGVza3RvcC5lbAorKysgYi9saXNwL2Rlc2t0 b3AuZWwKQEAgLTc5MSw3ICs3OTEsMTAgQEAgZGVza3RvcC1jbGVhcgogCiA7OyAtLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tCiAodW5sZXNzIG5vbmludGVyYWN0aXZlCi0gIChhZGQtaG9vayAna2lsbC1lbWFj cy1xdWVyeS1mdW5jdGlvbnMgIydkZXNrdG9wLWtpbGwpKQorICAoYWRkLWhvb2sgJ2tpbGwtZW1h Y3MtcXVlcnktZnVuY3Rpb25zICMnZGVza3RvcC1raWxsKQorICA7OyBDZXJ0YWluIHRoaW5ncyBz aG91bGQgYmUgZG9uZSBldmVuIGlmCisgIDs7IGBraWxsLWVtYWNzLXF1ZXJ5LWZ1bmN0aW9ucycg YXJlIG5vdCBjYWxsZWQuCisgIChhZGQtaG9vayAna2lsbC1lbWFjcy1ob29rICMnZGVza3RvcC0t b24ta2lsbCkpCiAKIChkZWZ1biBkZXNrdG9wLWtpbGwgKCkKICAgIklmIGBkZXNrdG9wLXNhdmUt bW9kZScgaXMgbm9uLW5pbCwgZG8gd2hhdCBgZGVza3RvcC1zYXZlJyBzYXlzIHRvIGRvLgpAQCAt ODE4LDEyICs4MjEsMTUgQEAgZGVza3RvcC1raWxsCiAgICAgICAoZmlsZS1lcnJvcgogICAgICAg ICh1bmxlc3MgKHllcy1vci1uby1wICJFcnJvciB3aGlsZSBzYXZpbmcgdGhlIGRlc2t0b3AuICBJ Z25vcmU/ICIpCiAJIChzaWduYWwgKGNhciBlcnIpIChjZHIgZXJyKSkpKSkpCisgIChkZXNrdG9w LS1vbi1raWxsKQorICB0KQorCisoZGVmdW4gZGVza3RvcC0tb24ta2lsbCAoKQogICA7OyBJZiB3 ZSBvd24gaXQsIHdlIGRvbid0IGFueW1vcmUuCiAgICh3aGVuIChlcSAoZW1hY3MtcGlkKSAoZGVz a3RvcC1vd25lcikpCiAgICAgOzsgQWxsb3cgZXhpdGluZyBFbWFjcyBldmVuIGlmIHdlIGNhbid0 IGRlbGV0ZSB0aGUgZGVza3RvcCBmaWxlLgogICAgIChpZ25vcmUtZXJyb3IgJ2ZpbGUtZXJyb3IK LSAgICAgIChkZXNrdG9wLXJlbGVhc2UtbG9jaykpKQotICB0KQorICAgICAgKGRlc2t0b3AtcmVs ZWFzZS1sb2NrKSkpKQogCiA7OyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiAoZGVmdW4gZGVza3RvcC1s aXN0KiAoJnJlc3QgYXJncykKLS0gCjIuMzUuMQoK --00000000000036035905e4ce581b-- From unknown Sun Aug 17 10:19:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Pogonyshev Subject: bug#56800: closed (Re: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###.") Message-ID: References: <83mtctahhu.fsf@gnu.org> X-Gnu-PR-Message: they-closed 56800 X-Gnu-PR-Package: emacs Reply-To: 56800@debbugs.gnu.org Date: Thu, 28 Jul 2022 06:18:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1658989081-4336-1" This is a multi-part message in MIME format... ------------=_1658989081-4336-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #56800: Pointless "Warning: desktop file appears to be in use by PID ###." which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 56800@debbugs.gnu.org. --=20 56800: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D56800 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1658989081-4336-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 56800-done) by debbugs.gnu.org; 28 Jul 2022 06:17:16 +0000 Received: from localhost ([127.0.0.1]:57422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGwpg-00016Y-6H for submit@debbugs.gnu.org; Thu, 28 Jul 2022 02:17:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGwpe-00016J-Tq for 56800-done@debbugs.gnu.org; Thu, 28 Jul 2022 02:17:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGwpZ-0001Y2-Jm; Thu, 28 Jul 2022 02:17:09 -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=5rRP+A6za/PVE5wuuzjwzLoar/lHdEOV7xZA5vNdyzw=; b=cSvziTbO1S17 bNkblGliBCD1vWlRRCbJgfae4xlUe3x/Nr/mJVIliI9iwzPGmveBH5yUKFOSHe0o4QblT/vD0nVRT 3nH2enzxXOi1yZJMuAMG11GLOy+B5VVPv146+G3LAP7KPi55wPUqAnUMgHtriTknQH1npqRuNZVzy TBCYn4GrHb4wbTR5x+EBfNfIsP48sYwsvGaelLEynhguy7XUInQjFW2r9CSw0U9mqq0glshJbr2R/ hli4ZyWW1duCGhYYef8WUv1wlD2hDZDbhoyTAD0w0x6dBTtuIfIkoIZRZP2en3+4UW7ejIUEYLcIk dgobvqvDMyo73n4CYfPrhg==; Received: from [87.69.77.57] (port=4282 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 1oGwpZ-0004K9-2K; Thu, 28 Jul 2022 02:17:09 -0400 Date: Thu, 28 Jul 2022 09:17:17 +0300 Message-Id: <83mtctahhu.fsf@gnu.org> From: Eli Zaretskii To: Paul Pogonyshev In-Reply-To: (message from Paul Pogonyshev on Wed, 27 Jul 2022 21:22:46 +0200) Subject: Re: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." References: <838roebivp.fsf@gnu.org> <834jz2bgvr.fsf@gnu.org> <831qu6bcwh.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56800-done Cc: 56800-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Paul Pogonyshev > Date: Wed, 27 Jul 2022 21:22:46 +0200 > Cc: 56800@debbugs.gnu.org > > I meant something like what is in the attached patch. The problem is that _everything_ got moved to > `...-query-functions', including that part that has nothing to do with querying. Thanks, installed on the emacs-28 release branch. ------------=_1658989081-4336-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jul 2022 16:25:42 +0000 Received: from localhost ([127.0.0.1]:56868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGjqw-0000uP-0F for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:25:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:50762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGjqu-0000uF-2x for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:25:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGjqt-0005PV-RI for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:25:39 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:43536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGjqs-00068Y-3H for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:25:39 -0400 Received: by mail-yb1-xb31.google.com with SMTP id o15so2956678yba.10 for ; Wed, 27 Jul 2022 09:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ncd81vIdG6LlZo2g5bjlIsP4qOquc+5ft82YO4g5wnA=; b=SNa87sEXBzZKo9CgmYOJX5/9wxLOTZxoq8vRt2ZK/+xXDU6qfqinYuoI0q5+oUsGSz +5ZH0vdRCTGl9Kr1YYHbd3pCInDStdV1YdKuWeRvIoz6Ir1qyAWB6ZJBYCF5q2pRK1WW IBT4P1tXIdubFgIOihjg68Fw7uhaRjXGtrUNC1R/o/L031OL2X0I7kfqnLnywYdQI9CX vT7Adx36JnR96cpxbD0nnE8uXM532Fnu38y3e2cYjQKVTL3TMuh0giHIv/r51aXLwesR KKACX3N/uFWbBT+uWnV/zuvLQOkTev6uUPYPbUtA5nyCJfQnO9i8ZTLJhkU9yZ/TRT1V ASyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ncd81vIdG6LlZo2g5bjlIsP4qOquc+5ft82YO4g5wnA=; b=VXg2/doBC1DKQB/AFkVvWi1HKMhMUgYj1tbdAnS5YPGNQL5DvaE6zkc6iNSQyAdarw vhcezhZUHsOHHCUQ9kENFuFI7mcnNpSGiIeaTz3KK0ywDCZ3/U06s07e0wq+Z1BsACjt SY8nyWuW6v7VwWVmDTgo1vQvQ67hGJ6Qh/PI6XiZjxePUMlOpDVNL8RxeJL8eY4/jW8t vQVf7kGvrQBXd+QG6Uhm6hXsXUCQqN7Eky5DrHIBDAosg5xGsm5UX4zpFKd6quWQqT8c L1Iv/bjhGgfTJe0KcKnbCBuJTXmSjXO82+qPdMsD0WrSCwVd4WzwJxA/lZNCXyGeepd7 hnpw== X-Gm-Message-State: AJIora+YVFbYB0nFrRE5qmKzUexuBqbbn3iBsKSmN44IujOCYzdKY1Ln 7T3sUA96f022liRPktLu7sAHbINwyPzhX8O0M/HEqic= X-Google-Smtp-Source: AGRyM1u/Ly7BhgXO6eQwN6g3RTJOYNIMN1mNxrHCYBTM70YzK66ZcOiIQHcUUS8puQU0ZcNCx2GbAl4vXmqFtBnNOCA= X-Received: by 2002:a05:6902:1021:b0:670:c012:7f4e with SMTP id x1-20020a056902102100b00670c0127f4emr18720666ybt.357.1658939135905; Wed, 27 Jul 2022 09:25:35 -0700 (PDT) MIME-Version: 1.0 From: Paul Pogonyshev Date: Wed, 27 Jul 2022 18:25:24 +0200 Message-ID: Subject: Pointless "Warning: desktop file appears to be in use by PID ###." To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000e6536305e4cbdd71" Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=pogonyshev@gmail.com; helo=mail-yb1-xb31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000e6536305e4cbdd71 Content-Type: text/plain; charset="UTF-8" GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.33, cairo version 1.16.0) of 2022-07-26 Practically every time I start up Emacs, I get this pointless warning and a question if I really want to use the desktop file anyway. If there were actually another Emacs running, this warning would be fine, even useful. However, in 95% of cases here it happens because computer was shut down, Emacs crashed etc. In fact, I have just now verified that even if I cleanly `M-x kill-emacs RET' my Emacs and then start a new one, the new still thinks that the old, killed Emacs might still be using the desktop file somehow (i.e. PID is that of the previous Emacs process). The code in `desktop.el' should really check if the process with that PID still exists before claiming that it might be using the desktop file somehow. Paul --000000000000e6536305e4cbdd71 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Vers= ion 2.24.33, cairo version 1.16.0) of 2022-07-26

Practic= ally every time I start up Emacs, I get this pointless warning and a questi= on if I really want to use the desktop file anyway. If there were actually = another Emacs running, this warning would be fine, even useful. However, in= 95% of cases here it happens because computer was shut down, Emacs crashed= etc. In fact, I have just now verified that even if I cleanly `M-x kill-em= acs RET' my Emacs and then start a new one, the new still thinks that t= he old, killed Emacs might still be using the desktop file somehow (i.e. PI= D is that of the previous Emacs process).

The code= in `desktop.el' should really check if the process with that PID still= exists before claiming that it might be using the desktop file somehow.

Paul
--000000000000e6536305e4cbdd71-- ------------=_1658989081-4336-1--