Commit e391d887 authored by Ivan Shmakov's avatar Ivan Shmakov

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
parent 17285446
......@@ -14,6 +14,9 @@
inhibit-point-motion-hooks in addition to inhibit-read-only.
(Bug#18246)
* desktop.el (desktop-read): Do not call desktop-clear when no
desktop file is found. (Bug#18371)
2015-01-17 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/eieio-core.el (eieio--class-constructor): Rename from
......
......@@ -1191,7 +1191,6 @@ Using it may cause conflicts. Use it anyway? " owner)))))
(desktop-auto-save-enable)
t))
;; No desktop file found.
(desktop-clear)
(let ((default-directory desktop-dirname))
(run-hooks 'desktop-no-desktop-file-hook))
(message "No desktop file.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment