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 17:42:15 +0800 Message-ID: <87czlyryq0.fsf@yahoo.com> References: <87bl1imhnd.fsf@gnus.org> <87h7bas2kb.fsf@yahoo.com> <87wnk6l0yu.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="16623"; 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 10:43:21 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 1mxQoj-0004A9-CK for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 10:43:21 +0100 Original-Received: from localhost ([::1]:45746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxQoh-0000ID-S1 for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 04:43:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxQns-00082R-7D for emacs-devel@gnu.org; Wed, 15 Dec 2021 04:42:28 -0500 Original-Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]:33416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxQnq-0000gW-1k for emacs-devel@gnu.org; Wed, 15 Dec 2021 04:42:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639561343; bh=drWCqlfRaMoKieAVEdO3cPrPVEPAKFg8d8SRIydNvmQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ZxY9Sf06Y5OpUzsdcRZexPtuIqxmd3tzr6KuGlbouyk2MeXpiD6yXa5pBpzG5vlXUQY+Ei7i+9r4khK0NU65QYzjTPJjoNENYKeyZDQxCEl8N7YvBEdzmhqBLqcbyR5Cd7ibR3/E2df4w5G+cPB1eGfiD0V/EG7gfm/qzGfCK7eBSXC9yRaYP71Sgm8RfNFACsp2vAcS99LG8+pt1J/GSpQuLp4HOG8OddtTIkGZJrqGz9dtpp44AoeyRxuIBkFAWTqLfUPCsq20KUzFczIMoPWFVD5leYElTdjYTBQDOXdlCdEOmUpbEW5vdyw9ETAuwm+z60XnkaIx1EVgWs5gaA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639561343; bh=hXLpX2gXLF0TcMA+9Kmwx01OkS2oOgXL3yuiOMUOUSv=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=cEreX0a/my+29mW+OrrUzAjQ4toR/JYUHSjGAhiuAmvCnwCeWozS8C4pxvNNYnbKUlMI38ThFHWdnS3AcigHZmjlez4tBU23FFbLT8ZTzXkDfzYMblWIoGRVjiAAh4iEEsrbIh4SGvbMc3xvlvoG4nF45UviwaP6ytbdcnMwF2PLQ/BEdRnRbj5RxNTw7zXTvBy1Os0JienyE/Ww/W80/UBOJZyfgeDYoqS6wjREVabDJb4/9mBau8sqEKpxSl+NSvxoUzjOBQJYPf/JxdS9Bhj4BfVKXvf7vIuv7hWU746yqNconulBFzJixEThA5gar+aIkF7RZEvb9j2vTDEL0Q== X-YMail-OSG: 9DbQeRsVM1nMI43ZSDPlzrHWCXngI74VYrvbXev2ezCOhnl0nTvH6bcakdYWeJs klSsuYLt62kNTVBBd.QiTqeT2fZQczrrZQgnZo2PgIqNijyUgnWvl1gc7G8T_gSCk6Wokymk1mx3 t7tFf7cFkAnkEv6m6OqMS2iOKcvOAsnjTEgHaoLKq6rA4Wvm8CqvrU7BF__Gp4U0EFUFsjY5BxQ. 5IS_DOl.46W0Mjkn0Rw_lwyOeaCw31Fd4XNEl5AxDxHEmBpLixWcs_li4hlliuHiJUuP6aC7FPYM vfUQxuBYFJzYZBhKC8zW_KXSTWmZLoRUx7FNGVQy5.q9ypEjLCo6waQop6gZffTFx4PKZuidXaM3 Lomh52Og4p_BFRIpMlEA02Va.PHz0wkysL5rQvUGn_7KoK3rJQ0voDcSaJuFQueBLWsZOXN39s0X nXQNgMYxp3Aq2HriVo1Ik.I.sRsAcUqgZTQVoLFLJcG14C4Abpean1nZjoTLTlx6nf1KMDXWPCbK OF82XgFnSStiPim_kv7Mo8qk.qK4a8AAkOLm5zroNyMwxZh_pjn72XiLXm3XVCav6fnFeCJLoWaP j9rIUKuuMECLXKzrWHxN0rPOKWLrEeOPjU9n3vzoASBPkWQGt3Ny3vEWHgaaTIJ0lskAhFRM9B4z i7XmhYjJ81SgwVOIsCY4ntmInwWS37Kd8dPi2RVtCQ7lMj9JFHOVSrdePkmdP4xFpx4sMGKD7rfn 4.wlPILAf1uwaTrUIXieK42rlJC16JorH2MFCF69ivT080tbNyfK4dm4MzJa07Mich2hXPd7pA.6 Xv2mAtWwHp21lmOPGbk1Xkpx_J.IB32HUsVszTR4we X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Dec 2021 09:42:23 +0000 Original-Received: by kubenode501.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 84d172e1970f0fe24dffd51726381230; Wed, 15 Dec 2021 09:42:19 +0000 (UTC) In-Reply-To: <87wnk6l0yu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 15 Dec 2021 09:35:37 +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.185.31; envelope-from=luangruo@yahoo.com; helo=sonic313-56.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:281998 Archived-At: Lars Ingebrigtsen writes: > But having `prin1' return whether it printed something unreadable also > sounds attractive. I guess it depends on the use case. If you're > saying > > (if (unprintable o) > (insert ";; " (prin1 o (current-buffer))) > (prin1 o (current-buffer))) > > then you're traversing the data twice, which isn't efficient, so > inserting it first and then checking would be nice. Yes, my thoughts exactly.