Mercurial > emacs
changeset 43866:9ec4ee6f4529
(emacs-session-restore): Take previous id as an argument.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Tue, 12 Mar 2002 19:14:24 +0000 |
parents | bb2729709a8a |
children | fdcc07ad8e45 |
files | lisp/term/x-win.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/term/x-win.el Tue Mar 12 19:13:52 2002 +0000 +++ b/lisp/term/x-win.el Tue Mar 12 19:14:24 2002 +0000 @@ -290,11 +290,11 @@ (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)