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 20:22:00 +0800 Message-ID: <87v8zqoy6v.fsf@yahoo.com> References: <87bl1imhnd.fsf@gnus.org> <87h7bas2kb.fsf@yahoo.com> <87wnk6l0yu.fsf@gnus.org> <87czlyryq0.fsf@yahoo.com> <87sfuuktj2.fsf@gnus.org> <8735muqfcy.fsf@yahoo.com> <87k0g6kqmh.fsf@gnus.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="26044"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 15 13:24:38 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 1mxTKo-0006Wp-EA for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 13:24:38 +0100 Original-Received: from localhost ([::1]:54682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxTKm-0007CK-KV for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 07:24:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxTIV-0005am-Rh for emacs-devel@gnu.org; Wed, 15 Dec 2021 07:22:15 -0500 Original-Received: from sonic304-21.consmr.mail.ne1.yahoo.com ([66.163.191.147]:42441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxTIQ-0002Ce-Cd for emacs-devel@gnu.org; Wed, 15 Dec 2021 07:22:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639570927; bh=/7eETaCdCi5WUVDakeeKCuQF1JZTheKYoNPWIJOXaBg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=HLUpu+tRPeiYPYjFBPX28MWkTgzf+99e+V5kzd07q4oAaMF9+8Ir3D9c4ssbOAOhrst2wS3JCR6W9+OLeG6i2XETTzmxm/5O1Gfz12BvYim2BBQ2/AZ8zAHbxS67oIqLn/c767mEkjQri2YQvoYcw/u4hgh7hlXJibKEq4Shq+8q0/5/tD+LO7X1q5jfoUsD324yMa7iwMU7f7CmLJ0edKwjSWs/QshGhH6tNtgAZ3KGMgq2v+ZK4O6sk4I04oDIIHOsvrtafednxqfv7dpGd7MXq85mS8skRKcECQTtw2OK3mnbMvOxnOJ5uw5lhI4ObNnbG4Emj8AykpGULrX8Fw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639570927; bh=S0WoGSntWm+cAdMa2brbbRMq/t/txeYfYVjrsYw2r1z=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=LJGejnef2znNHA56hlZSGKzbEUq+81ht7G2AzWmd1vbo9EVnHxwp6YRn8n5IANxZvcLVcCTsL9ge+eUkIGHCiqum1rQEwuBW3FmsaCMYDyuIIvvJRD2Xfawz0Exxx+9evB8uBi0F202yk+P9R47JJOpisjhA52bLO6yihLEnmWUZtyKN4HlL9b2V8fiiz9RQ66UwhpU+r+NiubVzO18+j8m+oREgC/sUaG34SahfWMd4dACQHtTmokuko5/1w3tTMyjEHtoGjUAAfVgDeFZcTq7iPvpxPUEZHnI/RcAO6E/UXtPMPaXMKOj5LH31p+LH4/kuXb70xRbvOOVmOQ4/Rg== X-YMail-OSG: ChB5ZqUVM1lMhJk.rbIXZFeAAHBULN0OzyRX429oA47Ks2W7Lew92xY4QrNHwgh SCHRzqd9lfErQlOVx1YXMYHpIAZliHSZIy_8Y43lMEppbu.CVtemJ1pqB_8J_K3ynHO8dS_GuDwr 4Gw3xJz.gmfeS8NwAMRbAKS2kxc61.NkUxPBAwL5xtmtc.msBCU15Mtu8rqwonlVO_b2P.oSYRjD q8NKCBzR5caD.yjeRxeIN7DOM9Ih3pwsZOQ4EIWbSSM.5ebgRbfHWcv.pXI.HtEbs1V1Glaeekld NcWN_VAUH.bmop.4U87kxMuVKJ2unuN0Ijxd21Vqje0xeRhbqN2dVO4QoX59QyqBzCXOgfayKU1O FzNFk7eVr.zGVGeLGVdaaeRz_2a1JzUploAlfIG5b_7fQOLRuywM1GLp9m0lEExspN5yM1qoNp6o 37lygh9sfBzQkzzZcCASXfZ8Qqu70X.9eIlkeMjQolX9uA._2M0jFqAxt.HBK4qa_onnjWaLlfL1 h4UIzBB9RwIfuVAxY1iXy47C1ynsPlgdO8W0j5mC3JsLTgPiKVX1yNk_iEHlbS._RSDXW9qnnE4F d_VCCCssHPhVAKy.Wsc2GNGd6aWHC96yznyb2FBUebmAU61.DNZ4Th0vmvhtjJNUWhea9yFCtlCf ym65fPF2G70mPAb3VbFkK9ixmGM.9VwxBul6KMQxxq9iJSkROIbulZ_zOv.rAlDhFsEEptAqw90D cqwWxaqegqPU4RFBZnaVeJESY_86BevMeCuLocjrxO9RiO0NPcXQM7Z9j3czhf5lj7XJfN3lg0XK 2tWTNQvySiNKFQYBd5UETuORqHiXluWGyig8l1jgjQ X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Dec 2021 12:22:07 +0000 Original-Received: by kubenode508.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID bf1a0d254503a4736672e3953d6a9845; Wed, 15 Dec 2021 12:22:05 +0000 (UTC) In-Reply-To: <87k0g6kqmh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 15 Dec 2021 13:19:02 +0100") 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.191.147; envelope-from=luangruo@yahoo.com; helo=sonic304-21.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, T_SPF_TEMPERROR=0.01 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:282019 Archived-At: Lars Ingebrigtsen writes: > Po Lu writes: > >> Yes, now I think the `print-unreadable-function' solution would be best; >> we could just cause a non-local exit from within that function. > The PRINTCHARFUN just gets a single character at a time, doesn't it? So > it's not at the correct level to determine whether something is > unreadable or not... The idea is that `print-unreadable-function' is called _with_ the object and the printcharfun (and possibly some prin1 state, but I haven't thought of the details yet) when prin1 encounters an unreadable object. So if you want to error something when trying to print an unreadable object, you can just set that to a function that throws.