From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: `unreadablep' Date: Wed, 15 Dec 2021 18:21:34 +0800 Message-ID: <87sfuuqic1.fsf@yahoo.com> References: <87bl1imhnd.fsf@gnus.org> <87r1aetgdn.fsf@localhost> <871r2eryaz.fsf@yahoo.com> <87o85itbiw.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19539"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 15 11:23:37 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mxRRe-0004oD-I9 for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 11:23:34 +0100 Original-Received: from localhost ([::1]:54596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxRRd-0007Jd-9Y for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 05:23:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxRPw-0005XM-Gp for emacs-devel@gnu.org; Wed, 15 Dec 2021 05:21:50 -0500 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:38826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxRPs-0005bt-Fz for emacs-devel@gnu.org; Wed, 15 Dec 2021 05:21:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639563702; bh=516xiL9BXu9Vs7IAQQZjPzCF7skHYO/PlgK66kavPNw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=MDc8BNI2rcbJ/BLhlBisNiKOQO9Bk/kPWKgw7D1ARvff4E2oW+gliWkz6j93SBGGRGrs+Nbi4oI2y7t45bsxiHS5ddvuW5zNQ/DcU+noleguqtLyRPLSXix0fBnfu12Z5PdNoCRJx/uWeHo81dY2Bjgb1urYf8H9xL5BgCOYSZqd1s9CDvjP9z83ObtsfBoShFKm3DLzJ+g8lzC0j5u7sp8xnpmi3K1zHDOA9ndke2Nv7nlUvC1FkdQ8prCHixucNMESYcUsOxIiikYstjgllzbWaOfdffg74sgAjTGQArUFSl3CL7W+Pu/ph0kXXBpQKUQipq6qPf3hVL/oXB5jvQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639563702; bh=AzVNW9JHC7x6dg5GERDFPYLax2HUwZoI4WVekTe5cZW=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=hErv1fYNhpvl9eeoVhRAd7kQYqwGEsHFkgUkAESgJrTDi1XxzlVrFqL+VbdZ5g86owA+1yM1IrZKm2aHBTUk/DvBLfnEriMytAIwodLJJOyrIhoG+Fl8tVLh7O4m0KaqS2KIRgtZsUfC+sBdrbRg7jNhV8ZELKeTLYOMvzsdM0+BgUGkmGUv+Db179kHZwGBmBy0qBAEdBJrxQzxBCTgvYVSugDcCiITlnYPNo5+qob1BEETXQl3+fbrXxTiUF6yRkcSpLxKCmqECOqX9RSZRtEH5lVufpFqoMptGN9vgqs7SJiZFoQsscjS+JQFc3Z3LNBL2inGGTaRC2AqukJXhA== X-YMail-OSG: 8AOEmTEVM1l3Uz7LOcJHpywa2gTOM_.Sje56o2YujpJfZna7RxmeZ8AuOCBDHH0 52b.aL07YryjB1WPqWHNWtJtl5.VKVeNYPY2j0uNPkIATTxHjlepO4ang.j.11Ui6rWq1zZQZ50X D4t6Wsjj56jwdpcxwqa0qCX_SsRpCeo0gJcguSz668reSeZrMfvTLHnnFJuu0bjItXQomEi9fMV8 NztEi1oUpVbJcGj.peyoI.F9me_oacioQHsYmh2fKuk5w6SzJjqJaH5pz7bWtw5cLgbNFfv9Wnaz QZZFmbsMo.vivANXhcnKpT1VGqoJwXxeLa3Gq_LcaM7yoDRMEnW32t1s9ZSCLCDS1O63IWYC8Tdb N_7o9irtek7Vy5Qa9yXmZpV6w8W.Ty6q1ylmjX9HH5Gc6gdlfJ0_pC66OGflut_Ve8KaLNvGbU2H Qclxb0s0fqwDpifHsx8srg.25zhaerwd8MzJR3okKw3YQ0d4kpber2kEiizIHalONi3nhwW6MZCu JWrMJdIS9TpsxTi4qB8Q4EAbFNNoHLATpTNtDFbbhpzX7AzBczryMd4l9QiG8W39hAQuPjyWHESV W0fcOgZWwp.rFQJKsaiL2SP5USYwvHT9hZqtmghV3tBZOqYumwtPBIciAiG857eCHNGcLJ8PreUL D9nA9Z6cIvo6u4PeIXzzqNL6rWsYxuuARa43hmJRYVB1t52fccozUgLHNGY8jnDxDBfVAJNraxe_ CYMeFYRSeQsWyWSRjcq6AObKkYI9JB2C7Zx0U864owfdskKnbIK7rrjHzgJcSZFoMR1Xp44I1Mrd ob33cQk8OlQJpSQrcRFE.mKSUSyw4p470CHyi.kZn0 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Dec 2021 10:21:42 +0000 Original-Received: by kubenode508.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID adb06005ad5de7b91ff010c6e31e7f1a; Wed, 15 Dec 2021 10:21:38 +0000 (UTC) In-Reply-To: <87o85itbiw.fsf@localhost> (Ihor Radchenko's message of "Wed, 15 Dec 2021 18:20:23 +0800") X-Mailer: WebService/1.1.19415 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.204; envelope-from=luangruo@yahoo.com; helo=sonic311-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282006 Archived-At: Ihor Radchenko writes: > Variable would indeed be better. Using variable is more consistent with > the existing behaviour. prin1 can already be controlled by variables > like print-level, print-circle, etc > > Though the name should probably start with print-. Maybe something like > print-unreadable (t by default, nil will make prin1 throw an error, and > 'replace to print the value of print-unreadable-as instead of unreadable > object). > > Yet another option may be not printing anything when print-unreadable is > t and throwing an error when print-unreadable is 'error, but I am not > sure if that much customisation is too much. How about `print-throw-if-printing-unreadably'?