From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: `unreadablep' Date: Wed, 15 Dec 2021 18:36:08 +0800 Message-ID: <87ilvqtasn.fsf@localhost> References: <87bl1imhnd.fsf@gnus.org> <87r1aetgdn.fsf@localhost> <871r2eryaz.fsf@yahoo.com> <87o85itbiw.fsf@localhost> <87sfuuqic1.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31128"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 15 12:05:29 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 1mxS6D-0007w8-6M for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 12:05:29 +0100 Original-Received: from localhost ([::1]:58502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxS6B-0001dz-Tw for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 06:05:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxRca-0007Zi-5j for emacs-devel@gnu.org; Wed, 15 Dec 2021 05:34:52 -0500 Original-Received: from [2a00:1450:4864:20::230] (port=44022 helo=mail-lj1-x230.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxRcY-0007aM-7N for emacs-devel@gnu.org; Wed, 15 Dec 2021 05:34:51 -0500 Original-Received: by mail-lj1-x230.google.com with SMTP id 207so32573771ljf.10 for ; Wed, 15 Dec 2021 02:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=BwuSDsv8ClYN6omnWhWkdQ6i/C8vtsZ9oHQm5d9VofM=; b=clvND2RqXUu/l42w5RU9XIMs5zkhboKFKj+LlhlyoimrYnHA4F0Srfspy2CPByxdaX +xL1oOQrtvuE6+KZlakctY+6HfpZ31a13xzD7xZSd4ccCaorpZWD4LiDzuNko1S7RMFS Ki7kt4/iMod6uJjZs35rj9nsCL0mnaKnC9PoeEw+9z0dtaoxyqp1Cu1FiACfifp+fbzX Q3moLpe7u1SXrykT5sx/AYwJSjRkbNQyrEST9iliZoBKcgo1auaw4HkUOseIQc1XKG2U O8IdcLoThcOidjVH62Y7RdhBjY5bvWjDM5mqLyEkUQ371CjcwkPCnJ3HUUVDM6+8oD0m Oe8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=BwuSDsv8ClYN6omnWhWkdQ6i/C8vtsZ9oHQm5d9VofM=; b=GmGgZL+/EacYYAvNQmqOtj1dh+ftdTTbv2gj3ngyPVHxoiR/T0BvjYojNiIxOtQ7y6 0GFyfkR39851/+Gt27hSRW7OFksHT6WgWLhvKOb7/I1yXZIW1sr/VbRCh1CpajCuIcCw L3gPUveFmoxU6ZJpLCmYrvdpWIGdwYjImIL0dme9ZcYJhvt0rA5ZXe2XPNyPyiSzzasT GdUoxKi8rq6NvSPjrQMSo5RtDJTScth8c4tax3YEKEf6gQl8hrxJLVJaALEVH7sxvoXd nb6q9NLG7sWwR0SkINES2oWB/Zynp2GHE3aGx2mjl0iyAXxtQECtzTY8JLe2l1pRM0oc Q6NA== X-Gm-Message-State: AOAM5320M2/gOdwOU9hnkvyplWwHF+Xd1WxF6yYBZKrDNeJfqLPldHpg RpEQy7J/GWLyv9htifthCP0= X-Google-Smtp-Source: ABdhPJzUclXXr89jjunRxk8BA+GD350pr8LDtDu7qqHb0LMpmJOc2NYIpf7SyMb57eV9ohq77ul2kw== X-Received: by 2002:a2e:9107:: with SMTP id m7mr9100467ljg.209.1639564487516; Wed, 15 Dec 2021 02:34:47 -0800 (PST) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id i26sm254735lfl.261.2021.12.15.02.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 02:34:47 -0800 (PST) In-Reply-To: <87sfuuqic1.fsf@yahoo.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::230 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=yantar92@gmail.com; helo=mail-lj1-x230.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:282010 Archived-At: Po Lu 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). > ... > How about `print-throw-if-printing-unreadably'? I don't have strong opinion about print-unreadable vs. print-throw-if-printing-unreadably, except that the latter feels too long (which is not a big deal). I am more interested in the ability to print nil (or something else) instead of unreadable objects. My motivations is org-element-cache where we cannot currently store buffer objects because they cannot be restored from printed cache while not increasing the write time significantly (it is bad enough as it is). Best, Ihor