From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#58634: Long delay with blank screen whilst loading desktop at emacs startup Date: Fri, 21 Oct 2022 12:40:32 +0000 Message-ID: References: <83edv3zud8.fsf@gnu.org> <837d0vyssv.fsf@gnu.org> <83czamy76j.fsf@gnu.org> <83zgdqwjca.fsf@gnu.org> <838rl9wh4m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58634@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 21 14:42:36 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 1olrMA-0006US-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 14:42:34 +0200 Original-Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olrM8-0005Cw-Tx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 08:42:32 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olrKi-0004fg-Tg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 08:41:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olrKg-0004fU-UK for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 08:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olrKg-0000NM-MB for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 08:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olrKg-0001v9-7H for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 08:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2022 12:41: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.16663560427350 (code B ref 58634); Fri, 21 Oct 2022 12:41:02 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 21 Oct 2022 12:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:37230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olrKM-0001uU-34 for submit@debbugs.gnu.org; Fri, 21 Oct 2022 08:40:42 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:45069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olrKJ-0001uF-5g for 58634@debbugs.gnu.org; Fri, 21 Oct 2022 08:40:40 -0400 Original-Received: (qmail 40168 invoked by uid 3782); 21 Oct 2022 14:40:33 +0200 Original-Received: from acm.muc.de (p4fe15b9b.dip0.t-ipconnect.de [79.225.91.155]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 21 Oct 2022 14:40:32 +0200 Original-Received: (qmail 15020 invoked by uid 1000); 21 Oct 2022 12:40:32 -0000 Content-Disposition: inline In-Reply-To: <838rl9wh4m.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:245985 Archived-At: Hello, Eli. On Fri, Oct 21, 2022 at 14:28:09 +0300, Eli Zaretskii wrote: > > Date: Fri, 21 Oct 2022 08:59:58 +0000 > > Cc: 58634@debbugs.gnu.org, acm@muc.de > > From: Alan Mackenzie > > > I don't see why it should irritate: you cannot do anything with Emacs > > > during that time anyway. > > It irritates, because it looks like Emacs has crashed. There is no > > feedback. If Emacs really has crashed whilst loading the desktop, how > > long should the user wait before getting angry? Again, I propose > > outputting progress dots, possibly as an enabled by default option. > I don't see any need for adding this. Your case seems to be a rare > one, and doesn't justify such complications. What is rare about my case? Assuming the (message "") gets removed from info.el, there are just 3 things needed for the long delay to happen: (i) Having a large .emacs.desktop; (ii) Not encountering any error message during its loading. (iii) Not getting any messages from flyspell and friends or the OS during loading. This will be a common case amongst users. In particular, the problem is NOT confined to the tty. It will occur on GUI sessions, too. When I tried it out this morning under X, the only thing which triggered a redisplay was a version conflict error between CC Mode and js-mode (and some status messages from shell-script-mode very late in the loading). My current idea is to count the buffers in desktop-save, and to output a message: Restoring buffers: 127/166 as we restore the buffers. We already count the buffers as we load them. This is NOT complicated. > > And I propose removing the (message "") from Info-toc-build, and amending > > what this was designed to do in the proper place, wherever that might be. > I'm guessing that (message "") was there because originally that > function was showing progress messages as part of its processing: > (or main-file (message "Searching subfile %s..." (car subfiles))) I think this is the case, yes. There's not a lot of information about it in the git log. > However, this has been commented out 14 years ago, so perhaps nowadays > it isn't necessary. Adding Juri to the CC in case he has some > comments. -- Alan Mackenzie (Nuremberg, Germany).