Subject: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon

From: Teemu Likonen <[email-masked]>
Date: Mon, 01 Jun 2009 15:36:27 +0300

When Emacs daemon is running and a client frame is active, executing
delete-other-frames command (C-x 5 1) kills the daemon and makes the
Emacs session just a normal server session which requires that one frame
exists. To reproduce:

 1. Start Emacs daemon:

        emacs -Q --daemon

 2. Start a client session:

        emacsclient -c

 3. Type "C-x 5 1" and then try to close the frame with "C-x 5 0". The
    following message is displayed in the minibuffer:

        Attempt to delete the sole visible or iconified frame

 4. Forcibly close the frame with "C-x C-c" or window manager's close
    button.

 5. See the system's process list with "ps" command. There is no Emacs
    process anymore.

In GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2009-06-01 on mithlond
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--prefix=/home/dtw/local''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: fi_FI.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  ergo-movement-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t