I use Emacs 24.5.1
on OS X in terminal mode.
I intend to use desktop-save-mode
to save and restore window layout (i.e. positions of buffer windows) upon exiting and starting Emacs
.
From this answer and its comments, people suggest that recent versions of Emacs
does save and restore window layout when desktop-save-mode
is enabled. However, when I exit Emacs
with two side-by-side windows each containing a file buffer, only the last active buffer (the one where the cursor last rested at) is restored upon restarting Emacs
.
My relevant configurations are:
(setq desktop-auto-save-timeout nil
desktop-save 'ask-if-new
desktop-dirname "./"
desktop-path (list desktop-dirname)
desktop-load-locked-desktop nil)
(desktop-save-mode 1)
I've checked the value of variable desktop-restore-frames
, and Emacs reports "Its value is t", and its description says "When non-nil, save and restore the frame and window configuration".
I also use perspective.el, but I am not sure if it is related to the problem.
I wonder if the problem is caused by some conflict with other package/settings, and if possible, how do I detect and resolve such conflict.
M-x report-emacs-bug
.desktop-save-mode
saves the window layout only on Emacs version 24.4 and higher, and not in terminal mode.