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: Sat, 22 Oct 2022 16:11:06 +0300 Message-ID: <83tu3wt34l.fsf@gnu.org> References: <8335bhw68r.fsf@gnu.org> <83zgdpuq3b.fsf@gnu.org> <83r0z1uju2.fsf@gnu.org> <83lep9ugyi.fsf@gnu.org> <83h6zwv0ft.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3233"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58634@debbugs.gnu.org, juri@linkov.net To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 24 04:05:56 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 1ommqh-0000j6-UO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Oct 2022 04:05:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omgJm-0007UN-Tx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Oct 2022 15:07:30 -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 1omEIE-00069U-JM for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 09:12: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 1omEIE-0005Bm-9R for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 09:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omEID-0006O6-Pp for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 09:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2022 13:12:01 +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.166644429124517 (code B ref 58634); Sat, 22 Oct 2022 13:12:01 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 22 Oct 2022 13:11:31 +0000 Original-Received: from localhost ([127.0.0.1]:39890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omEHj-0006NM-96 for submit@debbugs.gnu.org; Sat, 22 Oct 2022 09:11:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omEHg-0006N7-0n for 58634@debbugs.gnu.org; Sat, 22 Oct 2022 09:11:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omEHZ-000531-D8; Sat, 22 Oct 2022 09:11:21 -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=XgdlPU0w5dcHARPN43yuz1qLtQc7TqJoVxwZ16SzBtk=; b=qi+zP8bWMz9y FA18n/DdNvk+srw+H3vgdGjH1EL3gYl3HlXehb49SVhHVj5hfNB2TNC0XAUZkVrissVjdkMbq8JDj 8TB+7c4dkQuWvnQIMTzqhm+bGRBrzehzZCBK7fSXUMPkGxgxuuiX2yS0bJ3arBherZaMRYiQV9XPU DTcbyw9GhGGf7eiv7lnJqakyU1sNpgP/lwYois4XHzGYg7GfBptm//mczTjDyRp+Ve52rDUCUXrGz pCdD819oPri/9fy0WIZX5sydKLOCLhn+LfsZ1hnNV/p0XMm1D87EV7WP6a/Oq62OI5FdO0iCi4j0g GiScJ1IkS9oxq2JRYE4ynA==; Original-Received: from [87.69.77.57] (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 1omEHN-0004WT-3r; Sat, 22 Oct 2022 09:11:20 -0400 In-Reply-To: (message from Alan Mackenzie on Sat, 22 Oct 2022 12:20:18 +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:246051 Archived-At: > Date: Sat, 22 Oct 2022 12:20:18 +0000 > Cc: juri@linkov.net, 58634@debbugs.gnu.org > From: Alan Mackenzie > > Hello, Eli. > > On Sat, Oct 22, 2022 at 09:26:14 +0300, Eli Zaretskii wrote: > > > Date: Fri, 21 Oct 2022 20:11:12 +0000 > > > Cc: juri@linkov.net, 58634@debbugs.gnu.org > > > From: Alan Mackenzie > > > > > I'm even okay with adding a hook after each buffer is restored, if > > > > that will make you happy. I just don't want these messages (or > > > > anything similar) show by default, because no one wants them badly > > > > enough. > > I want them. Stefan Kangas wants them. We don't know how many other > people want them, even amongst Emacs developers. If you don't want the > messages enabled by default, why not include the facility disabled by > default, so that users can enable it when they do want it? A hook I proposed is a more general facility, and can satisfy this need as well. It looks to me as a better solution. > > If you are unhappy even with the additional hook proposal (you didn't > > say), then I guess we have nothing more to discuss here that could be > > useful. > > The additional hook is a red herring. To be fully useful, it would need > to be passed the current filename and the total number of buffers being > restored. Since it's a hook called when restoring a buffer, it should be called with the buffer name. The total number of buffers is AFAIR known only after everything is processed, and is stored in the desktop-buffer-ok-count. What else is missing?