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 19:12:08 +0800 Message-ID: <87a6h2t94n.fsf@localhost> References: <87bl1imhnd.fsf@gnus.org> <87r1aetgdn.fsf@localhost> <871r2eryaz.fsf@yahoo.com> <87o85itbiw.fsf@localhost> <87sfuuqic1.fsf@yahoo.com> <87ilvqtasn.fsf@localhost> <87bl1iqh9u.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="2269"; 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:47:47 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 1mxSl8-0000TN-Vz for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 12:47:46 +0100 Original-Received: from localhost ([::1]:47438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxSl8-0003sm-0K for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 06:47:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxSBN-0002Wf-L4 for emacs-devel@gnu.org; Wed, 15 Dec 2021 06:10:50 -0500 Original-Received: from [2a00:1450:4864:20::534] (port=36497 helo=mail-ed1-x534.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxSBL-0000W3-QA for emacs-devel@gnu.org; Wed, 15 Dec 2021 06:10:49 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id z5so74044866edd.3 for ; Wed, 15 Dec 2021 03:10:47 -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=eAqxt9vvwQJvkPr3QKCTmkEoMLXCA8Q49TvGe6wHFck=; b=and2b0+I7Om7J7wDt2TQzoq9OWMWMHT8SpfXTjlXdasPZFx4y20DmOGYC/DzENDS56 9WanUs5Z5NduPI5wkscVkjYNNDgDsjNKbN7jypwY2enqRms1TsfdeuUiyGMOnSIo0WSl cbZb+a6S3rYWS4vb5oQXgLEniv4++9841DZVR+y06JVWqR6UAQtdVCrAhiTzvsuqW81O impd5xgxobVvhzCcM/WS3siM0oFKnhxXG0R0RdbA3hWvlaBJuIdE9GrieZOCBNFrdC4J 4tnWXDp58OovqTo8aTA7VmjNpvzdqPRcUbeHr61ct2+RX2pu4/iYlz7ZPghmTWtSmhZk j2qg== 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=eAqxt9vvwQJvkPr3QKCTmkEoMLXCA8Q49TvGe6wHFck=; b=y+5jCHJc7TP413W2ZPjSnRuBSRtmqZnzHCSnOtBsklvbJry4Fd0VtW85+hrsMRFdrL v11DOOHq7LzJZKEJjin/HVd8Msr1ptiUE8cw5WYcSoU0jNirWXj0L2glhScXuPqYExYx QkDU94hWnBzcJkeB93yPLCn2yJmiuwo+ZaIRAnDBztev3U2BElh/w71g3DceGQ+PN9Lw dECGvajZs76ewJSPtPcFvve1MY14X1P84V0BV8VnwvJXXThgjlkGaxAgrpsa5S4e/kxY imU76wt/7U7l3rw2XV3iTK8pT6SLGuOJyP9kQ2ccnW0rm4ImY7zY76wrRFFAvB+tJoir EcKA== X-Gm-Message-State: AOAM531WPZviRnKLUA2TZHWuCJQ2/kiiRdgNPfl5iwVUYyCCrItqhgh9 sFZ+XnQ9tOumqnJhmJWQHro= X-Google-Smtp-Source: ABdhPJwMPncn5eToAQe5cDSo4DexRPAL7AG2Z95MJu77URopKf7J2RBW633SKTxYxXHV8SYGrKRbPw== X-Received: by 2002:a17:907:3e9f:: with SMTP id hs31mr6599438ejc.625.1639566646445; Wed, 15 Dec 2021 03:10:46 -0800 (PST) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id v10sm593808ejk.175.2021.12.15.03.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 03:10:46 -0800 (PST) In-Reply-To: <87bl1iqh9u.fsf@yahoo.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::534 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=yantar92@gmail.com; helo=mail-ed1-x534.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:282014 Archived-At: Po Lu writes: >> 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). > > Maybe we could have a `print-unreadable-function' that accepts > `printcharfun' as an argument. That would be very nice indeed. Do you imply that `print-unreadable-function' should return the new value to be printed? If so, it is indeed more flexible. Passing the unreadable value to the function would also be useful (e.g. we can print buffer file name instead of buffer object). Best, Ihor