]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/desktop.el (desktop-clear): Skip the daemon's frame (Bug#26912).
authorNoam Postavsky <npostavs@gmail.com>
Mon, 5 Jun 2017 03:54:51 +0000 (23:54 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 5 Jun 2017 04:08:43 +0000 (00:08 -0400)
lisp/desktop.el

index 39dc92fabe2aa7343054cb267fcbfc6c4c56d49a..540d0e3b11d5a8430ae8c373be87466265e00bbe 100644 (file)
@@ -733,6 +733,10 @@ if different)."
        (condition-case err
            (unless (or (eq frame this)
                        (eq frame mini)
+                        ;; Don't delete daemon's initial frame, or
+                        ;; we'll never be able to close the last
+                        ;; client's frame (Bug#26912).
+                        (if (daemonp) (not (frame-parameter frame 'client)))
                        (frame-parameter frame 'desktop-dont-clear))
              (delete-frame frame))
          (error