aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-06-21 15:25:56 +0800
committerChong Yidong2012-06-21 15:25:56 +0800
commit6b67c0d4c9f275dcf2cc10efd356c98e8f61ae55 (patch)
tree5aac08ca4ddf17843e9107fde5954829fe0e9f92
parente76f0800d2ceef239e8db3c2f81c6b71d4c70302 (diff)
downloademacs-6b67c0d4c9f275dcf2cc10efd356c98e8f61ae55.tar.gz
emacs-6b67c0d4c9f275dcf2cc10efd356c98e8f61ae55.zip
* desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/desktop.el4
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4d130250dcf..fb710374e18 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,7 @@
2 2
3 * desktop.el (desktop-read): Don't prompt if daemon (Bug#11674). 3 * desktop.el (desktop-read): Don't prompt if daemon (Bug#11674).
4 (desktop-path): Remove . from the default value (Bug#10977). 4 (desktop-path): Remove . from the default value (Bug#10977).
5 (desktop-read): Use user-emacs-directory if desktop-path is nil.
5 6
62012-06-20 Chong Yidong <cyd@gnu.org> 72012-06-20 Chong Yidong <cyd@gnu.org>
7 8
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 2fd9d7f10ad..2c2106e18b7 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -966,8 +966,8 @@ It returns t if a desktop file was loaded, nil otherwise."
966 (and dirs (car dirs))) 966 (and dirs (car dirs)))
967 ;; If not found and `desktop-path' is non-nil, use its first element. 967 ;; If not found and `desktop-path' is non-nil, use its first element.
968 (and desktop-path (car desktop-path)) 968 (and desktop-path (car desktop-path))
969 ;; Default: Home directory. 969 ;; Default: .emacs.d.
970 "~")))) 970 user-emacs-directory))))
971 (if (file-exists-p (desktop-full-file-name)) 971 (if (file-exists-p (desktop-full-file-name))
972 ;; Desktop file found, but is it already in use? 972 ;; Desktop file found, but is it already in use?
973 (let ((desktop-first-buffer nil) 973 (let ((desktop-first-buffer nil)