Subject: Re: bug#1687: Bug 1687
From: Juanma Barranquero <[email-masked]>
To: "Relson, David" <[email-masked]>
Cc: [email-masked]
Date: Thu, 29 Jan 2009 16:22:22 +0100

tags 1687 + notabug
quit

On Thu, Jan 29, 2009 at 16:07, Relson, David <[email-masked]> wrote:

> I've revised my .emacs file to include:
>
>   (setq desktop-load-locked-desktop t)
>   (desktop-save-mode 1)
>
> And things seem fine.

It will still ask you when exiting.

If you really don't mind the last Emacs standing to win, you can add
this to your .emacs:

;; slightly tested
(add-hook 'kill-emacs-hook
          (lambda ()
            (when (and desktop-dirname desktop-base-file-name)
              (condition-case nil
                  (delete-file (expand-file-name desktop-base-file-name
                                                 desktop-dirname))
                (error nil)))))

    Juanma