GNU bug report logs - #30421
25.3; desktop.el: Steal lock when no living "emacs" process owns it

Previous Next

Package: emacs;

Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>

Date: Sun, 11 Feb 2018 09:55:02 UTC

Severity: wishlist

Found in version 25.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #47 received at 30421 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pierre Neidhardt <ambrevar <at> gmail.com>
Cc: 30421 <at> debbugs.gnu.org, npostavs <at> users.sourceforge.net
Subject: Re: bug#30421: 25.3;
 desktop.el: Steal lock when no living "emacs" process owns it
Date: Fri, 16 Feb 2018 10:11:06 +0200
> From: Pierre Neidhardt <ambrevar <at> gmail.com>
> Cc: npostavs <at> users.sourceforge.net, 30421 <at> debbugs.gnu.org
> Date: Thu, 15 Feb 2018 23:56:17 +0100
> 
> 		  if (and owner
> 			   (memq desktop-load-locked-desktop '(nil ask))
> 			   (or (null desktop-load-locked-desktop)
> 			       (daemonp)
> 			       (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)))))
> 
> `(deamonp)` will still be true...
> 
> I could set `desktop-load-locked-desktop' to `t'
> but then I'm assuming I'll always be the only desktop-mode client on
> this machine... I don't like that.
> 
> What about changing `(daemonp)' to some predicate checking if there is a
> frame conencted?

Something like that, but:

  . it has to be _in_addition_to_ daemonp check, i.e. the predicate
    should only be called in a daemon session
  . it should test for an existence of a client frames, not just _any_
    frames, because, perhaps surprisingly, a daemon session does have
    a frame, it just isn't displayed (and is not a GUI frame)

Patches to that effect are welcome.

Thanks.




This bug report was last modified 7 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.