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 20:36:04 +0800 Message-ID: <874k7at58r.fsf@localhost> 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> <87v8zqoy6v.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="14340"; 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 13:37:49 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 1mxTXX-0003VH-VH for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 13:37:47 +0100 Original-Received: from localhost ([::1]:41268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxTXW-0001Dd-Lj for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 07:37:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxTUc-0007iR-Jt for emacs-devel@gnu.org; Wed, 15 Dec 2021 07:34:46 -0500 Original-Received: from [2a00:1450:4864:20::12a] (port=40800 helo=mail-lf1-x12a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxTUb-0004Gk-6z for emacs-devel@gnu.org; Wed, 15 Dec 2021 07:34:46 -0500 Original-Received: by mail-lf1-x12a.google.com with SMTP id l22so42816672lfg.7 for ; Wed, 15 Dec 2021 04:34:44 -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=eatPJs4j2bWGp2TluaZKfMOXYGo+x0a3NYOrhwGyEww=; b=VX3F9Mm5DaD3jneHPm9TE0LQl0WjVcsQ1grO/7UsBnSnVQXekG74m7KyuJsqUZUgNg HIac2dk1BuWWQxEacx2Vr8xVp7SjQuoaSoAXJsWX9w66DC6KugONdIxh21ccyYVwp7qS wn64+U3mBczPoKP+HEIQpJ5p80scBt5zRBlq46ioS3bLIe0WaIwK4xcmcbWovRhMImD7 tMDa1jezK3/BHDGZEEaAxt62H6YEfpmbEswyEffvi9tsdN2BIPXZTnuJ1OVuujuYgY1U iKFpacv5oQZRBkgeCQY1WJndSxEaNNWmMDR5duUXwBrX4TdoX7AC7jSypdlOR7XE0Amc JoSA== 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=eatPJs4j2bWGp2TluaZKfMOXYGo+x0a3NYOrhwGyEww=; b=QbZyZSOEiVagexQ+o9qCGE2wgcv4F1Fl+QcTHSDFZChjwevvQJvIkUE4j7DsdAXdMs VnhOrDnOcEyErFA+D6YJ9hkZgDnb/nq5C7U0kgqzIDAu8owzOo7E3lIKgThda9uHDGc0 Ow0hXoZoQuuatvC+kaYf4ZbiCTbbFVq0ZVAyIkfIJIuhFhpnFDO2nwe2RyV+pSq/r7wX DbwYV77WEPtwj8c1eFa7WuWORZnBeBjMkzoaKgQOda+JtmZDJUrWYleC4ZygWBtRGj+b gi6BeZW84lFRILghdpOAdEH+VQP4rBb2k3re2LAZU/1G6QpU5GnyXcIbknZip2tGDYpQ Yx0w== X-Gm-Message-State: AOAM532L+N9JsGHkeAUe0ncepwQ0Mi4ST1x04nsQ+ij6ybRaHgEoRpJ5 8bBSB/1GnJIGJCWBaAU7r6M= X-Google-Smtp-Source: ABdhPJz0lP9FVXmh/aHv2FmBFqE8cIy2HZePJB2zpDaJmvhKFE2XNVCp2/8/QI5cqEOQkhcUTC6JDg== X-Received: by 2002:a05:6512:3591:: with SMTP id m17mr9313798lfr.197.1639571682716; Wed, 15 Dec 2021 04:34:42 -0800 (PST) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id r10sm418988ljg.116.2021.12.15.04.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 04:34:42 -0800 (PST) In-Reply-To: <87v8zqoy6v.fsf@yahoo.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12a.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:282022 Archived-At: Po Lu writes: > 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. What about just calling with the object and then proceeding as usual inside prin1, but using the return value of print-unreadable-function in place of the old unreadable value? Best, Ihor