emacs24 - Emacs desktop-save-mode error -
i'm not clear if should here or in superuser, here goes.
i'm trying use desk top package latest emacs. i've added (desktop-save-mode 1) .emacs when starting emacs getting following error.
error (frameset): wrong type argument: number-or-marker-p, nil
i'm bit of loss @ start debugging , google being unhelpful.
any ideas?
stack trace added requested
debugger entered--lisp error: (wrong-type-argument number-or-marker-p nil) 2 +(nil 80 -1) 3 frameset-move-onscreen(#<frame f1 0xb53310> t) 4 frameset--restore-frame(((tty-type . "xterm-256color") (tty . "/dev/tty") (display-type . color) (background-mode . dark) (foreground-color . "#808080") (cursor-color . "#808080") (background-col$ 5 #[0 "\307\306@\236a\211a^a@\205^m^@\211\310\302!\203^[^@\302\306@\305\"\202^\^@\302\311\211\312^c!\203*^@\311^v \202j^@\313\311\314\"\314\306@\236a=\203=^@\311^v \202j^@\314\313\311\314\"b\211^v $ 6 funcall(#[0 "\307\306@\236a\211a^a@\205^m^@\211\310\302!\203^[^@\302\306@\305\"\202^\^@\302\311\211\312^c!\203*^@\311^v \202j^@\313\311\314\"\314\306@\236a=\203=^@\311^v \202j^@\314\313\311\314\"$ 7 frameset-restore([frameset 1 (21031 10481 847348 292000) (desktop . "206") "shomer@rubydev" nil nil ((((tty-type . "xterm-256color") (tty . "/dev/tty") (display-type . color) (background-mode . d$ 8 (progn (frameset-restore desktop-saved-frameset :reuse-frames desktop-restore-reuses-frames :force-display desktop-restore-in-current-display :force-onscreen desktop-restore-forces-onscreen)) 9 (if (desktop-restoring-frameset-p) (progn (frameset-restore desktop-saved-frameset :reuse-frames desktop-restore-reuses-frames :force-display desktop-restore-in-current-display :force-onscreen de$ 10 desktop-restore-frameset() 11 (if (and owner (memq desktop-load-locked-desktop (quote (nil ask))) (or (null desktop-load-locked-desktop) (daemonp) (not (y-or-n-p (format "warning: desktop file appears in use pid %s.\$ 12 (let ((desktop-first-buffer nil) (desktop-buffer-ok-count 0) (desktop-buffer-fail-count 0) (owner (desktop-owner)) (desktop-save nil)) (if (and owner (memq desktop-load-locked-desktop (quote (nil$ 13 (if (file-exists-p (desktop-full-file-name)) (let ((desktop-first-buffer nil) (desktop-buffer-ok-count 0) (desktop-buffer-fail-count 0) (owner (desktop-owner)) (desktop-save nil)) (if (and owner $ 14 (if noninteractive nil (setq desktop-dirname (file-name-as-directory (expand-file-name (or (and (< 0 (length dirname)) dirname) (let ((dirs desktop-path)) (while (and dirs ...) (setq dirs ...)) ($ 15 desktop-read() 16 (progn (desktop-read) (desktop-auto-save-set-timer) (setq inhibit-startup-screen t)) 17 (if desktop-save-mode (progn (desktop-read) (desktop-auto-save-set-timer) (setq inhibit-startup-screen t))) 18 (closure (auto-insert desktop-buffer-locals desktop-buffer-major-mode desktop-buffer-fail-count desktop-buffer-ok-count desktop-first-buffer t) nil (let ((key "--no-desktop")) (if (member key com$ 19 run-hooks(after-init-hook) 20 command-line() 21 normal-top-level()
i have same problem. managed fix setting
(setq desktop-restore-frames t) (setq desktop-restore-in-current-display t) (setq desktop-restore-forces-onscreen nil)
in init.el
Comments
Post a Comment