From 6b67c0d4c9f275dcf2cc10efd356c98e8f61ae55 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 21 Jun 2012 15:25:56 +0800 Subject: [PATCH] * desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil. --- lisp/ChangeLog | 1 + lisp/desktop.el | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4d130250dc..fb710374e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,7 @@ * desktop.el (desktop-read): Don't prompt if daemon (Bug#11674). (desktop-path): Remove . from the default value (Bug#10977). + (desktop-read): Use user-emacs-directory if desktop-path is nil. 2012-06-20 Chong Yidong diff --git a/lisp/desktop.el b/lisp/desktop.el index 2fd9d7f10a..2c2106e18b 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -966,8 +966,8 @@ It returns t if a desktop file was loaded, nil otherwise." (and dirs (car dirs))) ;; If not found and `desktop-path' is non-nil, use its first element. (and desktop-path (car desktop-path)) - ;; Default: Home directory. - "~")))) + ;; Default: .emacs.d. + user-emacs-directory)))) (if (file-exists-p (desktop-full-file-name)) ;; Desktop file found, but is it already in use? (let ((desktop-first-buffer nil) -- 2.39.2