]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix pp-emacs-lisp-code printing of symbols
authorMichael Heerdegen <michael_heerdegen@web.de>
Sun, 18 Feb 2024 01:48:15 +0000 (02:48 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:28:47 +0000 (10:28 +0100)
* lisp/emacs-lisp/pp.el (pp--insert-lisp): Print symbols
readably (bug#69168).

(cherry picked from commit 9a2ce74c3783c4be8ba70642da374d8e77c6f9ac)

lisp/emacs-lisp/pp.el

index 1d7220514064a343a756a0e202aed05356227418..944dd75083995f0dc6389bafe75f20f35cdb3d8e 100644 (file)
@@ -458,6 +458,8 @@ the bounds of a region containing Lisp code to pretty-print."
     (string
      (let ((print-escape-newlines t))
        (prin1 sexp (current-buffer))))
+    (symbol
+     (prin1 sexp (current-buffer)))
     (otherwise (princ sexp (current-buffer)))))
 
 (defun pp--format-vector (sexp)