aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorIvan Shmakov2015-01-17 19:12:45 +0000
committerIvan Shmakov2015-01-17 19:35:22 +0000
commite391d88705efd3897996ed81e1f37b936dc3aa21 (patch)
treeca5aa1c50a118e6c27c330d792c324b8362bc523 /lisp
parent172854461531ac7ad11b4490adc148e7a42a9fb3 (diff)
downloademacs-e391d88705efd3897996ed81e1f37b936dc3aa21.tar.gz
emacs-e391d88705efd3897996ed81e1f37b936dc3aa21.zip
Do not clear the session when trying to read a non-existent desktop file.
* lisp/desktop.el (desktop-read): Do not call desktop-clear when no desktop file is found. Fixes: debbugs:18371
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/desktop.el1
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d894b1ffca0..60732e781fc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -14,6 +14,9 @@
14 inhibit-point-motion-hooks in addition to inhibit-read-only. 14 inhibit-point-motion-hooks in addition to inhibit-read-only.
15 (Bug#18246) 15 (Bug#18246)
16 16
17 * desktop.el (desktop-read): Do not call desktop-clear when no
18 desktop file is found. (Bug#18371)
19
172015-01-17 Stefan Monnier <monnier@iro.umontreal.ca> 202015-01-17 Stefan Monnier <monnier@iro.umontreal.ca>
18 21
19 * emacs-lisp/eieio-core.el (eieio--class-constructor): Rename from 22 * emacs-lisp/eieio-core.el (eieio--class-constructor): Rename from
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 3845f940d02..c355d7f080f 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1191,7 +1191,6 @@ Using it may cause conflicts. Use it anyway? " owner)))))
1191 (desktop-auto-save-enable) 1191 (desktop-auto-save-enable)
1192 t)) 1192 t))
1193 ;; No desktop file found. 1193 ;; No desktop file found.
1194 (desktop-clear)
1195 (let ((default-directory desktop-dirname)) 1194 (let ((default-directory desktop-dirname))
1196 (run-hooks 'desktop-no-desktop-file-hook)) 1195 (run-hooks 'desktop-no-desktop-file-hook))
1197 (message "No desktop file.") 1196 (message "No desktop file.")