From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs 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 Message-ID: <20081023093832.GD2666@muc.de> References: <20081022100713.GC924@muc.de> Reply-To: Alan Mackenzie , 1226@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224755429 17176 80.91.229.12 (23 Oct 2008 09:50:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 09:50:29 +0000 (UTC) Cc: 1226@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 11:51:29 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kswqe-000669-Fc for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Oct 2008 11:51:20 +0200 Original-Received: from localhost ([127.0.0.1]:55342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KswpY-0003Wb-NG for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Oct 2008 05:50:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KswpT-0003VO-1w for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 05:50:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KswpR-0003Tv-Lw for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 05:50:06 -0400 Original-Received: from [199.232.76.173] (port=38879 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KswpR-0003Tg-CB for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 05:50:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33960) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KswpQ-00031C-RB for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2008 05:50:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9N9o19X006242; Thu, 23 Oct 2008 02:50:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9N9Z3r1000351; Thu, 23 Oct 2008 02:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 23 Oct 2008 09:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1226 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1226-submit@emacsbugs.donarmstrong.com id=B1226.122475414131597 (code B ref 1226); Thu, 23 Oct 2008 09:35:03 +0000 Original-Received: (at 1226) by emacsbugs.donarmstrong.com; 23 Oct 2008 09:29:01 +0000 Original-Received: from mail.muc.de (qmailr@colin.muc.de [193.149.48.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9N9SsMu031591 for <1226@emacsbugs.donarmstrong.com>; Thu, 23 Oct 2008 02:28:56 -0700 Original-Received: (qmail 59510 invoked by uid 3782); 23 Oct 2008 09:28:53 -0000 Original-Received: from acm.muc.de (pD9E53152.dip.t-dialin.net [217.229.49.82]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 23 Oct 2008 11:28:52 +0200 Original-Received: (qmail 3230 invoked by uid 1000); 23 Oct 2008 09:38:32 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 23 Oct 2008 05:50:06 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21825 Archived-At: 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).