diff options
| author | Jan Djärv | 2002-03-12 19:15:06 +0000 |
|---|---|---|
| committer | Jan Djärv | 2002-03-12 19:15:06 +0000 |
| commit | 1e4f6cec8245212941b364acd952ab8651dcd065 (patch) | |
| tree | f6e35a9b7191e847a19084cc62cc284becb93028 | |
| parent | 70646cf0fc77aeeb6dbba72a84e51d7bc0fe8ec3 (diff) | |
| download | emacs-1e4f6cec8245212941b364acd952ab8651dcd065.tar.gz emacs-1e4f6cec8245212941b364acd952ab8651dcd065.zip | |
(emacs-session-restore): Take previous id as an argument.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0fc898b4df6..c6c6dfec84f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2002-03-12 Jan D. <Jan.Djarv@mbox200.swipnet.se> | ||
| 2 | |||
| 3 | * term/x-win.el (emacs-session-restore): Take previous id as | ||
| 4 | an argument. | ||
| 5 | |||
| 6 | * startup.el (command-line): Must check that x-session-previous-id | ||
| 7 | is bound also, for non-X platforms. | ||
| 8 | |||
| 1 | 2002-03-12 Gerd Moellmann <gerd@gnu.org> | 9 | 2002-03-12 Gerd Moellmann <gerd@gnu.org> |
| 2 | 10 | ||
| 3 | * emacs-lisp/cl-indent.el (lisp-loop-keyword-indentation) | 11 | * emacs-lisp/cl-indent.el (lisp-loop-keyword-indentation) |
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." | |||
| 290 | (kill-buffer buf) | 290 | (kill-buffer buf) |
| 291 | cancel-shutdown)))) | 291 | cancel-shutdown)))) |
| 292 | 292 | ||
| 293 | (defun emacs-session-restore () | 293 | (defun emacs-session-restore (previous-session-id) |
| 294 | "Restore the Emacs session if started by a session manager. | 294 | "Restore the Emacs session if started by a session manager. |
| 295 | The file saved by `emacs-session-save' is evaluated and deleted if it | 295 | The file saved by `emacs-session-save' is evaluated and deleted if it |
| 296 | exists." | 296 | exists." |
| 297 | (let ((filename (emacs-session-filename x-session-previous-id))) | 297 | (let ((filename (emacs-session-filename previous-session-id))) |
| 298 | (when (file-exists-p filename) | 298 | (when (file-exists-p filename) |
| 299 | (load-file filename) | 299 | (load-file filename) |
| 300 | (delete-file filename) | 300 | (delete-file filename) |