From bc1ffc5f6e4f560dec04637e1aeadb7a5db918c4 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 7 Aug 2021 12:59:22 +0200 Subject: [PATCH] Fix print-length issue in comp-run-async-workers * lisp/emacs-lisp/comp.el (comp-run-async-workers): Bind print-length/print-level to ensure there's no truncation (bug#49922). --- lisp/emacs-lisp/comp.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 638d4b274cc..a04413b6f00 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -3936,7 +3936,9 @@ display a message." (concat "emacs-async-comp-" (file-name-base source-file) "-") nil ".el")) - (expr-strings (mapcar #'prin1-to-string expr)) + (expr-strings (let ((print-length nil) + (print-level nil)) + (mapcar #'prin1-to-string expr))) (_ (progn (with-temp-file temp-file (mapc #'insert expr-strings)) -- 2.39.2