emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r116304: * lisp/desktop.el (desktop-read): Claim


From: Juanma Barranquero
Subject: Re: [Emacs-diffs] trunk r116304: * lisp/desktop.el (desktop-read): Claim the lock when the owner is not the current process.
Date: Sat, 8 Feb 2014 21:29:06 +0100

On Sat, Feb 8, 2014 at 8:32 PM, Juri Linkov <address@hidden> wrote:

> Then instead of asking a question we could add two new values
> to `desktop-load-locked-desktop'
>
>    ask-and-lock  -- ask the user and lock the desktop.
>    load-and-lock -- load and lock anyway.
>
> with the default to `ask-and-lock'.  Whereas the existing
>
>    t    -- load anyway.
>    ask  -- ask the user.
>
> will load without locking.

Seems OK.

> I guess your code to detect a running Emacs instance is not too reliable
> to include to desktop.el?

Alas, no. It's Windows-specific, and depends on the fact that I know I
won't have a lock from a remote Emacs instance, and that all my
instances are launched from executables called emacs.exe.

    J



reply via email to

[Prev in Thread] Current Thread [Next in Thread]