From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58634: Long delay with blank screen whilst loading desktop at emacs startup Date: Thu, 20 Oct 2022 08:20:48 +0300 Message-ID: <837d0vyssv.fsf@gnu.org> References: <83edv3zud8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10278"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58634@debbugs.gnu.org, akrl@sdf.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 20 07:22:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olO0m-0002VC-1T for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 07:22:32 +0200 Original-Received: from localhost ([::1]:39124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olO0i-0006xR-M8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 01:22:30 -0400 Original-Received: from [::1] (port=51028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olO0i-0006hF-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 01:22:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olO0I-0006gp-Sr for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2022 01:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olO0I-0006T0-LV for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2022 01:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olO0I-0000u8-Ak for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2022 01:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2022 05:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58634 X-GNU-PR-Package: emacs Original-Received: via spool by 58634-submit@debbugs.gnu.org id=B58634.16662432843420 (code B ref 58634); Thu, 20 Oct 2022 05:22:02 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 20 Oct 2022 05:21:24 +0000 Original-Received: from localhost ([127.0.0.1]:60911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olNzf-0000t6-U7 for submit@debbugs.gnu.org; Thu, 20 Oct 2022 01:21:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olNze-0000su-EI for 58634@debbugs.gnu.org; Thu, 20 Oct 2022 01:21:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olNzX-0006Qa-T0; Thu, 20 Oct 2022 01:21:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tO0biJgP/chicjkvqmWu0kEGBmGQJROwrfgUzYr+WfU=; b=jFhwW3+87h2K v95V2PaZv48I9c6k3v0kIvV1nd5slj6jmhAcfA5CH28fezmGOHwUM3vyRclYfttjVJo4DXEU2pzbs lcMCwxf53MpCwSz7MNm4r8B6z/zqFac6OaQ9Yjfo8wh6x9RVZUc6TYadWdpoQet59z/nlQrU9RuHb IoacMKlN5FK9X0/4XNx+LFuab4Sq2d/RiQAqnrGz2ZHsLJdCUnnqBZ3y9mnaRHEDK9kDwQaZxGKa5 L5q8wivgt6v1jIwp9y82f8G4TcwJJ4Ch2TEGQR8kp4MFOYDYabQLEONLgpOeZScJaEYiVZbbcdxfJ ep7S1gQ78lXujw0c9XthmQ==; Original-Received: from [87.69.77.57] (port=1388 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olNzB-0000yV-41; Thu, 20 Oct 2022 01:21:14 -0400 In-Reply-To: (message from Alan Mackenzie on Wed, 19 Oct 2022 19:58:36 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245917 Archived-At: > Date: Wed, 19 Oct 2022 19:58:36 +0000 > Cc: Eli Zaretskii , 58634@debbugs.gnu.org > From: Alan Mackenzie > > I have a theory. The function desktop-restore-file-buffer visits a file > with find-file-noselect, then calls switch-to-buffer on it. (This is the > interactive command on C-x b.) In earlier times, there would be a delay > in visiting the next file, and in this delay redisplay would happen. The > user would thus see a sequence of short displays of his files being > loaded. Nowadays, the time to visit a file is so short that redisplay > never registers a delay, and so doesn't redisplay. But with something > slowing the processing down a little (outputting "Restoring > desktop......", for example), the OS's file system goes to sleep, and > takes long enough to wake up for redisplay to trigger. Or something like > that. > > What do you think? Does this happen with Emacs 28 as well in your configuration? Because with Emacs 28 I use desktop.el all the time, and I do see the frame displaying some files and messages in the echo-area. If the same happens for you with Emacs 28, I guess it's somehow related to your init files and/or what exactly is in your session. For example, my sessions always include some buffers under Text mode or its descendants, and those turn on Flyspell mode in my configuration; starting Flyspell mode launches the speller as a sub-process, and that usually triggers some form of redisplay. In addition, I have garbage-collection-messages turned on, so GC-related messages are shown in the echo-area, which also is a kind of redisplay. Restoring file buffers sometimes produces prompts, e.g. if the file is too large or there are local variables there that require confirmation -- and those prompts trigger redisplay as well. If you have none of that in your configuration, perhaps desktop.el can indeed produce a completely blank frame. Although it sounds strange to me, since I never saw anything like that. But it could be because I'm used to starting Emacs with my configuration.