Such a message in the "Warnings" window. "Frameset" I think refers to the .emacs.desktop file. I got this message when Emacs in daemon mode restored the desktop. There is no such message when running the GUI Emacs.

What could be wrong? How to debug it?

(defun herman/try-read-desktop ()
    (when (desktop-save-mode t)
          ; your init code here
          (message "Inside server-after-make-frame-hook")
          ;; (setq desktop-save-mode t)

(add-hook 'server-after-make-frame-hook 'herman/try-read-desktop)
  • (setq toggle-debug-on-error t) first, and then add the backtrace to your question.
    – phils
    Jul 18, 2023 at 1:42
  • It looks like the error will be coming from (desktop-read) though, so you can also test just calling that directly.
    – phils
    Jul 18, 2023 at 1:46
  • 2
    Apologies; that should be (setq debug-on-error t). I'd written M-x toggle-debug-on-error initially but realised you needed it set before you could interact with Emacs, and I messed up the edit.
    – phils
    Jul 18, 2023 at 3:08
  • You can also do M-x debug-on-entry desktop-read, if you want to go through it carefully.
    – Drew
    Jul 18, 2023 at 3:39

1 Answer 1


I found the answer at https://stackoverflow.com/questions/18612742/emacs-desktop-save-mode-error#comment47963002_26546872

(setq desktop-restore-forces-onscreen nil)

  • thanks. I needed that. I hadn't found the linked source.
    – RichieHH
    Jan 17 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.