From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43866: 26.3; italian postfix additions Date: Sat, 30 Apr 2022 14:19:32 +0200 Message-ID: <87k0b63grv.fsf@gnus.org> References: <83tuv47vkn.fsf@gnu.org> <87ft6igdzi.fsf@mail.linkov.net> <837drt1qta.fsf@gnu.org> <874kmx443u.fsf@mail.linkov.net> <83k0vszw0e.fsf@gnu.org> <87d01kvbnj.fsf@mail.linkov.net> <83wnzsxln9.fsf@gnu.org> <87wnzmgd1f.fsf@mail.linkov.net> <83mu0hng0d.fsf@gnu.org> <87r1ps8xh4.fsf@mail.linkov.net> <831rhroexo.fsf@gnu.org> <87blgv60ug.fsf@mail.linkov.net> <83d01bmol5.fsf@gnu.org> <871rhr3057.fsf@mail.linkov.net> <83blgvmnpu.fsf@gnu.org> <87h7qn1i8z.fsf@mail.linkov.net> <834kmmmn5j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: rpluim@gmail.com, 43866@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 30 14:20:13 2022 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 1nkm57-000AHg-Ae for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Apr 2022 14:20:13 +0200 Original-Received: from localhost ([::1]:39616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkm56-00051H-9X for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Apr 2022 08:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkm4x-00050d-4U for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2022 08:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkm4w-0003Ij-QE for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2022 08:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkm4w-0007yc-Kx for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2022 08:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2022 12:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43866 X-GNU-PR-Package: emacs Original-Received: via spool by 43866-submit@debbugs.gnu.org id=B43866.165132118630622 (code B ref 43866); Sat, 30 Apr 2022 12:20:02 +0000 Original-Received: (at 43866) by debbugs.gnu.org; 30 Apr 2022 12:19:46 +0000 Original-Received: from localhost ([127.0.0.1]:56060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkm4f-0007xq-VB for submit@debbugs.gnu.org; Sat, 30 Apr 2022 08:19:46 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkm4e-0007xc-Bw for 43866@debbugs.gnu.org; Sat, 30 Apr 2022 08:19:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0Cw5TsJY77vbCeb8SvzPT3KhkLHIG80Nw7s81QC9L38=; b=Lj1uM0l7zvqyKr2/2i/+UysMgq 0lL1vlcG8CyTc91RzBIPEFfQKFOzbnwGF+hqXxVLx8KeJqZjS+bA/4NWMKUevUy/96X4V0WpWvMFM hNTxyqDzp/2QnG6NrAAx8dHtMJYc9yiehJXG8biEKzuFYsZaPdjAypxSrvncBwNUXGFI=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkm4U-0007kk-S3; Sat, 30 Apr 2022 14:19:37 +0200 X-Now-Playing: New Order's _Technique_: "Fine time" In-Reply-To: <834kmmmn5j.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Oct 2020 15:59:52 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:231023 Archived-At: Eli Zaretskii writes: >> + DEFVAR_LISP ("print-integers-as-chars", Vprint_integers_as_chars, >> + doc: /* Print integers as characters. */); >> + Vprint_integers_as_chars = Qnil; > > I wonder whether it wouldn't be cleaner to add another optional > argument to prin1, and let it bind some internal variable so that > print_object does this, instead of exposing this knob to Lisp. > Because print_object is used all over the place, and who knows what > will this do to other callers? There's also prin1-to-string, and adding a parameter to these functions just for this doesn't seem quite right. However, I agree with you that adding a new print-* variable is bad, too (because users will invariably set them in .emacs and then things break in some obscure package). So I wonder whether we could come up with a new convention for print variables like this, which would allow us to extend printing more without adding new print variables. What about -- adding a new parameter to prin1 and prin1-to-string that's a plist of printing features? That is, something like: (prin1 object nil '(length 20 integers-as-chars t)) And this would allow us to introduce a special value for that parameter, like t, which means "use the standard values for everything". That means we could get rid of the gazillion places where we have (let ((print-length nil) (print-level nil)) (prin1 object)) That would instead just be (prin1 object nil t). (And the same with prin1-to-string.) This would hopefully be less error-prone than what we have today -- we've had so many bug reports from packages forgetting to bind one or the other when saving data. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no