From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell 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:12:28 +0100 Organization: me Message-ID: References: <20081022100713.GC924@muc.de> Reply-To: Lawrence Mitchell , 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 1224675073 15601 80.91.229.12 (22 Oct 2008 11:31:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 11:31:13 +0000 (UTC) Cc: 1226@emacsbugs.donarmstrong.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 13:32:13 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 1Ksbwh-0002AN-Pg for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 13:32:12 +0200 Original-Received: from localhost ([127.0.0.1]:39536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksbvc-0000Zf-6i for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 07:31:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ksbuq-0000Dq-Hn for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:30:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ksbul-0000Bg-Oq for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:30:15 -0400 Original-Received: from [199.232.76.173] (port=47722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksbul-0000BZ-8k for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:30:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34463) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ksbuk-0000IR-Uv for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:30:11 -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 m9MBU1ON025659; Wed, 22 Oct 2008 04:30:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9MBK2jK023331; Wed, 22 Oct 2008 04:20:02 -0700 X-Loop: don@donarmstrong.com Resent-From: Lawrence Mitchell Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 22 Oct 2008 11:20: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.122467397022092 (code B ref 1226); Wed, 22 Oct 2008 11:20:02 +0000 Original-Received: (at 1226) by emacsbugs.donarmstrong.com; 22 Oct 2008 11:12:50 +0000 Original-Received: from nougat.ucs.ed.ac.uk (nougat.ucs.ed.ac.uk [129.215.13.205]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9MBCenl022086 for <1226@emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 04:12:42 -0700 Original-Received: from wrath.ph.ed.ac.uk (wrath.ph.ed.ac.uk [129.215.73.7]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id m9MBCTlF022978; Wed, 22 Oct 2008 12:12:29 +0100 (BST) Original-Received: from lamacq.ph.ed.ac.uk (lamacq.ph.ed.ac.uk [129.215.72.156]) by wrath.ph.ed.ac.uk (8.13.8/8.12.10) with ESMTP id m9MBCTrB031722; Wed, 22 Oct 2008 12:12:29 +0100 Original-Received: from lamacq.ph.ed.ac.uk (localhost.localdomain [127.0.0.1]) by lamacq.ph.ed.ac.uk (8.13.8/8.12.10) with ESMTP id m9MBCTlN031901; Wed, 22 Oct 2008 12:12:29 +0100 Original-Received: (from s0198183@localhost) by lamacq.ph.ed.ac.uk (8.13.8/8.13.8/Submit) id m9MBCTFn031898; Wed, 22 Oct 2008 12:12:29 +0100 X-Authentication-Warning: lamacq.ph.ed.ac.uk: s0198183 set sender to lawrence.mitchell@ed.ac.uk using -f In-Reply-To: <20081022100713.GC924@muc.de> (Alan Mackenzie's message of "Wed, 22 Oct 2008 10:07:13 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-Scanned-By: MIMEDefang 2.60 on 129.215.13.205 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 22 Oct 2008 07:30:15 -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:21780 Archived-At: Alan Mackenzie wrote: > (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. 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? -- Lawrence Mitchell