unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1226: Desktop holds second Emacs session hostage; C-x C-c doesn't work properly.
@ 2008-10-22 10:07 Alan Mackenzie
  2008-10-22 11:12 ` Lawrence Mitchell
  2008-10-23  1:12 ` Glenn Morris
  0 siblings, 2 replies; 10+ messages in thread
From: Alan Mackenzie @ 2008-10-22 10:07 UTC (permalink / raw)
  To: bug-gnu-emacs

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







^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-07-08 23:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22 10:07 bug#1226: Desktop holds second Emacs session hostage; C-x C-c doesn't work properly Alan Mackenzie
2008-10-22 11:12 ` Lawrence Mitchell
2008-10-22 12:48   ` Alan Mackenzie
2008-10-23  1:12 ` Glenn Morris
2008-10-23  1:15   ` Glenn Morris
2008-10-23  9:38   ` Alan Mackenzie
2008-10-23 19:25     ` Glenn Morris
2011-07-06  2:08     ` Juanma Barranquero
2011-07-08 20:48       ` Alan Mackenzie
2011-07-08 23:18         ` Juanma Barranquero

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).