GNU bug report logs - #75142
31.0.50; package-refresh-contents is not async when using interactively.

Previous Next

Package: emacs;

Reported by: tusharhero <at> sdf.org

Date: Fri, 27 Dec 2024 15:11:02 UTC

Severity: wishlist

Found in version 31.0.50

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 75142 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 75142 <at> debbugs.gnu.org, Philip Kaludercic <philipk <at> posteo.net>,
 tusharhero <at> sdf.org
Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when
 using interactively.
Date: Sat, 04 Jan 2025 10:46:05 -0500
>> When running `M-x package-refresh-contents RET', my Emacs session
>> freezes for a long time. But it is possible to run this async, we need
>> to give it an argument. I think when the function should be async, I
>> understand that when using this in emacs lisp program, that maybe not be
>> desirable. So maybe you can have a separate functions for emacs lisp
>> programs, or have different behavior for interactive use.
>
> Philip and Stefan, any comments?

I guess it would make sense to run it asynchronously when called
interactively, but in that case we should emit messages that clarify
what going on, e.g. a first (synchronous) "Refreshing in the background..."
followed by "Refreshing packages completed" at the end.


        Stefan





This bug report was last modified 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.