From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#34680: Display monitor frames not warmed up Date: Wed, 27 Feb 2019 23:02:09 +0200 Organization: LINKOV.NET Message-ID: <875zt5ueue.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140977"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 34680@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 27 22:03:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz6MH-000aUm-R6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2019 22:03:18 +0100 Original-Received: from localhost ([127.0.0.1]:50627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz6MG-0003Qi-Qo for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2019 16:03:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz6M4-0003P3-PL for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:03:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz6M3-0007nS-3t for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:03:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gz6M2-0007mq-Or for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:03:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gz6M2-0004rz-H4 for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Feb 2019 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34680 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155130136718696 (code B ref -1); Wed, 27 Feb 2019 21:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2019 21:02:47 +0000 Original-Received: from localhost ([127.0.0.1]:54421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gz6Lm-0004rT-Mz for submit@debbugs.gnu.org; Wed, 27 Feb 2019 16:02:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gz6Ll-0004rD-GR for submit@debbugs.gnu.org; Wed, 27 Feb 2019 16:02:45 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gz6Lg-0007Rd-9j for submit@debbugs.gnu.org; Wed, 27 Feb 2019 16:02:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz6Lf-0003G6-Dc for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:02:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz6Ld-0007Oq-F6 for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:02:38 -0500 Original-Received: from firebrick.maple.relay.mailchannels.net ([23.83.214.59]:53530) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gz6Lb-0007Lf-9x for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 16:02:37 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AADAE500621 for ; Wed, 27 Feb 2019 21:02:33 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (unknown [100.96.20.153]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6C4B5502B5D for ; Wed, 27 Feb 2019 21:02:33 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Wed, 27 Feb 2019 21:02:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Ruddy-Fearful: 2cd99f8b4e535bb0_1551301353555_2827261797 X-MC-Loop-Signature: 1551301353555:177689092 X-MC-Ingress-Time: 1551301353555 Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTP id 0B04C8199E for ; Wed, 27 Feb 2019 13:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=linkov.net; bh=NX3gLvEEQYSMqSFH+4f UVSxiLQs=; b=Bs10jvGs8WeBo76rzEbJLInp13R4KfJ7ir9gBtg/b94yE3vmsqQ eOhV3b7+yvO1rOJA8o/AeXQGbNl+NUdNByseridlzJ9NBbN+qspBKIFkraBMZck6 F/4hupSeKWliYi38F+xh+lercDpE49QMFPlCDJFyTSmXiqqxaqkzleE4= Original-Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTPSA id 7100D81908 for ; Wed, 27 Feb 2019 13:02:30 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a65 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrvddugddugeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohffkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155880 Archived-At: 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(# t) frameset--restore-frame(... t) frameset-restore([frameset ...] :reuse-frames t :cleanup-frames t :forc= e-display t :force-onscreen t) desktop-restore-frameset() desktop-read() run-hooks(after-init-hook delayed-warnings-hook) command-line() normal-top-level() because =E2=80=98frame-monitor-attributes=E2=80=99 in =E2=80=98frameset-m= ove-onscreen=E2=80=99 returns =E2=80=98nil=E2=80=99. It returns =E2=80=98nil=E2=80=99 because the attribute =E2=80=98frames=E2= =80=99 returned by =E2=80=98display-monitor-attributes-list=E2=80=99 is empty, and =E2=80=98= frame-monitor-attributes=E2=80=99 filters out the returned attributes if it can't find the arg =E2=80=98fra= me=E2=80=99 in the list of frames. However, when =E2=80=98display-monitor-attributes-list=E2=80=99 is =E2=80= =9Cwarmed up=E2=80=9D with just a =E2=80=98message=E2=80=99 call before its first call, its returned =E2=80= =98frames=E2=80=99 contains the arg =E2=80=98frame=E2=80=99. I guess calling the function =E2=80=98message=E2=80=99 before calling =E2= =80=98display-monitor-attributes-list=E2=80=99 performs some redisplay that adds the frame to the list of frames in =E2=80=98display-monitor-attributes-list=E2=80=99.