unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* desktop-read issue on XP  - emacs 23.2 or 3
@ 2008-09-11  1:52 AlFire
  2008-09-11  6:59 ` Nick Sandow
       [not found] ` <mailman.18977.1221116390.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: AlFire @ 2008-09-11  1:52 UTC (permalink / raw
  To: help-gnu-emacs

Hi,

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.


Thx, Andy


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: desktop-read issue on XP  - emacs 23.2 or 3
  2008-09-11  1:52 AlFire
@ 2008-09-11  6:59 ` Nick Sandow
  2008-09-11  7:01   ` Nick Sandow
       [not found] ` <mailman.18977.1221116390.18990.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Sandow @ 2008-09-11  6:59 UTC (permalink / raw
  To: AlFire; +Cc: help-gnu-emacs

I think in Emacs 22 and later the way to activate `desktop' has changed.

I think you just need:

(desktop-save-mode 1)

in your .emacs nowadays.

Is it possible you are using an older config?  Perhaps a read of the 
info page on desktop would solve ye problem.

AlFire wrote:
> Hi,
>
> 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.
>
>
> Thx, Andy
>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: desktop-read issue on XP  - emacs 23.2 or 3
  2008-09-11  6:59 ` Nick Sandow
@ 2008-09-11  7:01   ` Nick Sandow
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Sandow @ 2008-09-11  7:01 UTC (permalink / raw
  To: AlFire; +Cc: help-gnu-emacs

Actually - forgive me - I am only speaking about Emacs 22 here.  I've 
never used Emacs 23.

Nick Sandow wrote:
> I think in Emacs 22 and later the way to activate `desktop' has changed.
>
> I think you just need:
>
> (desktop-save-mode 1)
>
> in your .emacs nowadays.
>
> Is it possible you are using an older config?  Perhaps a read of the 
> info page on desktop would solve ye problem.
>
> AlFire wrote:
>> Hi,
>>
>> 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.
>>
>>
>> Thx, Andy
>>
>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: desktop-read issue on XP  - emacs 23.2 or 3
@ 2008-09-11  9:17 martin rudalics
  0 siblings, 0 replies; 6+ messages in thread
From: martin rudalics @ 2008-09-11  9:17 UTC (permalink / raw
  To: spamgrinder.trylater; +Cc: help-gnu-emacs

 > 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: desktop-read issue on XP  - emacs 23.2 or 3
       [not found] ` <mailman.18977.1221116390.18990.help-gnu-emacs@gnu.org>
@ 2008-09-12  2:45   ` AlFire
  0 siblings, 0 replies; 6+ messages in thread
From: AlFire @ 2008-09-12  2:45 UTC (permalink / raw
  To: help-gnu-emacs

Nick Sandow wrote:
> I think in Emacs 22 and later the way to activate `desktop' has changed.
> 
> I think you just need:
> 
> (desktop-save-mode 1)
> 
> in your .emacs nowadays.
> 
> Is it possible you are using an older config?  Perhaps a read of the 
> info page on desktop would solve ye problem.
> 

that was it. I replaced:

(setq desktop-enable t)
(desktop-load-default)
(desktop-read)
(defun desktop-auto-save ()
    "Added to auto-save-hook so the desktop is not lost."
    (desktop-save "~/")
    (message "Wrote desktop.")
    )
(add-hook 'auto-save-hook 'desktop-auto-save t)

by:

(desktop-save-mode 1)


and all works. And just for the record - the versions in subject I put 
are wrong - it supposed to be 22.2.1 and 23.0.60.1.

thx, Andy


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: desktop-read issue on XP  - emacs 23.2 or 3
       [not found] <mailman.18997.1221124833.18990.help-gnu-emacs@gnu.org>
@ 2008-09-12  2:47 ` AlFire
  0 siblings, 0 replies; 6+ messages in thread
From: AlFire @ 2008-09-12  2:47 UTC (permalink / raw
  To: help-gnu-emacs

martin rudalics wrote:
>  > 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? 

I did not help - I replaced all existing solution by singe
(desktop-save-mode 1)





> 
> 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?
> 
yes, it was first thing I checked :-)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-12  2:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.18997.1221124833.18990.help-gnu-emacs@gnu.org>
2008-09-12  2:47 ` desktop-read issue on XP - emacs 23.2 or 3 AlFire
2008-09-11  9:17 martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2008-09-11  1:52 AlFire
2008-09-11  6:59 ` Nick Sandow
2008-09-11  7:01   ` Nick Sandow
     [not found] ` <mailman.18977.1221116390.18990.help-gnu-emacs@gnu.org>
2008-09-12  2:45   ` AlFire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).