unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Peter Ludemann <peter.ludemann@gmail.com>
Cc: 55560@debbugs.gnu.org
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	[thread overview]
Message-ID: <837d6e8y27.fsf@gnu.org> (raw)
In-Reply-To: <CAHjfyZ12Jx74=kRVL8=xVtVN5FVspEx6P0EMfsyty4AjymVbzw@mail.gmail.com> (message from Peter Ludemann on Sat, 21 May 2022 12:16:50 -0700)

> From: Peter Ludemann <peter.ludemann@gmail.com>
> 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.





  reply	other threads:[~2022-05-21 19:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-21 19:16 bug#55560: 29.0.50; kill-emacs on daemon doesn't remove ~/.emacs.d/.emacs.desktop.lock Peter Ludemann
2022-05-21 19:50 ` Eli Zaretskii [this message]
2022-05-21 20:43   ` Peter Ludemann
2022-05-22  5:22     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837d6e8y27.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=55560@debbugs.gnu.org \
    --cc=peter.ludemann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).