Subject: bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it

From: Eli Zaretskii <[email-masked]>
Date: Sat, 24 Feb 2018 12:39:02 +0200

> Date: Sun, 18 Feb 2018 18:37:56 +0200
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
> > From: Pierre Neidhardt <[email-masked]>
> > Cc: [email-masked], [email-masked]
> > Date: Sun, 18 Feb 2018 12:26:06 +0100
> > 
> > Did not work.  Recipe:
> 
> Thank you for your efforts.  I will look into this soon if no one
> beats me to it.

If you invoke emacsclient with one or more file names, and then run
your code in a function that is in the server-switch-hook list, does
that work?  If so, I think we lack a hook, which should run after the
frame is displayed.  Asking a question in after-make-frame-functions
is too early, because the frame was not displayed yet at that time.