GNU bug report logs -
#1687
Emacs.app -- Warning: desktop file appears to be in use by PID 537.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1687 in the body.
You can then email your comments to 1687 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1687
; Package
emacs
.
(Wed, 24 Dec 2008 02:20:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Gilbert Harman" <harman <at> princeton.edu>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 24 Dec 2008 02:20:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Using Emacs.app, GNU Emacs 23.0.60.1 (i386-apple-darwin9.5.0, NS
apple-appkit-949.35) of 2008-12-14 on GH-iMAC.local.
If I choose "Quit Emacs" from the "Emacs" menu, the next time I start up
Emacs, I get a warning of the form: Warning: desktop file appears to be in
use by PID 537. Furthermore, if I then try to send a bug report, Emacs.app
freezes after I enter the above as subject of the bug report.
No problem if instead I had chosen "Exit Emacs" from the "File" menu, or use
C-x C-c.
No problem using "Quit Emacs" in Carbon Emacs: GNU Emacs 22.3.1
(i386-apple-darwin9.5.0, Carbon Version 1.6.0) of 2008-10-27 on
leopard.local. (same machine)
Gil
[Message part 2 (text/html, inline)]
bug reassigned from package `emacs' to `emacs,ns'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sun, 04 Jan 2009 02:15:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Wed, 21 Jan 2009 19:10:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Adrian Robert <adrian.b.robert <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Wed, 21 Jan 2009 19:10:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
> If I choose "Quit Emacs" from the "Emacs" menu, the next time I
> start up
> Emacs, I get a warning of the form: Warning: desktop file appears
> to be in
> use by PID 537. Furthermore, if I then try to send a bug report,
> Emacs.app
> freezes after I enter the above as subject of the bug report.
I can't reproduce this here on 2009/01/21. How are you starting
Emacs in these cases?
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Wed, 28 Jan 2009 20:25:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Wed, 28 Jan 2009 20:25:04 GMT)
Full text and
rfc822 format available.
Message #17 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
I'm encountering the same problem (on WinXP). I _think_ it just started
today (though it may have started yesterday).
It happens when I start emacs via the Start Menu and when I start it
from an icon on the desktop.
Exiting with C-x C-c doesn't change the behavior.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 09:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 09:50:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Wed, Jan 28, 2009 at 21:13, Relson, David <david.relson <at> orion-sys.com> wrote:
> I'm encountering the same problem (on WinXP). I _think_ it just started
> today (though it may have started yesterday).
Do you mean the same problem as originally reported, i.e.:
- enter emacs
- quit emacs
- enter emacs again => "Warning: desktop file appears to be in use by PID..."
If so, could you please try to find a minimal setup that triggers the
bug? I'm unable to reproduce it on Windows XP.
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 14:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 14:10:06 GMT)
Full text and
rfc822 format available.
Message #27 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
Yes, I have the same problem as originally reported.
I have a .emacs file in my ~/ directory, i.e. c:\user. With the
following line:
(desktop-read)
The problem occurs. Without the line, the problem goes away.
The problem occurs when the above line is the _only_ line in .emacs
My original .emacs file uses desktop-read in the following manner:
;; This enables saving the current desktop on shutdown.
;; The ESC-x desktop-save command must be given once
;; for this to work in perpetuity.
(desktop-load-default)
(desktop-read)
I've run the desktop-save command but that didn't solve the problem.
FWIW, desktop-save put its .emacs.desktop in c:/Program
Files/GNU/ntemacs22/bin (which seems reasonable). I copied the
.emacs.desktop file to c:/user but it didn't help.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 14:40:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 14:40:05 GMT)
Full text and
rfc822 format available.
Message #32 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
> I have a .emacs file in my ~/ directory, i.e. c:\user. With the
> following line:
>
> (desktop-read)
>
> The problem occurs. Without the line, the problem goes away.
Does it also happen if you use
(desktop-save-mode 1)
instead?
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 14:40:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 14:40:07 GMT)
Full text and
rfc822 format available.
Message #37 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
Found the cause !!
File c:/user/.emacs.desktop.lock contains the PID in the error message.
Deleting the file makes the warning go away.
I've done some further testing. With emacs open, the lock file is
created. If I open a second copy of emacs, the message appears.
This is a change in behavior. I used to be able to open multiple copies
of emacs without error messages.
FWIW, due to a hard drive upgrade I have a new installation of emacs
(v22.1.50.10). Previously I was running v22.1.1
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 14:45:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 14:45:03 GMT)
Full text and
rfc822 format available.
Message #42 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
With two lines in .emacs, i.e.
(desktop-load-default)
(desktop-save-mode 1)
The PID warning appears when I open a second copy of emacs. I used to
be able to open multiple copies of emacs without warnings.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 15:00:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 15:00:03 GMT)
Full text and
rfc822 format available.
Message #47 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
> With two lines in .emacs, i.e.
>
> (desktop-load-default)
> (desktop-save-mode 1)
Why do you use `desktop-load-default'? Have you tried just with
`desktop-save-mode'?
> I used to
> be able to open multiple copies of emacs without warnings.
Yes. Opening multiple copies was allowed before, but it leads to the
last Emacs to exit clobbering the desktop file of the previous
instances. You can set `desktop-load-locked-desktop' to t and Emacs
won't ask you when loading the desktop (though it will still ask
before overwriting the previous instance's desktop while exiting).
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 15:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 15:15:03 GMT)
Full text and
rfc822 format available.
Message #52 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
The desktop invocations were part of the standard .emacs file when I
started this job several years ago. Since they worked, I never paid
attention to them. Having multiple copies overwrite the previous
desktop when exiting is behavior I don't mind.
I've revised my .emacs file to include:
(setq desktop-load-locked-desktop t)
(desktop-save-mode 1)
And things seem fine.
Ciao,
David
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 15:20:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 15:20:03 GMT)
Full text and
rfc822 format available.
Message #57 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Thu, Jan 29, 2009 at 15:29, Relson, David <david.relson <at> orion-sys.com> wrote:
> Deleting the file makes the warning go away.
>
> I've done some further testing. With emacs open, the lock file is
> created. If I open a second copy of emacs, the message appears.
Of course.
> This is a change in behavior. I used to be able to open multiple copies
> of emacs without error messages.
Yes. It first appeared (in a released version) in Emacs 22.2.
You seem to prefer avoiding the warning and risking losing your desktop. Weird.
> FWIW, due to a hard drive upgrade I have a new installation of emacs
> (v22.1.50.10). Previously I was running v22.1.1
Yes, the feature was added three weeks after the 22.1 release.
Why are you running 22.1.50? I'd recommend getting 22.3, which has
many bugfixes over what you're using now.
Juanma
Reply sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
You have taken responsibility.
(Thu, 29 Jan 2009 15:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Gilbert Harman" <harman <at> princeton.edu>
:
bug acknowledged by developer.
(Thu, 29 Jan 2009 15:30:03 GMT)
Full text and
rfc822 format available.
Message #62 received at 1687-done <at> emacsbugs.donarmstrong.com (full text, mbox):
tags 1687 + notabug
quit
On Thu, Jan 29, 2009 at 16:07, Relson, David <david.relson <at> orion-sys.com> wrote:
> I've revised my .emacs file to include:
>
> (setq desktop-load-locked-desktop t)
> (desktop-save-mode 1)
>
> And things seem fine.
It will still ask you when exiting.
If you really don't mind the last Emacs standing to win, you can add
this to your .emacs:
;; slightly tested
(add-hook 'kill-emacs-hook
(lambda ()
(when (and desktop-dirname desktop-base-file-name)
(condition-case nil
(delete-file (expand-file-name desktop-base-file-name
desktop-dirname))
(error nil)))))
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 15:45:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 15:45:03 GMT)
Full text and
rfc822 format available.
Message #67 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
I've compared old and new copies of desktop.el, i.e.
49240 Aug 18 2007 c:/Program Files/GNU/ntemacs22/lisp/desktop.el
45692 Apr 12 2007 d:/Program Files/GNU/emacs-22.1/lisp/desktop.el
And found the appearance of the PID message within the few months from
April to August !
Letting the last instance of emacs overwrite the desktop is not a big
deal. Since multiple instances start with the same desktop, they'll be
writing similar desktop files, so it's likely that little, or no,
information will be lost.
>> Why are you running 22.1.50? I'd recommend getting 22.3, which has
many bugfixes over what you're using now.
Because when I did a websearch for ntemacs 22.1.50 is what was found.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 15:55:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 15:55:04 GMT)
Full text and
rfc822 format available.
Message #72 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Thu, Jan 29, 2009 at 16:29, Relson, David <david.relson <at> orion-sys.com> wrote:
> I've compared old and new copies of desktop.el, i.e.
>
> 49240 Aug 18 2007 c:/Program Files/GNU/ntemacs22/lisp/desktop.el
> 45692 Apr 12 2007 d:/Program Files/GNU/emacs-22.1/lisp/desktop.el
>
> And found the appearance of the PID message within the few months from
> April to August !
2007-06-24, to be exact. Three weeks after the release of 22.1.
> Letting the last instance of emacs overwrite the desktop is not a big
> deal. Since multiple instances start with the same desktop, they'll be
> writing similar desktop files, so it's likely that little, or no,
> information will be lost.
Most of the time. Once or twice, just to keep you on your toes, you
will set up Emacs with lots of loaded files that you need for some
project, and then you'll overwrite the carefully laid desktop with an
empty desktop from a forgotten Emacs instance ;-)
> Because when I did a websearch for ntemacs 22.1.50 is what was found.
If you're using Emacs on Windows, you can download much more
up-to-date versions from here:
http://ourcomments.org/Emacs/EmacsW32.html
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 15:55:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 15:55:05 GMT)
Full text and
rfc822 format available.
Message #77 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
reopen 1687
quit
Oops. Closed by mistake. The OP's problem is not fixed.
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1687
; Package
emacs,ns
.
(Thu, 29 Jan 2009 16:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Relson, David" <david.relson <at> orion-sys.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 16:15:03 GMT)
Full text and
rfc822 format available.
Message #82 received at 1687 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> If you're using Emacs on Windows, you can download much more
>> up-to-date versions from here:
>> http://ourcomments.org/Emacs/EmacsW32.html
Thanks! I wasn't aware of ourcomments.org. I'm downloading the latest
& greatest as I write this.
David
bug reopened, originator not changed.
Request was from
Juanma Barranquero <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 29 Jan 2009 16:40:04 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to "Gilbert Harman" <harman <at> princeton.edu>
Request was from
Adrian Robert <adrian.b.robert <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Mon, 02 Feb 2009 23:45:05 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Tue, 03 Mar 2009 15:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.