From 804f36d5abdbc38a4664a341aaea563195f79b03 Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Sun, 26 May 2024 16:31:26 +0200 Subject: [PATCH] Don't let pp fall back to prin1 for conses * lisp/emacs-lisp/pp.el (pp--insert-lisp): Don't `prin1' non-list conses; use our pp function for cons and list printing `pp--format-list' instead. --- lisp/emacs-lisp/pp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index 3176ee42533..e550bd4d689 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el @@ -491,7 +491,7 @@ pp--insert-lisp (pp--insert-lisp (cadr sexp))) (pp--format-list sexp)))) (t - (prin1 sexp (current-buffer))))) + (pp--format-list sexp)))) ;; Print some of the smaller integers as characters, perhaps? (integer (if (<= ?0 sexp ?z) -- 2.39.2