Subject: Re: bug#18371: desktop-read: do not (desktop-clear) when no .emacs.desktop file is found
From: Ivan Shmakov <[email-masked]>
To: [email-masked]
Date: Fri, 23 Jan 2015 15:29:38 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 25.1

>>>>> Ivan Shmakov <[email-masked]> writes:

[…]

 > Given that desktop-read does /not/ call desktop-clear in the
 > “.emacs.desktop is found” branch, and that in that case, desktop-read
 > /appends/ to the current session (rather than /replacing/ it), I see
 > no good reason to call desktop-clear from desktop-read in the other
 > case, either.

 > Please thus consider the (trivial) patch MIMEd.

	Pushed; closing.

commit e391d88705efd3897996ed81e1f37b936dc3aa21
CommitDate: 2015-01-17 19:35:22 +0000

    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

-- 
FSF associate member #7257  np. Liar — Motorhead        … 3013 B6A0 230E 334A