]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): Must check that x-session-previous-id
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 12 Mar 2002 19:13:52 +0000 (19:13 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 12 Mar 2002 19:13:52 +0000 (19:13 +0000)
is bound also, for non-X platforms.

lisp/startup.el

index 91364af76887c5355ce2a478a6647f46813ae3c1..09aaba6e2be0dd23403f55e54fdb23449567169b 100644 (file)
@@ -1033,8 +1033,8 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
 
   ;; Run emacs-session-restore (session management) if started by
   ;; the session manager and we have a session manager connection.
-  (if (and (stringp x-session-previous-id) (stringp x-session-id))
-      (emacs-session-restore)))
+  (if (and (boundp 'x-session-previous-id) (stringp x-session-previous-id))
+      (emacs-session-restore x-session-previous-id)))
 
 (defcustom initial-scratch-message (purecopy "\
 ;; This buffer is for notes you don't want to save, and for Lisp evaluation.