aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2002-03-10 16:29:34 +0000
committerJan Djärv2002-03-10 16:29:34 +0000
commitca57f55d6f96265d73b4dfadcc82fc58c934e6be (patch)
tree8b9504ab38aee5d9d77f735519891261f3ddfae9
parent941a391a0b3a8c3a663633b913395bd29e5e49dd (diff)
downloademacs-ca57f55d6f96265d73b4dfadcc82fc58c934e6be.tar.gz
emacs-ca57f55d6f96265d73b4dfadcc82fc58c934e6be.zip
(command-line): Add call to emacs-session-restore
-rw-r--r--lisp/startup.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index b2f60380356..91364af7688 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -236,7 +236,8 @@ This is normally copied from `default-directory' when Emacs starts.")
236 ("--cursor-color" 1 x-handle-switch cursor-color) 236 ("--cursor-color" 1 x-handle-switch cursor-color)
237 ("--vertical-scroll-bars" 0 x-handle-switch vertical-scroll-bars t) 237 ("--vertical-scroll-bars" 0 x-handle-switch vertical-scroll-bars t)
238 ("--line-spacing" 1 x-handle-numeric-switch line-spacing) 238 ("--line-spacing" 1 x-handle-numeric-switch line-spacing)
239 ("--border-color" 1 x-handle-switch border-width)) 239 ("--border-color" 1 x-handle-switch border-width)
240 ("--smid" 1 x-handle-smid))
240 "Alist of X Windows options. 241 "Alist of X Windows options.
241Each element has the form 242Each element has the form
242 (NAME NUMARGS HANDLER FRAME-PARAM VALUE) 243 (NAME NUMARGS HANDLER FRAME-PARAM VALUE)
@@ -1028,7 +1029,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
1028 (command-line-1 (cdr command-line-args)) 1029 (command-line-1 (cdr command-line-args))
1029 1030
1030 ;; If -batch, terminate after processing the command options. 1031 ;; If -batch, terminate after processing the command options.
1031 (if noninteractive (kill-emacs t))) 1032 (if noninteractive (kill-emacs t))
1033
1034 ;; Run emacs-session-restore (session management) if started by
1035 ;; the session manager and we have a session manager connection.
1036 (if (and (stringp x-session-previous-id) (stringp x-session-id))
1037 (emacs-session-restore)))
1032 1038
1033(defcustom initial-scratch-message (purecopy "\ 1039(defcustom initial-scratch-message (purecopy "\
1034;; This buffer is for notes you don't want to save, and for Lisp evaluation. 1040;; This buffer is for notes you don't want to save, and for Lisp evaluation.