From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Any way to control which articles Gnus summary shows by default? Date: Tue, 10 Apr 2018 14:15:37 +0200 Message-ID: <87po376yvq.fsf@web.de> References: <86lge3ric2.fsf@zoho.com> <87vad78nh2.fsf@web.de> <87sh8bsa2c.fsf@ericabrahamsen.net> <87in97jkzk.fsf@web.de> <87lge3ryvn.fsf@ericabrahamsen.net> <87sh8bm3u1.fsf@web.de> <874lkogzel.fsf@web.de> <87lge0pdfg.fsf@ericabrahamsen.net> <87efjsdxx0.fsf@ericabrahamsen.net> <87d0z9zss2.fsf@web.de> <87r2npoi40.fsf@ericabrahamsen.net> <878t9xzoot.fsf@web.de> <87woxhmsim.fsf@ericabrahamsen.net> <87h8olmer2.fsf@ericabrahamsen.net> <87k1tgtqny.fsf@web.de> <87muycibgv.fsf@ericabrahamsen.net> <87vad06tin.fsf@web.de> <87po38gmma.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523362469 30970 195.159.176.226 (10 Apr 2018 12:14:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2018 12:14:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 10 14:14:25 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5sAK-0007yC-Rm for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2018 14:14:24 +0200 Original-Received: from localhost ([::1]:40462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5sCQ-00077x-Hx for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2018 08:16:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5sBn-00076A-Ed for help-gnu-emacs@gnu.org; Tue, 10 Apr 2018 08:15:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5sBg-0007uR-Tu for help-gnu-emacs@gnu.org; Tue, 10 Apr 2018 08:15:53 -0400 Original-Received: from mout.web.de ([212.227.17.11]:56419) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5sBg-0007t0-JF for help-gnu-emacs@gnu.org; Tue, 10 Apr 2018 08:15:48 -0400 Original-Received: from drachen.dragon ([94.218.191.141]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lhvlm-1ekGbo0TkQ-00n6Yq; Tue, 10 Apr 2018 14:15:38 +0200 In-Reply-To: <87po38gmma.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 09 Apr 2018 13:18:05 -0700") X-Provags-ID: V03:K1:mHFyPHUkAOv+L6G7AHjrHfcNjbihW7q0wwujlfYPE/FQCdB+F8s ohkCP96c9HRNXXvJkHs1OODGou4twJGXfENsK32WNBJbkQUtQn5TNw+LpAdmHOCCDOMb/VC ADZ+SB6ynuqickDzrYMLm/h0Q17Ho55EGbRrXqcR0g2wECwLP9Ez7Z2m8hIRJDSpjpNiMQO OCRGo/z33Ffe+0UsWlcjw== X-UI-Out-Filterresults: notjunk:1;V01:K0:DoJAfAzbGeA=:Pz+xNUWt8m0fFoqfR1Z0iP DuvgsZ585wxn7VHdEoM0YyW2esEMhf0cVxwJGCtTa8D72Q3a0xsq7iETSHgSaragI25LHtxbE SJI+f1JaX6tDD0o6NM2N1iMD4mjxQkxROeKFq923UlxiOdcn+HaMufrTvUw6wMfyDAvNwtQnt 8pUBhA4ZrS9ScGYCLiv59kS7uUKkqlpdL8fQDsd4gXvejPlEwc57IDukurVjjxv5pFHUKUFHz bT2fcA1a30Cksn+ctIKuG8XO07vyRj4pGlFjW/X/dPUvUmNNdEbtuns9aXjMRyZcIh69AivMf yojOfMqaf4PmWIIZxNhwSYQml1s8CGr0VjBqtAThORTC7Rj3rYKfG+RHa3z/A1o9R377Ae3LT 0HJtPvv+aLiCZMmjtOoM5tAucURdp4LHtvXvM5YyNFmt6Zzu74+yUVlwqjvEg+jCIc0JroKLr PUHUhilPflhTwXM7FhP3wQH4Ojb0V9B3cY5A6EHSkItzeD0L4V9yGnRUpIEJPZZJx/ByK6IJU mxgzN7ewuOkNGnPz8k4mZkv4idDd2M/BsPU+/p8fKBD5IYIwcFWqcIDyt33XfKfrh/8bjd3bj GpNq3QaWqiqSeDXXQPjlHtq4H6BKH4J0sDNEx1lJQu9ZwezWQpu0TV93/X2fzjTljXtGrUh4T Mac5u9ekX8Xfj+IO013sKglbe/zRqpyesb/PbOebjaPZ3uC/Q5UfCVPo6aeGtU1eN7W6+1G+Z 04v5JNFC1PAfcb+gaZTNJatGCOWqTk9h/yt+FQrjpLLUHY8vQUjFhdps3PmbuSGtkxFfhSek X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116439 Archived-At: Eric Abrahamsen writes: > The process as I'd like to have it looks more like (with code for > backwards compatibility removed): > > (defun eieio-persistent-fix-value (value) > (let (result) > (when (consp value) > (if (class-p (car value)) > (setq result > (eieio-persistent-make-instance (car value) (cdr value)) > value nil) > (while (consp value) > (push (eieio-persistent-fix-value (car value)) result) > (setq value (cdr value))))) > (if (eieio-object-p result) > result > (nconc (nreverse result) > (if (stringp value) > (substring-no-properties value) > value))))) There must be something missing: VALUEs that are not consp are never handled by this. A minor problem with that approach is that `eieio-persistent-fix-value' (I would rather call it "eieio-persistent-restore-value") can't distinguish between objects and data that looks like an object. Say the object write part converts some OBJECT to some list REPRESENTATION. Now it may occur that the user wants to save some data that by accident is a list that looks like REPRESENTATION. When the saved data is to be restored, there is no mean to decide whether what has been save was the OBJECT or a the list REPRESENTATION. With other words, there is a problem if the object-write function is not injective. One can use special names so that collisions are less likely to happen, but who knows in which ways people will use this stuff in the future. Solving that problem would imply that lists are not represented by themselves when saving. Michael.