From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70868: 30.0.50; pp--insert-lisp prints small integers as characters Date: Sat, 11 May 2024 18:38:48 +0200 Message-ID: <87ikzk717r.fsf@web.de> References: <87ikzl8bmj.fsf@gmail.com> <87pltsboug.fsf@web.de> Reply-To: Michael Heerdegen Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: iarchivedmywholelife@gmail.com To: 70868@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 11 18:39:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5pkh-0002GL-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 May 2024 18:39:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5pkY-0005jS-85; Sat, 11 May 2024 12:39:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5pkW-0005j4-F1 for bug-gnu-emacs@gnu.org; Sat, 11 May 2024 12:39:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5pkV-0008LP-Gs for bug-gnu-emacs@gnu.org; Sat, 11 May 2024 12:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5pkU-0000d7-SZ for bug-gnu-emacs@gnu.org; Sat, 11 May 2024 12:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2024 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70868 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: No Wayman , 70868@debbugs.gnu.org Original-Received: via spool by 70868-submit@debbugs.gnu.org id=B70868.17154454932395 (code B ref 70868); Sat, 11 May 2024 16:39:02 +0000 Original-Received: (at 70868) by debbugs.gnu.org; 11 May 2024 16:38:13 +0000 Original-Received: from localhost ([127.0.0.1]:49150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5pjg-0000cZ-LV for submit@debbugs.gnu.org; Sat, 11 May 2024 12:38:12 -0400 Original-Received: from mout.web.de ([217.72.192.78]:60315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5pje-0000cT-E0 for 70868@debbugs.gnu.org; Sat, 11 May 2024 12:38:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1715445484; x=1716050284; i=michael_heerdegen@web.de; bh=tQYiRLfC+5rauync4OvcxVgkrIak8EMAfEYAWYKgqlg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=suH3Gf4GLY/xnGMdr3I7Ftztta3+ahClblA8aB6i25be1NWenOlGfhhdomVnqYal AzlLsVSc3JFxHtuXvG/KSd9K0cPcJjOPE80KsEADI6jEkWRC45KyxbalUIoID0qi1 dgQKSXKqPSbKVRjbJL+zIExdVPJezWf7fPRQGB8V7i/a68vHldZNmaKw1IO+Wzruu wOCtZSAWuWsAOe1XQoP9S2wrR3OQW1g7Qn0YUaBWN7N3RLi7uYw1UXzZBb7P9J4yD uMTPK8Q29D118GmuTRqml2mx3sKVUvUme7DU8C8zqEmkC2/1r1AbCRZbVKx4d4ziV pg4m9Yy2U09yma6D2g== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MUUAM-1sEjfQ1PSy-00QWX9; Sat, 11 May 2024 18:38:04 +0200 In-Reply-To: <87pltsboug.fsf@web.de> (Michael Heerdegen via's message of "Sat, 11 May 2024 12:54:47 +0200") X-Provags-ID: V03:K1:GhspXzxixu56O3w1RPzDhg//6KSyKHE/VK7e+6DrHFmKy8S0YO3 vklMjogQ664k2JULUVQ47JaehjIxGD1GMTi4PDFPbAXMj5NgwWhycYMVhVHVsH6w5ANWIo2 VWDdBJABtUlPqGfIpfnJsim/kRGhugqH4qJ56h/98plpcEVPnkygTDdB150e1KrrUi7CNTM jHiQuWjLSIvdAxjTSkSOw== UI-OutboundReport: notjunk:1;M01:P0:xbk38h+v/40=;08UtFddpQ39tPWoSCEczBhUNZ9w Q0xJFxsjXje4hc4DMmPIeGLmtfPdlklK+/+UyRt3atFjYkhGVzvpqcffkK2DWGqRTx4/8o5U/ mK1jRWETaTfMKFxVd058Hex6vtf3tuVZRmEgaIifogr5yhY66gjM9vY+QhBrNzuWxGYInZrmj TJCxdx9wWhLgtGUR09WvrIuGws2Vny6jqOHZTTAooytS56cW/wRt82l8bFBaW0Uj31QzljXrf 7JNn8FphAfSduWGlbNuxl+lyJdtlWIsDJKg9EAfSzAv8bJltsmKiOXOuLMaIaLlV/SmU3NSC9 B0iK4r16kYl298skSpP4GDCLIHb/mFJOWpMLpCAuUikC1CkOrIbj/mS+SdrYE/8x1OMuxbG3y GJIepPdaD0dCZFAsBDuHdz6+JOIQXmUXhhy9/agdUHrpI0L3kEZn9pn4OY4GlrYbkGIrLUgPV L/fB+370GJw+ani+4M9KjYpoqjxWxaesqEtntZjb98R5CbH9HE37XrjGaAD06QBZLLz/9YhrE W+405q9mCzw/8FrtjpKcsq3azOADB4sihaj8O5NEQkm3/w+Uwgo0pHNyMGoGPcXL9xr5l/xmL qEJ1K75sOPFB4W9KaNJtHcQ4U7sZRLU1ZSHMBcF4z06OHtMxdvFhipGQbI8kbFJ+zAS99XKG5 6hen4MtaBqlxd6OAG+VIBVBvDb2WjWNwqLBf8yNrzVSPtft3xHdL1sCvhn8OKiykB8ObH82om tr439RFQxkjSqeXRC5aBf014lhP8mfbhBukY85YYr5F/GT2OxTiS1Rm7xuipme2wOTBrBNob X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284875 Archived-At: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > > Is it worth making configurable, or outright removing? > > We could make it configurable, but note that this will not avoid this > kind of problem: one and the same expression can include numbers in that > range that are "meant" as characters and others that are "meant" as > integers. Characters being printed as integers is likewise annoying as > the opposite problem. > > Anyway, adding a user option will probably be the best solution we can > implement. We already have `print-integers-as-characters', though. So if we want to make this completely controllable on the per usage basis, removing those lines would indeed make more sense. Then the user could just bind `print-integers-as-characters' as for any other printing action. Another thought: In a lot of cases the user specifies code in an already printed form - either at a (e.g. the M-:) prompt as a function argument, or the code is present in a buffer or file. And the user just wants to have it prettified. Then we `read' it, losing all syntactical distinctions and redundancies, and guess what syntax might be appropriate although we just threw that information away. Doing it differently would mean to write something new that would operate on strings or buffer text instead of printing expressions. AFAIR, some the pp functions already do that but on a very simple level (like adding newlines and indentation). Michael.