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 16:35:32 +0800 Message-ID: <87r1aetgdn.fsf@localhost> References: <87bl1imhnd.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="4690"; mail-complaints-to="usenet@ciao.gmane.io" 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 09:35:33 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 1mxPl6-0000z0-RV for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 09:35:32 +0100 Original-Received: from localhost ([::1]:33876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxPl5-0006pI-DJ for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 03:35:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxPjs-000691-SA for emacs-devel@gnu.org; Wed, 15 Dec 2021 03:34:16 -0500 Original-Received: from [2a00:1450:4864:20::130] (port=34505 helo=mail-lf1-x130.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxPjr-0004rG-14 for emacs-devel@gnu.org; Wed, 15 Dec 2021 03:34:16 -0500 Original-Received: by mail-lf1-x130.google.com with SMTP id m6so29915571lfu.1 for ; Wed, 15 Dec 2021 00:34:14 -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=Zpu56xlUEMJXy7hptZ/To1KfqXiurYkJiUssRt3Jl68=; b=jjrdvxEuxkz06ypKNYlk3YKO8+N6jVfHCGKWO7wB4NtW4czRE3aCFvPVNldsDz3YpO 22HFCh1CfPzPH0cCScHfcFhcpMIdIrnOns3x3k33f/zrprGnUe7Ol+Y2rRKgX06EHKZ3 EKKa78SupP5pN3qcUY3Sh8L+uga/uf0wWrLPnyNrQhZToDyArGbvmVeVil5NV+2Km2mB w5kPE4K3zsymegQTtlO7R23kbViCF270DcKGdZ09ksgZLYqT4sj09DA82FQYcHj6zEub fXeeEpL0deX/oilEBvAcBiT+gmnWivzdzg5UzDaMSIrvB4OnoFQo9S1aUuesmndf8WXS Cscg== 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=Zpu56xlUEMJXy7hptZ/To1KfqXiurYkJiUssRt3Jl68=; b=LmSA9ZWLGxaDFMdZAJ1w1Tj0LIJzxCbtNBjf73BA7iCWt2QuBvA1gDfmRoMYVHMb3j +sofEVQLX/l+MbzkcvZReJfxM3OBCiyVZ13kSy/29R5TOZ9OQ33fdfoblroj4lhxa9KG fL4WLeJFfmzCNC/l33O65fA8friRDEUdXh2H4ak/FjF324M+WB6UOFMrJvQ2weXYKhDz vOoe90eri2JVK/REhbuvji9wc5BqiYHTrmojbE3bjDIjqmNjQVu3mTjtw/tFoCsJUh5p o/r7UOvQZHPp4qFTvaFthA/b5qgelji408w1YWFNameyjhk3axyoWEV4WgyArQj+HYRt 2m/A== X-Gm-Message-State: AOAM531FxQbEyscLjosrrMaS7PV25Q+eNuvVYm+v5Cg5ruqOdMAIQmbW v+Xt2tiTKvQ6IWDYUUFNck4= X-Google-Smtp-Source: ABdhPJza0WbJm6imWW/iDfV3oG0lLIZMGj9FvSus3umTWs95RJe1+w0MxAFWPB3HOakftS+sxfr0mw== X-Received: by 2002:ac2:5ca8:: with SMTP id e8mr9015180lfq.391.1639557252383; Wed, 15 Dec 2021 00:34:12 -0800 (PST) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id e5sm211255lfs.51.2021.12.15.00.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 00:34:11 -0800 (PST) In-Reply-To: <87bl1imhnd.fsf@gnus.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::130 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=yantar92@gmail.com; helo=mail-lf1-x130.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:281992 Archived-At: Lars Ingebrigtsen writes: > Do we have any primitive that can be used to check whether an object is > printable or not? Code like this (from savehist.el) makes me believe > "not": > ... > Does anybody have any thoughts on this issue? I can see a use of adding extra argument to prin1. If the argument is set, prin1 errors when attempting to print unreadable object or alternatively prints nil (or other symbol) instead of the unreadable object. Best, Ihor