Commit 1e4f6cec authored by Jan Djärv's avatar Jan Djärv
Browse files

(emacs-session-restore): Take previous id as an argument.

parent 70646cf0
2002-03-12 Jan D. <>
* term/x-win.el (emacs-session-restore): Take previous id as
an argument.
* startup.el (command-line): Must check that x-session-previous-id
is bound also, for non-X platforms.
2002-03-12 Gerd Moellmann <>
* emacs-lisp/cl-indent.el (lisp-loop-keyword-indentation)
......@@ -290,11 +290,11 @@ that it should abort the window system shutdown."
(kill-buffer buf)
(defun emacs-session-restore ()
(defun emacs-session-restore (previous-session-id)
"Restore the Emacs session if started by a session manager.
The file saved by `emacs-session-save' is evaluated and deleted if it
(let ((filename (emacs-session-filename x-session-previous-id)))
(let ((filename (emacs-session-filename previous-session-id)))
(when (file-exists-p filename)
(load-file filename)
(delete-file filename)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment