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: Wed, 22 Oct 2008 12:48:23 +0000 Message-ID: <20081022124823.GD924@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 1224679831 32234 80.91.229.12 (22 Oct 2008 12:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 12:50:31 +0000 (UTC) Cc: 1226@emacsbugs.donarmstrong.com To: Lawrence Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 14:51:23 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 1KsdBK-0004IR-Tt for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 14:51:23 +0200 Original-Received: from localhost ([127.0.0.1]:41639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsdAF-0008EH-7z for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 08:50:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsdAB-0008Dk-E4 for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsdA8-0008DQ-TM for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:10 -0400 Original-Received: from [199.232.76.173] (port=49764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsdA8-0008DJ-LU for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59090) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsdA8-0001xo-JF for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:09 -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 m9MCo10K013391; Wed, 22 Oct 2008 05:50:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9MCj25N012226; Wed, 22 Oct 2008 05:45:02 -0700 X-Loop: don@donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 22 Oct 2008 12:45:02 +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.122467914110971 (code B ref 1226); Wed, 22 Oct 2008 12:45:02 +0000 Original-Received: (at 1226) by emacsbugs.donarmstrong.com; 22 Oct 2008 12:39: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 m9MCcrXL010954 for <1226@emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 05:38:55 -0700 Original-Received: (qmail 94565 invoked by uid 3782); 22 Oct 2008 12:38:52 -0000 Original-Received: from acm.muc.de (pD9E5206A.dip.t-dialin.net [217.229.32.106]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 22 Oct 2008 14:38:49 +0200 Original-Received: (qmail 6105 invoked by uid 1000); 22 Oct 2008 12:48:24 -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: Wed, 22 Oct 2008 08:50:10 -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:21781 Archived-At: On Wed, Oct 22, 2008 at 12:12:28PM +0100, Lawrence Mitchell wrote: > Alan Mackenzie wrote: > > (i) With desktop enabled, start emacs. > > (ii) Start a second emacs session. [ .... ] > > 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. > I cannot reproduce with the following sequence to enable desktop: > ;; start an emacs that creates a desktop file and quit > $ emacs -Q --eval '(progn (setq desktop-path (list "/tmp/")) > (desktop-save-mode 1) (desktop-read) (dired "/tmp/") > (save-buffers-kill-emacs))' > ;; now start an emacs to read the desktop file (acquiring a lock) > $ emacs -Q --eval '(progn (setq desktop-path (list "/tmp/")) > (desktop-save-mode 1) (desktop-read))' & > ;; start a second emacs > $ emacs -Q --eval '(progn (setq desktop-path (list "/tmp/")) > (desktop-save-mode 1) (desktop-read))' > ;; This one prompts > Warning: desktop file appears to be in use by PID XXXXX. > Using it may cause conflicts. Use it anyway? (y or n) > ;; I answer "n", the desktop file is not loaded. > ;; Now I do save-buffers-kill-emacs and am asked: > Save desktop? (y or n) > ;; I hit "n", the desktop is not saved and Emacs quits as > expected. > How have you enabled desktop in your emacs session to produce > this problem? Sorry, I should have said this. With a .emacs containing exactly one line: (desktop-save-mode 1) and with no existing .emacs.desktop, I started Emacs, visited two files, did M-x desktop-save, and exited Emacs. Then I started, successively, two Emacs sessions like this: /path/to/emacs --no-site-file , where the emacs was a CVS version from last night. I tried this (i) on two Linux tty's; (ii) From an X-Windows (GNOME) terminal, > Lawrence Mitchell -- Alan Mackenzie (Nuremberg, Germany).