Subject: bug#1226: closed (Re: bug#1226: Desktop holds second Emacs session hostage; C-x C-c doesn't work properly.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 08 Jul 2011 23:19:02 +0000

Your bug report

#1226: Desktop holds second Emacs session hostage; C-x C-c doesn't work properly.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
1226: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1226
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#1226: Desktop holds second Emacs session hostage; C-x C-c doesn't work properly.
From: Juanma Barranquero <[email-masked]>
To: Alan Mackenzie <[email-masked]>
Cc: Glenn Morris <[email-masked]>, [email-masked]
Date: Sat, 9 Jul 2011 01:18:03 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On Fri, Jul 8, 2011 at 22:48, Alan Mackenzie <[email-masked]> wrote:

> That's perfect!  Thanks.

I'm closing this one, then.

Thanks,

    Juanma

>From [email-masked] Wed Oct 22 02:57:47 2008
Date: Wed, 22 Oct 2008 10:07:13 +0000
To: [email-masked]
Subject: Desktop holds second Emacs session hostage;
	C-x C-c doesn't work properly.
From: Alan Mackenzie <[email-masked]>

(i) With desktop enabled, start emacs.

(ii) Start a second emacs session.

Emacs2 detects Emacs1 and the danger of contention over .emacs.desktop.
It prompts thusly:

    "Warning: desktop file appears to be in use by PID 3616.
     Using it may cause conflicts.  Use it anyway? (y or n)"

(iii) Type n.

(iv) Attempt C-c C-x.

Emacs2 decides, because desktop is "enabled", that it wants to save a
desktop file, and prompts:

    "Directory for desktop file: ~/"

At this point, C-g aborts the "end Emacs" command.  One now has the
unpleasant choice of killing Emacs2 from the (operating system) console
or typing in some random directory to dump the empty .emacs.desktop to.

This is a bug.

Even worse, accepting the prompt's default directory, ~/, might
overwrite the real .emacs.desktop.

-- 
Alan Mackenzie (Nuremberg, Germany).