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 14:15:16 +0000 Message-ID: References: <837d0vyssv.fsf@gnu.org> <83czamy76j.fsf@gnu.org> <83zgdqwjca.fsf@gnu.org> <838rl9wh4m.fsf@gnu.org> <834jvxwbuf.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="27179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58634@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 21 16:16:19 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 1olsos-0006r1-Pz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 16:16:18 +0200 Original-Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olsoh-0007ze-Hs for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 10:16:10 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olsoh-0007tj-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 10:16:07 -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 1olsof-0007tc-Es for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 10:16:05 -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 1olsod-00027F-0n for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 10:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olsoc-0004bZ-IG for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 10:16: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 14:16: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.166636173217653 (code B ref 58634); Fri, 21 Oct 2022 14:16:02 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 21 Oct 2022 14:15:32 +0000 Original-Received: from localhost ([127.0.0.1]:38655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olso4-0004ab-OZ for submit@debbugs.gnu.org; Fri, 21 Oct 2022 10:15:32 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:48165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olsnz-0004aL-KV for 58634@debbugs.gnu.org; Fri, 21 Oct 2022 10:15:27 -0400 Original-Received: (qmail 66010 invoked by uid 3782); 21 Oct 2022 16:15:17 +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 16:15:17 +0200 Original-Received: (qmail 32630 invoked by uid 1000); 21 Oct 2022 14:15:17 -0000 Content-Disposition: inline In-Reply-To: <834jvxwbuf.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:245988 Archived-At: Hello, Eli. On Fri, Oct 21, 2022 at 16:22:16 +0300, Eli Zaretskii wrote: > > Date: Fri, 21 Oct 2022 12:40:32 +0000 > > Cc: Juri Linkov , 58634@debbugs.gnu.org > > From: Alan Mackenzie > > > 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? > That you see a blank frame. That is true. On a GUI frame, Emacs is unresponsive and apperantly hung. Not quite as bad, but also not good. > > 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 will slow down the session restoration, so I'd rather avoid it. I've implemented it, and timed it. With the progress reporting enabled, it takes 0.2% longer than with it disabled. This is negligible. -- Alan Mackenzie (Nuremberg, Germany).