Subject: 24.3.92; Bad interaction between "emacs --daemon" and "desktop-save-mode"

From: Benjamin Riefenstahl <[email-masked]>
Date: Sun, 06 Jul 2014 18:36:19 +0200

Receipe from a command line:

  mkdir /tmp/t
  cd /tmp/t
  cat > .emacs <<EOF
    (add-to-list 'window-system-default-frame-alist '(nil . ((menu-bar-lines . 0))))
    (desktop-save-mode 1)
  EOF
  HOME=$PWD emacs --daemon
  emacsclient -n -c

Now in Emacs execute the commands 

  desktop-save
  kill-emacs

Restart Emacs with

  HOME=$PWD emacs --daemon

The menu bar has disappeared and a get an error message:

  Error (frameset): Wrong type argument: number-or-marker-p, nil

-----------------
In GNU Emacs 24.3.92.1 (i686-pc-linux-gnu, GTK+ Version 3.10.9)
 of 2014-06-27 on justinian
Windowing system distributor `Fedora Project', version 11.0.11404000
Configured using:
 `configure --prefix=/usr/local/emacs-24.3.92'

Important settings:
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix