From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-pretest-bug@gnu.org, 1474@emacsbugs.donarmstrong.com,
emacs@gentoo.org
Subject: bug#1474: 23.0.60; desktop.el don't check if pid in his lock file is always in use
Date: Wed, 03 Dec 2008 11:08:35 +0100 [thread overview]
Message-ID: <8763m1d10c.fsf@tux.homenetwork> (raw)
In-Reply-To: <f7ccd24b0812030115s68926b2ag81050b0ef47a7945@mail.gmail.com> (Juanma Barranquero's message of "Wed, 3 Dec 2008 10:15:15 +0100")
"Juanma Barranquero" <lekktu@gmail.com> writes:
> On Wed, Dec 3, 2008 at 09:47, Thierry Volpiatto
> <thierry.volpiatto@gmail.com> wrote:
>
>> I am sorry but I don't understand why emacs would find a process on
>> another computer.
>
> No, I'm saying that Emacs *won't* find a process in another computer.
>
>> In which case ?
>
> The user can customize desktop.el so the desktop file (and desktop
> file lock) are anywhere, even in a shared directory in a remote disk.
Ok i understand now.
In this case, may be a variable can be set:
* Use a remote desktop ==> use the .emacs.desktop.lock like the actual
code
* Use a local desktop ==> in this case check if pid exist.
(i think local desktop is the most common case)
>> I just want emacs to check if the process that is in the lock file is
>> own by another emacs process.
>
> Yes, I understand. And I'm saying that in the presence of distributed
> filesystems, you cannot guarantee that a desktop lock file in a local
> disk is owned by a local process, or that a local Emacs is saving the
> desktop locally.
>
>> * If no emacs process with this pid is found ==> load desktop
>>
>> * If an emacs process with this pid is found ==> ask (default) if we load
>> desktop or not
>>
>> Actually when the .emacs.desktop.lock is found, emacs lock desktop and
>> ask if we want to use the desktop file, even if the pid that is in the
>> file is no more in use by an emacs session.
>
> I share the sentiment. In fact, I do exactly that in my .emacs.
>
> But the point of the desktop locking mechanism is protecting the user;
> automatically overwriting the desktop is against that idea.
>
> Juanma
>
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
next prev parent reply other threads:[~2008-12-03 10:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 21:43 bug#1474: 23.0.60; desktop.el don't check if pid in his lock file is always in use Thierry Volpiatto
2008-12-02 22:39 ` Juanma Barranquero
2008-12-03 6:36 ` Thierry Volpiatto
2008-12-03 8:25 ` Juanma Barranquero
2008-12-03 8:47 ` Thierry Volpiatto
2008-12-03 9:15 ` Juanma Barranquero
2008-12-03 10:08 ` Thierry Volpiatto [this message]
2008-12-03 10:20 ` Juanma Barranquero
2008-12-03 21:27 ` Stefan Monnier
2008-12-03 9:14 ` Ulrich Mueller
2008-12-03 9:16 ` Juanma Barranquero
2008-12-02 22:52 ` Stefan Monnier
2008-12-02 23:06 ` Ulrich Mueller
2008-12-03 6:30 ` Thierry Volpiatto
2020-01-24 16:47 ` Stefan Kangas
2020-02-08 14:23 ` Stefan Kangas
2020-02-08 15:20 ` Eli Zaretskii
2020-04-27 10:34 ` Stefan Kangas
2020-04-27 14:50 ` Eli Zaretskii
2022-03-24 8:25 ` bug#1474: bug#25232: 24.4; Eliminate - Warning: Desktop file appears to be " Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8763m1d10c.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=1474@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=emacs@gentoo.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.