[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A few questions about desktop.el
From: |
Richard M. Stallman |
Subject: |
Re: A few questions about desktop.el |
Date: |
Wed, 27 Jul 2005 23:20:46 -0400 |
It'd be very useful to try to detect it and at least stop the second
instance from loading and using the desktop file if it's already in
use. There's no way to do that from Emacs, is there?
It needs to use file-locking together with testing of the file modtime.
There are primitives to do this: lock-file and unlock-file,
and file-attributes. So when you restore an old desktop, you
record the modtime of the file. When you update the desktop file,
you lock it, them see if its modtime is the same as it was
when you restored the desktop. If not, you do whatever.
- A few questions about desktop.el, Juanma Barranquero, 2005/07/21
- Re: A few questions about desktop.el, Juanma Barranquero, 2005/07/22
- Re: A few questions about desktop.el, Richard M. Stallman, 2005/07/22
- Re: A few questions about desktop.el, Richard M. Stallman, 2005/07/27
- Re: A few questions about desktop.el, David Kastrup, 2005/07/28
- Re: A few questions about desktop.el, Juanma Barranquero, 2005/07/28
- Re: A few questions about desktop.el, Richard M. Stallman, 2005/07/28
- Re: A few questions about desktop.el, Masatake YAMATO, 2005/07/28
Re: A few questions about desktop.el, Juanma Barranquero, 2005/07/22
Re: A few questions about desktop.el, Lars Hansen, 2005/07/22