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.devel Subject: Re: How to stop desktop.lock file creation Date: Fri, 25 Mar 2022 09:34:13 +0300 Message-ID: <838rsyczh6.fsf@gnu.org> References: <1843424395.177680.1648161239137@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30205"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 25 07:37:09 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nXdZM-0007lE-Q3 for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Mar 2022 07:37:08 +0100 Original-Received: from localhost ([::1]:48838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXdZL-0005kp-EQ for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Mar 2022 02:37:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXdWg-0004LG-UJ for emacs-devel@gnu.org; Fri, 25 Mar 2022 02:34:23 -0400 Original-Received: from [2001:470:142:3::e] (port=33420 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXdWg-00044Z-LB; Fri, 25 Mar 2022 02:34:22 -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=sNfSJ7xalRRCEnNEfvJxFiNypdvjk0O8sqDi0Ccv2QI=; b=pWwHtP7p2CrX z/Rg3S5Kknm1Zm/vesbncloFLmgw+bPGwYYOisjvDu/buw2vhjsPUs8NgpxCVNYQXbGz+ZwEY2s97 gxfme74OUoEvtYNvO7x3CWPEeJ2RiCpxetPEHlpSF79upQL9ikblMLU2pVgSGAq/kzlhKlOwb6oTH H8vvL64O/wbyvuauHE98+U0IFJ2EFeqI4M7/JUSqDYow9F3y3xv9lLImhhw05LfHC8ruqpOznPmTg /scU/6q/dDyqqPj9g7Q9lBzfceyiDX2LQrAk5hIq0YHOUJagZ542DgE14yrSa5wQHCsOEBzA600UB Lqg4ip5r0d1uu8Lc3iiwEA==; Original-Received: from [87.69.77.57] (port=3007 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 1nXdWe-0007H0-7H; Fri, 25 Mar 2022 02:34:22 -0400 In-Reply-To: <1843424395.177680.1648161239137@mail1.libero.it> (message from Angelo Graziosi on Thu, 24 Mar 2022 23:33:59 +0100 (CET)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287434 Archived-At: > Date: Thu, 24 Mar 2022 23:33:59 +0100 (CET) > From: Angelo Graziosi > > It is very annoying that each time I forgot to close Emacs when logout from OS I have to delete that file manually at the next start... > > Please, let me know what to add to the init.el file to avoid that Emacs creates that file... Why do you need to delete the desktop lock file? If you are annoyed by the question Emacs asks when you invoke it the next time, you can simply customize desktop-load-locked-desktop to the value t, then it will not ask any questions. If there's some other problem with that lock file, please describe it, so we understand what problem you are trying to solve.