Subject: Re: bug#21833: 24.4; desktop-kill, which is interactive, is in kill-emacs-hook

From: Juanma Barranquero <[email-masked]>
Date: Fri, 13 Nov 2015 01:27:32 +0100

My last comment on this issue (don't want to drag it further):

When the OP says;

  emacs -Q
  M-x desktop-save-mode
  C-h v kill-emacs-hook
  M-x kill-emacs

  Expected behavior: emacs is killed.
  Actual behavior: asked "Save desktop? (y or n)"​

I say:

  emacs -Q
  (require 'emacs-lock) <C-x C-e>
  (emacs-lock-mode 'exit) <C-x C-e>
  M-x kill-emacs <RET>

  Expected behavior: emacs is killed ???
  Actual behavior: => Emacs cannot exit because buffer "*scratch*" is locked

Because I use emacs-lock and I certainly wouldn't expect it to be killed.