From unknown Sat Aug 16 10:49:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75142 <75142@debbugs.gnu.org> To: bug#75142 <75142@debbugs.gnu.org> Subject: Status: 31.0.50; package-refresh-contents is not async when using interactively. Reply-To: bug#75142 <75142@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:49:51 +0000 retitle 75142 31.0.50; package-refresh-contents is not async when using int= eractively. reassign 75142 emacs submitter 75142 tusharhero@sdf.org severity 75142 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 27 10:10:41 2024 Received: (at submit) by debbugs.gnu.org; 27 Dec 2024 15:10:41 +0000 Received: from localhost ([127.0.0.1]:47231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRBz5-0006VO-K0 for submit@debbugs.gnu.org; Fri, 27 Dec 2024 10:10:41 -0500 Received: from lists.gnu.org ([209.51.188.17]:40530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR6uo-0006lC-D2 for submit@debbugs.gnu.org; Fri, 27 Dec 2024 04:45:56 -0500 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 1tR6um-0007LJ-ST for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 04:45:53 -0500 Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tR6uc-00056V-3I for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 04:45:45 -0500 Received: from mx.sdf.org (mx [205.166.94.24]) by mx.sdf.org (8.18.1/8.14.3) with ESMTP id 4BR9jcP8016021 for ; Fri, 27 Dec 2024 09:45:38 GMT Received: from 43.230.214.222 (SquirrelMail authenticated user tusharhero) by mx.sdf.org with HTTP; Fri, 27 Dec 2024 15:15:38 +0530 Message-ID: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> Date: Fri, 27 Dec 2024 15:15:38 +0530 Subject: 31.0.50; package-refresh-contents is not async when using interactively. From: tusharhero@sdf.org To: bug-gnu-emacs@gnu.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Received-SPF: pass client-ip=205.166.94.24; envelope-from=tusharhero@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 27 Dec 2024 10:10:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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. In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2024-12-24 built on cumpeter Repository revision: 7ac7ebef6cde9942905c45126cc6ef2bab01dc10 Repository branch: master System Description: Arch Linux Configured using: 'configure --prefix=/home/tusharhero/emacs/build/ --with-native-compilation=aot --with-pgtk --with-json --with-modules' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM GTK3 ZLIB Important settings: value of $EMACSLOADPATH: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell-script Minor modes in effect: global-git-commit-mode: t magit-auto-revert-mode: t text-scale-mode: t rainbow-delimiters-mode: t rainbow-mode: t breadcrumb-mode: t breadcrumb-local-mode: t envrc-global-mode: t global-flycheck-mode: t flycheck-mode: t server-mode: t sh-electric-here-document-mode: t outline-minor-mode: t electric-pair-mode: t global-completion-preview-mode: t completion-preview-mode: t nerd-icons-completion-mode: t marginalia-mode: t fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t pulsar-global-mode: t pulsar-mode: t spacious-padding-mode: t override-global-mode: t keyfreq-autosave-mode: t keyfreq-mode: t which-key-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/tusharhero/.emacs.d/elpa/transient-20241208.1224/transient hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/transient /home/tusharhero/.emacs.d/elpa/ef-themes-1.9.0/theme-loaddefs hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/theme-loaddefs /home/tusharhero/.emacs.d/elpa/org-9.7.17/oc hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/oc /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-doi hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-doi /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-sql hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-sql /home/tusharhero/.emacs.d/elpa/org-9.7.17/oc-natbib hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/oc-natbib /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-octave hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-octave /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-shell hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-shell /home/tusharhero/.emacs.d/elpa/org-9.7.17/org hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-list hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-list /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-irc hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-irc /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-entities hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-entities /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-lilypond hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-lilypond /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-version hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-version /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-matlab hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-matlab /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-footnote hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-footnote /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-capture hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-capture /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-exp hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-exp /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-js hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-js /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-processing hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-processing /home/tusharhero/.emacs.d/elpa/org-9.7.17/oc-bibtex hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/oc-bibtex /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-plot hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-plot /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-publish hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-publish /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-num hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-num /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-agenda hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-agenda /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-fold-core hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-fold-core /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-docview hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-docview /home/tusharhero/.emacs.d/elpa/org-9.7.17/oc-csl hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/oc-csl /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-sqlite hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-sqlite /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-goto hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-goto /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-comint hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-comint /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-fold hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-fold /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-koma-letter hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-koma-letter /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-element-ast hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-element-ast /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-eshell hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-eshell /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-ocaml hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-ocaml /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-makefile hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-makefile /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-keys hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-keys /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-clock hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-clock /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-emacs-lisp hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-emacs-lisp /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-latex hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-latex /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-eval hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-eval /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-python hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-python /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-lua hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-lua /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-gnuplot hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-gnuplot /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-maxima hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-maxima /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-macro hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-macro /home/tusharhero/.emacs.d/elpa/org-9.7.17/oc-biblatex hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/oc-biblatex /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-attach hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-attach /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-eshell hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-eshell /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-macs hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-macs /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-compat hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-compat /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-awk hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-awk /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-ref hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-ref /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-tangle hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-tangle /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-gnus hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-gnus /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-plantuml hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-plantuml /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-eww hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-eww /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-faces hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-faces /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-table hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-table /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-clojure hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-clojure /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-colview hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-colview /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-dot hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-dot /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-tempo hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-tempo /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-lob hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-lob /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-beamer hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-beamer /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-texinfo hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-texinfo /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-id hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-id /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-C hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-C /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-julia hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-julia /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-src hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-src /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-ctags hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-ctags /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-pcomplete hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-pcomplete /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-forth hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-forth /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-perl hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-perl /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-org hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-org /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-ruby hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-ruby /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-duration hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-duration /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-lint hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-lint /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-calc hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-calc /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-habit hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-habit /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-persist hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-persist /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-sass hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-sass /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-css hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-css /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-man hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-man /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-archive hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-archive /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-element hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-element /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-fortran hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-fortran /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-refile hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-refile /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-protocol hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-protocol /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-feed hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-feed /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-icalendar hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-icalendar /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-html hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-html /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-lisp hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-lisp /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-loaddefs hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-loaddefs /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-crypt hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-crypt /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-R hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-R /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-inlinetask hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-inlinetask /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-datetree hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-datetree /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-mhe hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-mhe /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-bbdb hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-bbdb /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-core hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-core /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-table hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-table /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-java hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-java /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-sed hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-sed /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-info hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-info /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-indent hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-indent /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-mouse hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-mouse /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-ditaa hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-ditaa /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-cycle hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-cycle /home/tusharhero/.emacs.d/elpa/org-9.7.17/oc-basic hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/oc-basic /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-rmail hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-rmail /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-screen hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-screen /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-mobile hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-mobile /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-org hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-org /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-groovy hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-groovy /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-haskell hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-haskell /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-scheme hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-scheme /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-odt hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-odt /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-attach-git hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-attach-git /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-md hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-md /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-man hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-man /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-bibtex hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-bibtex /home/tusharhero/.emacs.d/elpa/org-9.7.17/ol-w3m hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ol-w3m /home/tusharhero/.emacs.d/elpa/org-9.7.17/ob-latex hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ob-latex /home/tusharhero/.emacs.d/elpa/org-9.7.17/org-timer hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/org-timer /home/tusharhero/.emacs.d/elpa/org-9.7.17/ox-ascii hides /home/tusharhero/emacs/build/share/emacs/31.0.50/lisp/org/ox-ascii Features: (shadow sort package-x emacsbug modus-vivendi-theme cus-dep loaddefs-gen lisp-mnt cus-theme ef-owl-theme ef-themes try magit-extras magit-bookmark magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert magit-margin magit-transient magit-process with-editor comp comp-cstr warnings magit-mode transient benchmark magit-git magit-base magit-section cursor-sensor crm dash mail-extr display-line-numbers shortdoc cl-print org-modern org-indent oc-basic ol-eww eww vtable url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range message sendmail yank-media rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util mail-utils range ol-docview doc-view filenotify ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi dabbrev misearch multi-isearch help-fns radix-tree comp-run comp-common tramp-cache time-stamp tramp-sh tramp trampver tramp-integration tramp-message tramp-compat parse-time iso8601 tramp-loaddefs face-remap pcmpl-unix pcmpl-gnu vc-git files-x vc-dispatcher dired-aux nerd-icons-dired hl-line org-download org-element org-persist avl-tree generator org-attach org-id org-refile org-element-ast inline url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny async shell flyspell ispell mule-util time rainbow-delimiters rainbow-mode emacs-everywhere breadcrumb imenu envrc inheritenv diff-mode track-changes flycheck server pinentry org-custom-cookies ob-python python project org-tempo org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities time-date noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs thingatpt find-func org-compat tempo org-version org-macs pdf-tools compile comint ansi-osc ansi-color ring pdf-view bookmark text-property-search jka-compr pdf-cache pdf-info tq pdf-util format-spec pdf-macs image-mode exif pdf-loader elec-pair completion-preview nerd-icons-completion marginalia compat icomplete dired dired-loaddefs modus-operandi-theme modus-themes circadian solar cal-dst cal-menu calendar cal-loaddefs pulsar pulse color spacious-padding edmacro kmacro use-package-bind-key bind-key easy-mmode nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon keyfreq which-key cl-extra help-mode use-package-ensure use-package-core finder-inf breadcrumb-autoloads casual-autoloads circadian-autoloads diminish-autoloads ef-themes-autoloads emacs-everywhere-autoloads envrc-autoloads esup-autoloads flycheck-autoloads go-mode-autoloads gptel-autoloads highlight-indentation-autoloads inheritenv-autoloads keyfreq-autoloads magit-autoloads pcase magit-section-autoloads marginalia-autoloads markdown-mode-autoloads nerd-icons-completion-autoloads nerd-icons-dired-autoloads nerd-icons-autoloads olivetti-autoloads org-custom-cookies-autoloads org-autoloads org-download-autoloads async-autoloads org-modern-autoloads pdf-tools-autoloads pet-autoloads f-autoloads dash-autoloads pinentry-autoloads plz-autoloads popon-autoloads pulsar-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads s-autoloads show-font-autoloads spacious-padding-autoloads sudo-edit-autoloads tablist-autoloads transient-autoloads try-autoloads info with-editor-autoloads zig-mode-autoloads reformatter-autoloads package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cus-edit pp cus-load icons wid-edit cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 858154 220995) (symbols 48 41806 4) (strings 32 207170 13116) (string-bytes 1 8602374) (vectors 16 80672) (vector-slots 8 1335935 166610) (floats 8 1590 21761) (intervals 56 31929 1472) (buffers 984 41)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 01 20:24:13 2025 Received: (at control) by debbugs.gnu.org; 2 Jan 2025 01:24:13 +0000 Received: from localhost ([127.0.0.1]:41120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tT9wa-0000Jh-NK for submit@debbugs.gnu.org; Wed, 01 Jan 2025 20:24:12 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:51269) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tT9wZ-0000JL-7X for control@debbugs.gnu.org; Wed, 01 Jan 2025 20:24:11 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5d7e3f1fc01so21814946a12.2 for ; Wed, 01 Jan 2025 17:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735781045; x=1736385845; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=GWFbPhpbKngTWLVpcATugYURVME5QS3E4y3k/bvLwlQ=; b=IJ7dnEQIIq0+GGgpOyX6Bd6K6fGg2ASx36dq3Sm5YcpcFlAMokvTb9GvvwVD9vzt9o J9vhRM64/cGP2c4jD79FfBwk0JWWcapvZd59ek6A/VuLGhHVK8FQakEwocweSxVVsLsL bxjTH6DoRYFuwJxr52/ViYQ7339g68lcszF9yRz9MWYQe5o6yzYzVsTvvXHyMdGRaLIt 9Mbt2x8/m6lzOxeR1QySzUQs/U1zMygs6pAKkx5w0786PhCVTyawwq1iH8aIDwH3Nixd idKRePA64eTzaUKcBFyRBdvuLnu17q/YIphgjk8YyAEYv5+XiaR2zg2GwE3pV1k/nIi5 OfKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735781045; x=1736385845; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GWFbPhpbKngTWLVpcATugYURVME5QS3E4y3k/bvLwlQ=; b=YFgmwOxwXHMQW0mTtks5Q7wIMRCKCksZRLVj7rpjpPvIyv/Iz+hupL5biip6GG434m GQVPgPA/A5HQkmNS2ov4o+PpubD52LcZ5PfDMQTxuxplacYBp0/tSIxKsP+CfRfHCXLd +XhNR9XzBndkXjp8uZHsU2x1VI9EZJ18wO9JU59XDASSNRoltQUhIR7PksFwQip7MJJd ZEFSaVol+VHEF0np8DClZ1rOEWhZhYh6vh5ruQRCktWJCQIB/mlxuQs5ig6cKJecb0wu L7NtxkaC6Yq99bRg/sI58nA77Os79uMgZiw/BrFZaGjChRO4Atzg0lvKJx7HaU8tpwvL nLAQ== X-Gm-Message-State: AOJu0Yzp4/BpYz9Xb1ms5rfsDuxP/r8AAy+s6x2xWf1nX19mHpIg3fuR DAbP3QWv2JSasxaHUDa1Z3ew+oQa8cqS7CSk3vxH8qyDydW9YCKa0kuX2TG4N7vYpHla0WH6WbI b6Ck/blQIMPp/mtTgHA1p5jlnnHGMZH5B X-Gm-Gg: ASbGncsKahUbvkS+WJZ7QCqBHsVYBW9cA58itos+Xm0Y4MoZlAtAdwP5tls5IqXmb1D t2SBatLlSK7wm4jyFgJdIkOHVC4saM75wNkKZz7Uo X-Google-Smtp-Source: AGHT+IEMFqaN7e+l62OYvT1DmalWlwMen4W/3xMSI1Sdws5fuoY/qmE2Yn/LZ5FHAho7S9lUiWrb+FBf/GKgQHAQJJ4= X-Received: by 2002:a05:6402:2109:b0:5d1:2535:84d7 with SMTP id 4fb4d7f45d1cf-5d81de1655amr29853621a12.29.1735781045073; Wed, 01 Jan 2025 17:24:05 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 1 Jan 2025 19:24:04 -0600 From: Stefan Kangas MIME-Version: 1.0 Date: Wed, 1 Jan 2025 19:24:04 -0600 Message-ID: Subject: control message for bug #75142 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 75142 wishlist quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 06:59:23 2025 Received: (at 75142) by debbugs.gnu.org; 4 Jan 2025 11:59:23 +0000 Received: from localhost ([127.0.0.1]:53725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU2oM-0003tX-QD for submit@debbugs.gnu.org; Sat, 04 Jan 2025 06:59:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38628) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU2oL-0003tL-Ng for 75142@debbugs.gnu.org; Sat, 04 Jan 2025 06:59:22 -0500 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 1tU2oG-0001RC-25; Sat, 04 Jan 2025 06:59:16 -0500 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=gYbR1vPkVUXZkRZOdjiDbDD55BgbsXzeSSDyJU7jmlE=; b=NEUguEGNNjea rJaPlfBjokub7hbnZhvOxsOgx4zPgVseUvNb0tFWMQC2ATfEmQsjgwUSOoXLjqRkNhnS41SEeNwjx gmzdASZziAklfTP55ZDQ8TEy3bk7bYwJxTZycQ+euEjglWCDh+hnfw6Id+53SOlBDDahm3HuoYaD3 l6LzaYKiHoUoKAkWbhqdOsZ0tvD7buQ5Al54dVZeBIZYI0VjMddiwVsoy9xALOsTkrzcnROf/doTm eugB5ozmpsyrnoe7uEvoyhGaAh1Jl5th0GOVuPL+MS3JAGz1t3Snvba5YjWWAtcitZTkprbagK+tO JRDE0E+n3yWLN7aCDq4ScQ==; Date: Sat, 04 Jan 2025 13:59:12 +0200 Message-Id: <867c7aeqnj.fsf@gnu.org> From: Eli Zaretskii To: tusharhero@sdf.org, Philip Kaludercic , Stefan Monnier In-Reply-To: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> (bug-gnu-emacs@gnu.org) Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 07:11:28 2025 Received: (at 75142) by debbugs.gnu.org; 4 Jan 2025 12:11:29 +0000 Received: from localhost ([127.0.0.1]:53754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU304-0004WC-Dv for submit@debbugs.gnu.org; Sat, 04 Jan 2025 07:11:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41503) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU302-0004Vx-6D for 75142@debbugs.gnu.org; Sat, 04 Jan 2025 07:11:27 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DB6C7240027 for <75142@debbugs.gnu.org>; Sat, 4 Jan 2025 13:11:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735992679; bh=r63pFuQMGT0aA1Elg4zGiCa9uZbt1xWmxb1VO/Njrno=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=ldtBaQDf350YdLB4ve6BlLXDNIgbL8riTnp51fJzEFNf2WAjK27GSZZKnKAjHA5ye fG00oL8tCbYhWOqkDiRlzYvSvwcwzvpxdB7Ntt0uDR4BwFOlmcLIRZ82X57/RqtAOq /tQIWg0vShKzi1Tk9yKsA721mdZ6hYP+YJb9fmLPAZgSZaXpNLZjtIHgpPD1qonLW+ Ye6txNyt2cfRYBZ+lRANdOsDtJIoMR0rGZcy22n/LTSbEn9rVi2V5m5n2bwMyyLA2u GQpkGfq+w/GHcIx9ySn4iOh2vE8IWG4JIIEuUtRHqXGYjN6hUPR2e8Uy5AKUBnNbr3 VyWFCTpQ38UGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YQK6Z2dCwz9rxF; Sat, 4 Jan 2025 13:11:18 +0100 (CET) From: Philip Kaludercic To: Eli Zaretskii Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. In-Reply-To: <867c7aeqnj.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 13:59:12 +0200") References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Date: Sat, 04 Jan 2025 12:11:17 +0000 Message-ID: <87cyh2ok2i.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, Stefan Monnier , tusharhero@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain 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: --=-=-= Content-Type: text/plain Content-Disposition: inline diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index b4a33db1a77..b3c0e7bccfa 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1848,7 +1848,7 @@ package-refresh-contents and make them available for download. Optional argument ASYNC specifies whether to perform the downloads in the background." - (interactive) + (interactive (list t)) (unless (file-exists-p package-user-dir) (make-directory package-user-dir t)) (let ((default-keyring (expand-file-name "package-keyring.gpg" --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 10:46:27 2025 Received: (at 75142) by debbugs.gnu.org; 4 Jan 2025 15:46:27 +0000 Received: from localhost ([127.0.0.1]:56752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU6M6-000761-IQ for submit@debbugs.gnu.org; Sat, 04 Jan 2025 10:46:27 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64168) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU6M2-00075k-4f for 75142@debbugs.gnu.org; Sat, 04 Jan 2025 10:46:24 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D9521807F5; Sat, 4 Jan 2025 10:46:15 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1736005566; bh=MW4gGYGlDjq9h7Qtjsxwy/fAEYj8SYWouXYIUSdm2p8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YZtkb/f8jU/Z3WZvVV74PUAMqb6G//wZAP2saGp2Ee+eZ/p2c7kis/jgx/r8xZyXE etnEMzbqpV+oT59XUG6e8KNoqXoiY8vy5zptmnQV4mT6knpnYuXCmp74F4lGroq0Wv OMX+fc2qgqg+rTh/Y7XqHyOT0S+xQJLOb9KGL10TMTh7MpvIJ/Hk3VpCN6/rozbipM 3E1w4ZPn6AjC5BUeoN3oHwl/z19/c1fvIfuX9NYqKeTEZXFYZg3iZlSFWNg9VJP5Jr C9KziFF+DdwiYktMsQHr0zsm7X/hSuT1hCuxw5mQlkrZjFKJv3MtRyeERKnvGNK6Mo P2FcmDbfOyu1g== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 87DDF806BF; Sat, 4 Jan 2025 10:46:06 -0500 (EST) Received: from alfajor (104-195-236-84.cpe.teksavvy.com [104.195.236.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 371671204BA; Sat, 4 Jan 2025 10:46:06 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. In-Reply-To: <867c7aeqnj.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 13:59:12 +0200") Message-ID: References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> Date: Sat, 04 Jan 2025 10:46:05 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.063 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, Philip Kaludercic , tusharhero@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 18 04:21:58 2025 Received: (at 75142) by debbugs.gnu.org; 18 Jan 2025 09:21:58 +0000 Received: from localhost ([127.0.0.1]:40157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZ51h-00016X-VU for submit@debbugs.gnu.org; Sat, 18 Jan 2025 04:21:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34712) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZ51e-00016G-IY for 75142@debbugs.gnu.org; Sat, 18 Jan 2025 04:21:57 -0500 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 1tZ51Z-0002ck-4m; Sat, 18 Jan 2025 04:21:49 -0500 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=JlIshDO/2RoOt1F3EDPFO86g7tvokdwJ3TKE+lgrD10=; b=d8C/PbkR7jgW wFbuz4CU1IfJ/DvCPHJ3CIRELCk2+o4DVqgFJkIk9yWGUSPh5SZeLeK/2Zz4ucbEwTHDh7xzDg5Mg Nvn9HWeYfpXKWdOAc9zDdlTWuyIvC1SryJugij8Sg8ZO9I1EDJr7JQDvZXa5HAFTWsY/LomQIwz+l NFq8a8Se1Y2auS+osSXU7UPfy4SQ86K8HjEDt6avlSHfhRgsiFi5FE/NQrJouQXwTcx7Xu0s4ou9+ HQRMYZlmfCxQwMm/8fCJlu+ghv1mYweSQ4WQIHmks6MuaoArISJp4BM8QWggfCuOpdPKXNQeHlxy5 0eSXuXhUvx/7RLRTsRIWWA==; Date: Sat, 18 Jan 2025 11:21:46 +0200 Message-Id: <861px0cw9h.fsf@gnu.org> From: Eli Zaretskii To: tusharhero@sdf.org, Philip Kaludercic In-Reply-To: <87cyh2ok2i.fsf@posteo.net> (message from Philip Kaludercic on Sat, 04 Jan 2025 12:11:17 +0000) Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Did someone try the patch, and if so, did it give good results? > From: Philip Kaludercic > Cc: tusharhero@sdf.org, Stefan Monnier , > 75142@debbugs.gnu.org > Date: Sat, 04 Jan 2025 12:11:17 +0000 > > 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: > > > diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el > index b4a33db1a77..b3c0e7bccfa 100644 > --- a/lisp/emacs-lisp/package.el > +++ b/lisp/emacs-lisp/package.el > @@ -1848,7 +1848,7 @@ package-refresh-contents > and make them available for download. > Optional argument ASYNC specifies whether to perform the > downloads in the background." > - (interactive) > + (interactive (list t)) > (unless (file-exists-p package-user-dir) > (make-directory package-user-dir t)) > (let ((default-keyring (expand-file-name "package-keyring.gpg" From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 18 09:49:58 2025 Received: (at 75142) by debbugs.gnu.org; 18 Jan 2025 14:49:58 +0000 Received: from localhost ([127.0.0.1]:40848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZA97-0003Ws-PR for submit@debbugs.gnu.org; Sat, 18 Jan 2025 09:49:58 -0500 Received: from mx.sdf.org ([205.166.94.24]:51203) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZA95-0003Wj-Gb for 75142@debbugs.gnu.org; Sat, 18 Jan 2025 09:49:56 -0500 Received: from mx.sdf.org (mx [205.166.94.24]) by mx.sdf.org (8.18.1/8.14.3) with ESMTP id 50IEnrqB005009; Sat, 18 Jan 2025 14:49:53 GMT Received: from 43.239.201.157 (SquirrelMail authenticated user tusharhero) by mx.sdf.org with HTTP; Sat, 18 Jan 2025 20:19:53 +0530 Message-ID: <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> In-Reply-To: <861px0cw9h.fsf@gnu.org> References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> Date: Sat, 18 Jan 2025 20:19:53 +0530 Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. From: tusharhero@sdf.org To: "Eli Zaretskii" User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, Philip Kaludercic , monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Ping! Did someone try the patch, and if so, did it give good results? It works but gives no indication of what its doing to the user, and doesn't notify when its done. -- tusharhero From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 18 10:06:28 2025 Received: (at 75142) by debbugs.gnu.org; 18 Jan 2025 15:06:28 +0000 Received: from localhost ([127.0.0.1]:43369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZAP5-0004uq-P2 for submit@debbugs.gnu.org; Sat, 18 Jan 2025 10:06:27 -0500 Received: from mx.sdf.org ([205.166.94.24]:63466) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZAP2-0004ug-Ur for 75142@debbugs.gnu.org; Sat, 18 Jan 2025 10:06:25 -0500 Received: from mx.sdf.org (mx [205.166.94.24]) by mx.sdf.org (8.18.1/8.14.3) with ESMTP id 50IF6Nge013197; Sat, 18 Jan 2025 15:06:23 GMT Received: from 43.239.201.157 (SquirrelMail authenticated user tusharhero) by mx.sdf.org with HTTP; Sat, 18 Jan 2025 20:36:23 +0530 Message-ID: In-Reply-To: <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> Date: Sat, 18 Jan 2025 20:36:23 +0530 Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. From: tusharhero@sdf.org To: "Eli Zaretskii" , "Philip Kaludercic" , monnier@iro.umontreal.ca, 75142@debbugs.gnu.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75142 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Ping! Did someone try the patch, and if so, did it give good results? > > It works but gives no indication of what its doing to the user, and > doesn't notify when its done. Actually it does notify when its done. -- tusharhero From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 11:56:20 2025 Received: (at 75142) by debbugs.gnu.org; 29 Jan 2025 16:56:20 +0000 Received: from localhost ([127.0.0.1]:42796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tdBMS-0004t3-Gk for submit@debbugs.gnu.org; Wed, 29 Jan 2025 11:56:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]:60879) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tdBMO-0004si-Mz for 75142@debbugs.gnu.org; Wed, 29 Jan 2025 11:56:18 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6945F240027 for <75142@debbugs.gnu.org>; Wed, 29 Jan 2025 17:56:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1738169770; bh=l882JdutF8T/gQsL9N7rrheq/gzfyIwWQ/34YGc4EqM=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=LcS7q3rrtsi/4kK6xqMfhCRQZOl1nflU0OjvysbCePfTdA8F30jkBBkA39Yx/DhkY zrphBtdOTeNZPRQkEaiVGqUlcqLaLZX7A7ByMTCk++tUTOnMvVf0E3hxcKkPBa9Ta3 Cso+i7jxaBARpGat5g+/JFdU1MoKHaL+2nVUDVXPHC2MbTztxJ20l5Oycnehqp+uYO icngX3fzZDlL9wh+I2dEDZHP42GhPoltdW1jmW8FYcLYW6otnCrzgHOS6ClewZYm5S e/mzLnh0sbEyttBRb4jdVeyEMATr6uYskOFyI0Z5VHincEmebFp1JfShuYOf/+iTig 232uQvz0ddKUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YjpFj2Ff8z6tw5; Wed, 29 Jan 2025 17:56:09 +0100 (CET) From: Philip Kaludercic To: tusharhero@sdf.org Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. In-Reply-To: <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> (tusharhero@sdf.org's message of "Sat, 18 Jan 2025 20:19:53 +0530") References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Date: Wed, 29 Jan 2025 16:56:08 +0000 Message-ID: <874j1htv87.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain tusharhero@sdf.org writes: >> Ping! Did someone try the patch, and if so, did it give good results? > > It works but gives no indication of what its doing to the user, and > doesn't notify when its done. That is easy to fix, what do you think about: --=-=-= Content-Type: text/plain Content-Disposition: inline diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index be8dc3f8377..3bc63abcce9 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1847,8 +1847,11 @@ package-refresh-contents inform Emacs about the latest versions of all packages it offers, and make them available for download. Optional argument ASYNC specifies whether to perform the -downloads in the background." - (interactive) +downloads in the background. This is always the case when the command +is invoked interactively." + (interactive (list t)) + (when async + (message "Refreshing package contents...")) (unless (file-exists-p package-user-dir) (make-directory package-user-dir t)) (let ((default-keyring (expand-file-name "package-keyring.gpg" --=-=-= Content-Type: text/plain > -- > tusharhero --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 30 23:53:26 2025 Received: (at 75142) by debbugs.gnu.org; 31 Jan 2025 04:53:26 +0000 Received: from localhost ([127.0.0.1]:48924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tdj1y-0003Wq-5o for submit@debbugs.gnu.org; Thu, 30 Jan 2025 23:53:26 -0500 Received: from mx.sdf.org ([205.166.94.24]:56189) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tdj1v-0003We-T6 for 75142@debbugs.gnu.org; Thu, 30 Jan 2025 23:53:24 -0500 Received: from mx.sdf.org (mx [205.166.94.24]) by mx.sdf.org (8.18.1/8.14.3) with ESMTP id 50V4rLO0016525; Fri, 31 Jan 2025 04:53:21 GMT Received: from 43.230.214.212 (SquirrelMail authenticated user tusharhero) by mx.sdf.org with HTTP; Fri, 31 Jan 2025 10:23:21 +0530 Message-ID: In-Reply-To: <874j1htv87.fsf@posteo.net> References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> <874j1htv87.fsf@posteo.net> Date: Fri, 31 Jan 2025 10:23:21 +0530 Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. From: tusharhero@sdf.org To: "Philip Kaludercic" User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > tusharhero@sdf.org writes: > >>> Ping! Did someone try the patch, and if so, did it give good results? >> >> It works but gives no indication of what its doing to the user, and >> doesn't notify when its done. > > That is easy to fix, what do you think about: That works. -- tusharhero From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 02:56:07 2025 Received: (at 75142) by debbugs.gnu.org; 31 Jan 2025 07:56:07 +0000 Received: from localhost ([127.0.0.1]:49516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tdlsk-0001xe-SF for submit@debbugs.gnu.org; Fri, 31 Jan 2025 02:56:07 -0500 Received: from mout01.posteo.de ([185.67.36.65]:42363) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tdlsi-0001wz-TV for 75142@debbugs.gnu.org; Fri, 31 Jan 2025 02:56:05 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 69EB2240027 for <75142@debbugs.gnu.org>; Fri, 31 Jan 2025 08:55:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1738310157; bh=lSsVU/Chl7m/5mbZTr9tFsPQkM0oadYwm9U9yOOtkLs=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=PQhOIBCX6MDSWX0sIA7cvTxhYQkjKyOprd/AWFbpcHGM8/3W/5cHeuCGiP9RcdQLd 5fUHXNTZQjaUMY1udFMxlyVp5dwWTMjtnbSfEetVDYfrVa+407jUkiW25txHPHS4B0 siZRxlXUMoItnSEXEvZ2USIrMg/xEXWmBeFj0noDXAhCQDc91yXfr9jstcH/Hxhg1p RZ1M86vmt/gxblAQsQOETNnduyUXqnxde2uZxneKaJse5odaIzPtqd+3IoJ6AgKfrT JhehyGu4mLz6L1lcqieQdVQfS+ys03hlh1m172QayxCjHn3ZlMfJgQ4qS4TBK+exNO n80QYWO+5WQzg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ykp9S1kyqz6twf; Fri, 31 Jan 2025 08:55:55 +0100 (CET) From: Philip Kaludercic To: tusharhero@sdf.org Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. In-Reply-To: (tusharhero@sdf.org's message of "Fri, 31 Jan 2025 10:23:21 +0530") References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> <874j1htv87.fsf@posteo.net> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Date: Fri, 31 Jan 2025 07:55:55 +0000 Message-ID: <874j1fa038.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain tusharhero@sdf.org writes: >> tusharhero@sdf.org writes: >> >>>> Ping! Did someone try the patch, and if so, did it give good results? >>> >>> It works but gives no indication of what its doing to the user, and >>> doesn't notify when its done. >> >> That is easy to fix, what do you think about: > > That works. Great, if there are no objections I'd push --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Refresh-package-list-without-blocking.patch >From 6ead0be930dff721ee575f17f89917dbcfe0fd1e Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Fri, 31 Jan 2025 08:55:02 +0100 Subject: [PATCH] Refresh package list without blocking * lisp/emacs-lisp/package.el (package-refresh-contents): Run asynchronously when invoked interactively. * etc/NEWS: Mention the change. --- etc/NEWS | 4 ++++ lisp/emacs-lisp/package.el | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 22cf8c636c2..9e50d61f6bf 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -951,6 +951,10 @@ removing packages. When invoked with a prefix argument, 'package-install-selected-packages' will not prompt the user for confirmation before installing packages. +--- +*** 'package-refresh-contents' runs asynchronously +Refreshing the package index will not block when invoked interactively. + ** Xref --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index be8dc3f8377..3bc63abcce9 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1847,8 +1847,11 @@ package-refresh-contents inform Emacs about the latest versions of all packages it offers, and make them available for download. Optional argument ASYNC specifies whether to perform the -downloads in the background." - (interactive) +downloads in the background. This is always the case when the command +is invoked interactively." + (interactive (list t)) + (when async + (message "Refreshing package contents...")) (unless (file-exists-p package-user-dir) (make-directory package-user-dir t)) (let ((default-keyring (expand-file-name "package-keyring.gpg" -- 2.47.2 --=-=-= Content-Type: text/plain to master. > -- > tusharhero --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 05:23:51 2025 Received: (at 75142) by debbugs.gnu.org; 15 Feb 2025 10:23:51 +0000 Received: from localhost ([127.0.0.1]:53487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjFKx-0002fK-Ef for submit@debbugs.gnu.org; Sat, 15 Feb 2025 05:23:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40814) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjFKv-0002f5-9t for 75142@debbugs.gnu.org; Sat, 15 Feb 2025 05:23:50 -0500 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 1tjFKp-0000el-45; Sat, 15 Feb 2025 05:23:43 -0500 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=3Q5lWfOOrGfwYB9+m0ayjxm1+GeCVD+qg3UaZAHV0D8=; b=eg9LG5JFD+kN HIOjf0OU91wDZ+jJDhKh41jtV0mHwtqHsHAx85cDRqWEGELOKFWjG4FVq8x0miuqEgRiJ6+rEL0AC oxTpt0GWz72UFB8L+LWrtJVaX5AuQ5lA+2Qa0iJRLa/joUP5s3L/ULsE4+Wf3ntxp0hRWr5ZbF8+L TV9V+Uwi6ZnVDksl3KvOaFRgboTftChMl/uMFVrxpbenrQ5xlTP3c+1iruQHtxU0oZ6/T99jKm3s0 LezMDRoYEl/mWOwY83Rt66YFnSKhbbkbgKNdTp45l8WwEvq6+IEry+wBy4WzwCG1fxoHlBGsumGcl 8N6UMZ7TLKJOsBkiAAI/gg==; Date: Sat, 15 Feb 2025 12:23:40 +0200 Message-Id: <86wmdrecb7.fsf@gnu.org> From: Eli Zaretskii To: Philip Kaludercic In-Reply-To: <874j1fa038.fsf@posteo.net> (message from Philip Kaludercic on Fri, 31 Jan 2025 07:55:55 +0000) Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> <874j1htv87.fsf@posteo.net> <874j1fa038.fsf@posteo.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75142 Cc: 75142@debbugs.gnu.org, monnier@iro.umontreal.ca, tusharhero@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Philip Kaludercic > Cc: "Eli Zaretskii" , monnier@iro.umontreal.ca, > 75142@debbugs.gnu.org > Date: Fri, 31 Jan 2025 07:55:55 +0000 > > tusharhero@sdf.org writes: > > >> tusharhero@sdf.org writes: > >> > >>>> Ping! Did someone try the patch, and if so, did it give good results? > >>> > >>> It works but gives no indication of what its doing to the user, and > >>> doesn't notify when its done. > >> > >> That is easy to fix, what do you think about: > > > > That works. > > Great, if there are no objections I'd push Did you push it? If not, please do, and please close the bug when you do. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 07:51:55 2025 Received: (at 75142-done) by debbugs.gnu.org; 15 Feb 2025 12:51:55 +0000 Received: from localhost ([127.0.0.1]:53898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjHeF-0004Nv-AV for submit@debbugs.gnu.org; Sat, 15 Feb 2025 07:51:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]:48165) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjHeC-0004Ne-0K for 75142-done@debbugs.gnu.org; Sat, 15 Feb 2025 07:51:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7BC5D240101 for <75142-done@debbugs.gnu.org>; Sat, 15 Feb 2025 13:51:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1739623905; bh=HQfZXICpj7oNQwdweHPEYv5OsKhTYdWztPG2uutrZJM=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=Jr3HRCVv395nHe3jkvK3xs5eYnqd2BG9I+JnEiq87yqW6SZ9cwS1LQjmmW6bQzcJS 9HBxhsdCUHUXf6sAs2AnpQK79mcLcTWFU9MEp1tseWdslH9ALugPs2husr2yVUt92g YSFgsbC7c10GUHM3EOvKHuBgKXOTdTaeW7VtLsCJMke+hFPghhBOLnQrhyaHp7L3rh x3L57pXtXJ3IiaxUGvC0mUy6zlNuliNhCG1BtPqfR/3suF/5/YssHFXe+JwuCVEX9f qKhPvtgvB5FaQjvfpe/B3xLz6L3xIhN4QLw7LiNn9w50CTqZgip7mZp2XjiW9Qh9MQ OjVyiFfJss7jA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Yw81q4Srtz9rxB; Sat, 15 Feb 2025 13:51:42 +0100 (CET) From: Philip Kaludercic To: Eli Zaretskii Subject: Re: bug#75142: 31.0.50; package-refresh-contents is not async when using interactively. In-Reply-To: <86wmdrecb7.fsf@gnu.org> References: <58238e831c03d6a78f50012711eff12c.squirrel@mx.sdf.org> <867c7aeqnj.fsf@gnu.org> <87cyh2ok2i.fsf@posteo.net> <861px0cw9h.fsf@gnu.org> <0c13a455c995236f46a04d068da9679b.squirrel@mx.sdf.org> <874j1htv87.fsf@posteo.net> <874j1fa038.fsf@posteo.net> <86wmdrecb7.fsf@gnu.org> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Date: Sat, 15 Feb 2025 12:51:41 +0000 Message-ID: <87v7tbcqw2.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75142-done Cc: 75142-done@debbugs.gnu.org, monnier@iro.umontreal.ca, tusharhero@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: "Eli Zaretskii" , monnier@iro.umontreal.ca, >> 75142@debbugs.gnu.org >> Date: Fri, 31 Jan 2025 07:55:55 +0000 >> >> tusharhero@sdf.org writes: >> >> >> tusharhero@sdf.org writes: >> >> >> >>>> Ping! Did someone try the patch, and if so, did it give good results? >> >>> >> >>> It works but gives no indication of what its doing to the user, and >> >>> doesn't notify when its done. >> >> >> >> That is easy to fix, what do you think about: >> > >> > That works. >> >> Great, if there are no objections I'd push > > Did you push it? If not, please do, and please close the bug when you > do. Oops, yes I did push the change, sorry! Closing the report. From unknown Sat Aug 16 10:49:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Mar 2025 11:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator