[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters
From: |
No Wayman |
Subject: |
bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters |
Date: |
Fri, 10 May 2024 19:56:20 -0400 |
From the body of pp--insert-lisp in pp.el:
```emacs-lisp
;; Print some of the smaller integers as characters, perhaps?
(integer
(if (<= ?0 sexp ?z)
(let ((print-integers-as-characters t))
(princ sexp (current-buffer)))
(princ sexp (current-buffer))))
```
I stumbled on this behavior in a program of which pretty prints
elisp forms as part of a report.
I don't want characters when the input form originally included
integers.
Why do we do this here? The commentary doesn't offer any insight
and sounds confused about the behavior, too.
Is it worth making configurable, or outright removing?
bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters, Michael Heerdegen, 2024/05/11