unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters
@ 2024-05-10 23:56 No Wayman
  2024-05-11  0:10 ` No Wayman
  2024-05-11 10:54 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 26+ messages in thread
From: No Wayman @ 2024-05-10 23:56 UTC (permalink / raw)
  To: 70868



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?





^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-05-28 10:51 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 23:56 bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters No Wayman
2024-05-11  0:10 ` No Wayman
2024-05-11  6:47   ` Eli Zaretskii
2024-05-11 10:58   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-11 11:09     ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-11 12:08       ` Mattias Engdegård
2024-05-11 14:48         ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-11 15:10           ` Mattias Engdegård
2024-05-11 11:32     ` Andreas Schwab
2024-05-11 10:54 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-11 16:38   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-11 16:47     ` Eli Zaretskii
2024-05-11 18:26       ` bug#70868: 30.0.50; iarchivedmywholelife
2024-05-11 18:29         ` Eli Zaretskii
2024-05-11 18:33           ` Eli Zaretskii
2024-05-12 14:50             ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-12 15:06               ` Eli Zaretskii
2024-05-12 15:15                 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-12 15:42                   ` Eli Zaretskii
2024-05-12 18:11                     ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-28 10:51                       ` bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-12 21:39                     ` bug#70868: 30.0.50; Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14 18:25                       ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14 22:30                         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14 18:28                       ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14 20:16                         ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).