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 #35 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: Sun, 11 Feb 2018 20:54:55 +0200
> From: Pierre Neidhardt <ambrevar <at> gmail.com>
> Cc: npostavs <at> users.sourceforge.net, 30421 <at> debbugs.gnu.org
> Date: Sun, 11 Feb 2018 19:41:22 +0100
> 
> One last question :) Is this the right way to initialize desktop-mode
> after frames are made then?
> 
> 	(defun desktop-init (_frame)
> 	  (desktop-save-mode)
> 	  (desktop-read)
> 	  0)
> 	(add-hook 'after-make-frame-functions 'desktop-init)

Yes, I think so.  Although you may wish doing this only once, not
after each frame creation (in which case, you should make the function
remove itself from the hook variable).

> It seems that those functions are expected to return a number, hence the 0.

Hmm... where did you see that they are expected to return a number?




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.