From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: desktop-read issue on XP - emacs 23.2 or 3 Date: Thu, 11 Sep 2008 11:17:35 +0200 Message-ID: <48C8E22F.1070507@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221124870 32352 80.91.229.12 (11 Sep 2008 09:21:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 09:21:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: spamgrinder.trylater@ggmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 11:22:06 2008 Return-path: Envelope-to: geh-help-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 1KdiNJ-0000uh-LW for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 11:22:05 +0200 Original-Received: from localhost ([127.0.0.1]:55658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdiMJ-0004iE-3E for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 05:21:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdiLn-0004fd-Jw for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:20:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdiLk-0004bP-Oz for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:20:30 -0400 Original-Received: from [199.232.76.173] (port=53100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdiLk-0004at-CX for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:20:28 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:55597) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KdiLi-0007C1-3a for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:20:26 -0400 Original-Received: (qmail invoked by alias); 11 Sep 2008 09:20:24 -0000 Original-Received: from 62-47-62-182.adsl.highway.telekom.at (EHLO [62.47.62.182]) [62.47.62.182] by mail.gmx.net (mp042) with SMTP; 11 Sep 2008 11:20:24 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18bn21blyobZ+FdwIHV1sMflKemT67YXZ1/W14oKr LEbkmzlyiKeRij User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) Original-References: 48C879C7.2080608@ggmail.com X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57416 Archived-At: > With .emacs narrowed down to following: > (custom-set-variables > '(desktop-save-mode t)) > (desktop-load-default) > (desktop-read) > > > I noted a very weird question upon start up (only Windows, Linux is fine): > > > "Warning: desktop file appears to be in use by PID %s. > > > The PID indicates the emacs itself I am trying to bring up. Any idea what is wrong? It is really annoying. I don't use desktop so I can only speculate. IIUC, `desktop-load-default' is obsolete since Emacs 22.1. What happens if you omit it? The very problem occurs when you call `desktop-read' which does (or (null desktop-load-locked-desktop) (not (y-or-n-p (format "Warning: desktop file appears to be in use by PID %s.\n\ Using it may cause conflicts. Use it anyway? " owner))))) so simply typing "y" should load it. But maybe Emacs could check whether it is the owner of that PID. Are you sure there's no other Emacs process around? martin