From: Juri Linkov <juri@linkov.net>
To: 34680@debbugs.gnu.org
Subject: bug#34680: Display monitor frames not warmed up
Date: Wed, 27 Feb 2019 23:02:09 +0200 [thread overview]
Message-ID: <875zt5ueue.fsf@mail.linkov.net> (raw)
Sometimes desktop restoration fails with the error:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
+(nil nil -1)
frameset-move-onscreen(#<frame emacs@localhost 0x55a7cd486ed0> t)
frameset--restore-frame(... t)
frameset-restore([frameset ...] :reuse-frames t :cleanup-frames t :force-display t :force-onscreen t)
desktop-restore-frameset()
desktop-read()
run-hooks(after-init-hook delayed-warnings-hook)
command-line()
normal-top-level()
because ‘frame-monitor-attributes’ in ‘frameset-move-onscreen’ returns ‘nil’.
It returns ‘nil’ because the attribute ‘frames’ returned by
‘display-monitor-attributes-list’ is empty, and ‘frame-monitor-attributes’
filters out the returned attributes if it can't find the arg ‘frame’ in
the list of frames.
However, when ‘display-monitor-attributes-list’ is “warmed up” with just
a ‘message’ call before its first call, its returned ‘frames’ contains
the arg ‘frame’.
I guess calling the function ‘message’ before calling ‘display-monitor-attributes-list’
performs some redisplay that adds the frame to the list of frames in
‘display-monitor-attributes-list’.
next reply other threads:[~2019-02-27 21:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-27 21:02 Juri Linkov [this message]
2019-02-28 21:09 ` bug#34680: Display monitor frames not warmed up Juri Linkov
2019-03-04 21:03 ` Juri Linkov
2019-03-05 21:28 ` Juri Linkov
2019-03-19 21:43 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875zt5ueue.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=34680@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.