[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process o
From: |
Pierre Neidhardt |
Subject: |
bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it |
Date: |
Fri, 16 Feb 2018 23:58:52 +0100 |
User-agent: |
mu4e 1.0; emacs 26.0.91 |
I tried patching with
-(daemonp)
+(and (daemonp) (= (length (visible-frame-list)) 1))
Then I killed the daemon, leaving a .lock behind.
On restart:
- In a tty, I get a black screen with a blinking cursor on the bottom left
corner.
If I press 'y', it proceeds with loading the desktop file. I can verify
that from the *Messages* buffer.
- With EXWM, I get a black screen, but 'y' does not work. So it's
effectively stuck.
I'm thinking that maybe `after-make-frame-functions' are run too early,
before the frame is fully ready.
Then I re-considered Eli's last remark: the daemon already has a frame, so I
thought maybe we should also guard the hook with a check on the frames count:
(defun ambrevar/desktop-init (_frame)
(when (> (length (visible-frame-list)) 1)
(desktop-save-mode)
(desktop-read)
(remove-hook 'after-make-frame-functions 'ambrevar/desktop-init)))
That did not change anything.
Any clue?
signature.asc
Description: PGP signature
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, (continued)
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/15
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/16
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it,
Pierre Neidhardt <=
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/17
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/18
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/18
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/24
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/24
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/24
bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Richard Stallman, 2018/02/11