GNU bug report logs - #1226
Desktop holds second Emacs session hostage; C-x C-c doesn't work properly.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Wed, 22 Oct 2008 10:05:05 UTC

Severity: minor

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 1226 <at> debbugs.gnu.org
Subject: bug#1226: Desktop holds second Emacs session hostage; C-x C-c doesn't work properly.
Date: Thu, 23 Oct 2008 09:38:32 +0000
Hi, Glenn!

On Wed, Oct 22, 2008 at 09:12:29PM -0400, Glenn Morris wrote:
> Alan Mackenzie wrote:

> > 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.

> Another choice is of course just to turn off desktop-save-mode, then
> exit.

I suppose so.  You have to have a cool head to think of this, though.

> > This is a bug.

> What should it do instead?

> i) Not turn on desktop-save-mode if you answer no to the initial
> question:

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

> ii) Or should this question offer a third alternative, eg "(q) -
> disable desktop-save-mode for this session"?

> iii) Or should the prompt

>     Directory for desktop file: ~/"

> somehow offer an option to turn off desktop-save-mode?

> iv) Something else?

I think Lawrence Mitchell's suggestion of what should happen is right:
first prompt "save desktop (y/n): ", and after getting a y, prompt for a
directory to save in.

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

> If you try it, you will find you get adequate warning about overwriting
> the existing desktop.

OK.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 14 years and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.