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 19:25:49 +0800 Message-ID: <8735muqfcy.fsf@yahoo.com> References: <87bl1imhnd.fsf@gnus.org> <87h7bas2kb.fsf@yahoo.com> <87wnk6l0yu.fsf@gnus.org> <87czlyryq0.fsf@yahoo.com> <87sfuuktj2.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="24675"; 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 12:52:16 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 1mxSpU-0006Bk-9Z for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 12:52:16 +0100 Original-Received: from localhost ([::1]:55106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxSpS-0000ju-Uw for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 06:52:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxSQJ-00026L-CO for emacs-devel@gnu.org; Wed, 15 Dec 2021 06:26:15 -0500 Original-Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]:38460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxSQ5-0007qy-8I for emacs-devel@gnu.org; Wed, 15 Dec 2021 06:26:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639567558; bh=IAvc9b9OE/gyyVkI1kT+jBUyc7m2rIAhwBQThYrLcxk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=aeakmIC+ueDDdqRNbrYjscaoJFWWlDgHHM7aV5tZ6eib0ssDevyyNZL1MtZ0Yy5UdOJ8KbPTfkCv3T/77rO8dcPnKmUImfU7w4Zu2nBEQCb21XzY8KdADp3nfQbiKEqbtdjart/7hP5bm7SeAZ+OZRceFUmfuE8GbjJ5Nn0eZIEcVBVkOJTjkmFasv0ZTypL2jVdSU7pMJLtMMCx4c0Jb/PLTU51ryRuc7SnRmqV1WfL15xUgXI5KW+RGS2DznExOlkgo/ORc0YmfvrFVAF9AFPoMnzpLzYKLhFuYTrxrTJ4pjrOz5uXZke2WyFd+cD7rurKzuGqT00m/F0l1VSGiw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639567558; bh=eJX6+d1lurT9NSJ4VK0EWUYz49VdRSAvEUNMwzJ0k6y=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=NBP8CMq2HVCKyvMtC8HPcO3YI8aaPEdOW3ahOLnR224XOC/P9HqBV8PMiL/z/vzFHMXK/oe/OylBPkGN3Yf3GEqIn1ByJDCbXFB5h8cmrTECc3jGHxJiFANV2w1QZdWnqCvz39v1kwQ27K4pHz3CFkC+U1DGfDu+Nw9S/bKLvO8BcQJDVxLGx0m2p1Hgyho27zpVpkYMiq9327Sc2MWiBzRm8MnS5WJ0eNB31QA/QVE2qH384qUzWs0ukxbTiJPD0caNmdCMSEjH2rYv8bvsA5/0qYtG+K2OB3Q6WVpsCRy1m2rESh/dRyC7erADIqe8NN7Mnq+F/rVjww7uoJLI9w== X-YMail-OSG: PU.gb1YVM1neuZvoHwZjbOgfz58CAf9nkpTZktUOBwTGaKl0NE2Gx0Q5SbJI9Zq JpjVtm88aDn_LGKImwVzUqBNs1hl1JaLU8wjEJvCRpLi_G8m2JaaV2x_TMXfteBoPBmYQz_Ljmgm 7zGdIS.IZie.K9Ydwn7IuZPtX.1wKgB1WCbY2QeHBbnV6xP2Ms7R1l2XbxHTXTrOK4v99WEeLeGX xklJedCEh5YVaBJ87pFKTjmQZYtY.NtrF1.2sX723_68TVS9KQ6EUUo1mUSNU5htqPXrzR9bQNWg wpyEksvQmjeaX26bzLCEWQU37a4jOiezsYbTL0NtpCki0xpS1McVUB0JCEXnSdVm5UgZm5rXRlHj rH56yiQFjbKgUAnUuTOZYsHMYUapjEc1rXJIetA5RIfzKwoywuUGsRf41wTg7LGF4FapNrjoxVOV v_V6j54aleoDOcQnqasL4a1W0YKnIpHO7QrgITdCDo8rhyIC1OlFSSKQjeZuy.AnY1NmF5XiMdFr eFirLXGO.dyseXiHD6_LFuInLgYX.kTEdOu7IcifBrbjTncC656XZU1Y8qwod7JM0YCjiF1hd1ct AHv3ehBrV2p.pAt7KZZBh0SMuuaGwJ2t0OlvRvq6PUsoiYk.ZNj4Jg9JSlIsnNsl3rJUCRk2X1f9 RZmwhDb7LkIyhqAZN.yGAV_Xs8WqDzU5gsDJUOHsZNvuNbnxbOqMWKaxxVdAeA.czTau5493VB9U xFeDclHaiCDb06GL5MwudKWxKEEkX5oM79JIkXSNfK9rgAlv.AyrAQFXzTCde6F9Tr7phAPg6N36 2lCHo47FTQUsqi5i2N8TyeQmXg9u472Hb04TH.Jhc1 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Dec 2021 11:25:58 +0000 Original-Received: by kubenode507.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b8579d20ec1a92e6e0e5b511a31bfe4b; Wed, 15 Dec 2021 11:25:53 +0000 (UTC) In-Reply-To: <87sfuuktj2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 15 Dec 2021 12:16:17 +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.189.146; envelope-from=luangruo@yahoo.com; helo=sonic314-20.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, 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:282015 Archived-At: Lars Ingebrigtsen writes: > There's perhaps a slight performance issue -- if the unreadable object > is the first in a long list, we could have exited a lot sooner, but I'm > not sure that's really much of an issue in practice. If it is, we could > perhaps change PRINTCHARFUN to take two arguments in this case, where > the second is EVERYTHING-IS-READABLE-SO-FAR, and then PRINTCHARFUN could > throw an error if it wishes... > > Or, as has been suggested, add a new print-* variable to have the same > effect -- it'd fit in with the current design (of having a bunch of > print-* variables). Yes, now I think the `print-unreadable-function' solution would be best; we could just cause a non-local exit from within that function.