diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2002-03-12 19:15:06 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2002-03-12 19:15:06 +0000 |
commit | 1e4f6cec8245212941b364acd952ab8651dcd065 (patch) | |
tree | f6e35a9b7191e847a19084cc62cc284becb93028 /lisp/term | |
parent | 70646cf0fc77aeeb6dbba72a84e51d7bc0fe8ec3 (diff) | |
download | emacs-1e4f6cec8245212941b364acd952ab8651dcd065.tar.gz |
(emacs-session-restore): Take previous id as an argument.
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/x-win.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 11c7e154d59..406cc5a3eae 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -290,11 +290,11 @@ that it should abort the window system shutdown." (kill-buffer buf) cancel-shutdown)))) -(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 exists." - (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) |