Subject: Re: bug#26912: 25.2; desktop-clear with emacs as daemon results in error on C-x 5 0

From: [email-masked]
Date: Mon, 05 Jun 2017 00:34:56 -0400

tags 26912 fixed
close 26912 26.1
quit

Alex Branham <[email-masked]> writes:

> Running Emacs as a daemon, call desktop-clear, then later try to close
> the last frame with C-x 5 0, it results in an error ("Attempt to
> delete the sole visible or iconified frame") and the frame does not
> close.
>
> I can reproduce it with:
>
> emacs -Q --daemon
> emacsclient -nc
> M-x desktop-clear RET
> C-x 5 0
>
> I'm using Emacs 25.2 on a linux system.

Thanks for reporting, fixed in master [1: 24f011d56a].

[1: 24f011d56a]: 2017-06-05 00:08:43 -0400
  * lisp/desktop.el (desktop-clear): Skip the daemon's frame (Bug#26912).
  http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=24f011d56aec273847181f9befbad491deb2f67e