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 20:11:12 +0000 Message-ID: References: <834jvxwbuf.fsf@gnu.org> <8335bhw68r.fsf@gnu.org> <83zgdpuq3b.fsf@gnu.org> <83r0z1uju2.fsf@gnu.org> <83lep9ugyi.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="7500"; 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 Sat Oct 22 01:11:45 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 1om1B3-0001oc-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Oct 2022 01:11:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om0Cw-0004A8-GV; Fri, 21 Oct 2022 18:09:38 -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 1olyN8-00088t-9s for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 16: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 1olyN7-0006Yb-WD for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 16:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olyN7-0007TL-KQ for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 16:12:01 -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 20: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.166638308028676 (code B ref 58634); Fri, 21 Oct 2022 20:12:01 +0000 Original-Received: (at 58634) by debbugs.gnu.org; 21 Oct 2022 20:11:20 +0000 Original-Received: from localhost ([127.0.0.1]:39071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olyMS-0007SS-CN for submit@debbugs.gnu.org; Fri, 21 Oct 2022 16:11:20 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:11313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olyMQ-0007SE-SE for 58634@debbugs.gnu.org; Fri, 21 Oct 2022 16:11:19 -0400 Original-Received: (qmail 74386 invoked by uid 3782); 21 Oct 2022 22:11:12 +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 22:11:12 +0200 Original-Received: (qmail 30842 invoked by uid 1000); 21 Oct 2022 20:11:12 -0000 Content-Disposition: inline In-Reply-To: <83lep9ugyi.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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246012 Archived-At: Hello, Eli. On Fri, Oct 21, 2022 at 22:14:45 +0300, Eli Zaretskii wrote: > > Date: Fri, 21 Oct 2022 19:01:52 +0000 > > Cc: juri@linkov.net, 58634@debbugs.gnu.org, acm@muc.de > > From: Alan Mackenzie > > > If you want some messages to be displayed, you should be able to > > > sprinkle your init file with them, right? > > No. I want reassurance that my Emacs hasn't hung completely, and giving > > some indication of how long it's going to be busy is also wanted. Random > > messages from .emacs won't help, here. > > > You can also define a desktop-after-read-hook function to display > > > something, if you want. > > I wasn't aware of this hook. Being run just once at the end of > > desktop-read, it doesn't look like it can be used to provide any > > information about the progress of that desktop-read. > I think if you enable garbage-collection-messages in your init file, > you will see more traffic in the echo area. There's too little information (and too much irritation) from them. One will get the same GC messages from a looping major mode as from successful desktop loading. > 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. As a general principle: When an operation can take a while to finish, you should inform the user about the progress it makes. This way the user can estimate remaining time and clearly see that Emacs is busy working, not hung. [Emacs Lisp manual, page "Progress"] > desktop.el is a very old package, so people (myself included) > have been using it for decades without being irritated by these > problems. We really don't know this. You haven't been irritated by it, I have, for a long time. > It really is an irritation peculiar to your configuration and your > state of mind. (There's nothing wrong about having peculiar > configurations and states of mind.) It's not peculiar to my configuration, this problem of indeterminate length non-responsiveness can happen in any configuration. As for my state of mind, well ...... ;-) > > > Assuming this will make the frame display something, why impose your > > > personal preferences on everyone? > > That's not fair. One could make the same insinuation against anybody who > > added an option for users. > It isn't an "insinuation", it's a call to all of us to exercise some > self-restraint in imposing on all users solutions for problems that > are peculiar to our personal setups. It is not peculiar to my setup. It is a general problem. Stefan Kangas has posted that he holds a similar viewpoint to mine. What is a mystery is how desktop.el could have survived so long without the progress indication recommended by the Elisp manual. > > > I'm not aware of any complaints about what happens when desktop.el > > > restores a session (one more reason to consider your case a rare one). > > We simply don't know how common it is. It's the sort of phenomenon that > > irritates, but not enough to be bothered to do anything about it. > We may not know how common the display issue is, but we do know how > common the irritation is: extremely uncommon, to say the least. We do not know. All we know is that few people have complained, possibly in the same way that few people in tropical lands complain about buzzing flies. It would be interesting to see how many users would say "yes please!" if given the option of this option. I suspect it would be many more than those who would take the trouble to complain about its lack. -- Alan Mackenzie (Nuremberg, Germany).