]> git.eshelyaron.com Git - emacs.git/commitdiff
Further fixes for package-quickstart-refresh printing
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 9 Aug 2021 12:47:01 +0000 (14:47 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 9 Aug 2021 12:47:05 +0000 (14:47 +0200)
* lisp/emacs-lisp/package.el (package-quickstart-refresh): Really
ensure that the structures aren't shortened (bug#49924).

lisp/emacs-lisp/package.el

index dfd2148aa6b95c437725cb423cd0214f475aed16..82ea9e736584c190be2a3d2b452abb0b666bc78f 100644 (file)
@@ -4152,6 +4152,10 @@ activations need to be changed, such as when `package-load-list' is modified."
         (package-activated-list ())
         ;; Make sure we can load this file without load-source-file-function.
         (coding-system-for-write 'emacs-internal)
+        ;; Ensure that `pp' and `prin1-to-string' calls further down
+        ;; aren't truncated.
+        (print-length nil)
+        (print-level nil)
         (Info-directory-list '("")))
     (dolist (elt package-alist)
       (condition-case err
@@ -4169,9 +4173,7 @@ activations need to be changed, such as when `package-load-list' is modified."
                 ;; Prefer uncompiled files (and don't accept .so files).
                 (let ((load-suffixes '(".el" ".elc")))
                   (locate-library (package--autoloads-file-name pkg))))
-               (pfile (let ((print-length nil)
-                            (print-level nil))
-                        (prin1-to-string file))))
+               (pfile (prin1-to-string file)))
           (insert "(let ((load-true-file-name " pfile ")\
 (load-file-name " pfile "))\n")
           (insert-file-contents file)