Eli Zaretskii writes: >> Date: Fri, 27 Dec 2024 15:15:38 +0530 >> From: tusharhero--- via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> >> 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? We could also run it async given a prefix argument. Perhaps it might even be ok it just allow it to run async whenever it is invoked interactively? It doesn't take much to change it, if you want to try it out: