From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29220: 26.0.90; eieio-persistent-read fail to restore saved object. Date: Sat, 18 Nov 2017 22:17:40 -0500 Message-ID: <87bmjz0xez.fsf@users.sourceforge.net> References: <87y3nga0lv.fsf@killashandra.ballybran.fr> <87po8s8k02.fsf@ericabrahamsen.net> <87zi7udorn.fsf@killashandra.ballybran.fr> <8760aim2a5.fsf@ericabrahamsen.net> <87375j2tzd.fsf@users.sourceforge.net> <87inecwl1v.fsf@killashandra.ballybran.fr> <87y3n81eq7.fsf@users.sourceforge.net> <87h8ts1cfp.fsf@users.sourceforge.net> <87zi7kyzcf.fsf@ericabrahamsen.net> <87efov1zzn.fsf@users.sourceforge.net> <87h8trzc6e.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511061498 18609 195.159.176.226 (19 Nov 2017 03:18:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 03:18:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29220@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 19 04:18:13 2017 Return-path: Envelope-to: geb-bug-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 1eGG7X-0004J7-Bj for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 04:18:11 +0100 Original-Received: from localhost ([::1]:51781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGG7c-0002QK-UA for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 22:18:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGG7T-0002QC-EA for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 22:18:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGG7O-0003kl-F3 for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 22:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGG7O-0003ka-Ac for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 22:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGG7O-0004c7-3C for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 22:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Nov 2017 03:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29220 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29220-submit@debbugs.gnu.org id=B29220.151106147017718 (code B ref 29220); Sun, 19 Nov 2017 03:18:02 +0000 Original-Received: (at 29220) by debbugs.gnu.org; 19 Nov 2017 03:17:50 +0000 Original-Received: from localhost ([127.0.0.1]:46689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGG7C-0004bh-As for submit@debbugs.gnu.org; Sat, 18 Nov 2017 22:17:50 -0500 Original-Received: from mail-it0-f47.google.com ([209.85.214.47]:35730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGG7B-0004bU-5Q for 29220@debbugs.gnu.org; Sat, 18 Nov 2017 22:17:49 -0500 Original-Received: by mail-it0-f47.google.com with SMTP id u132so8321799ita.0 for <29220@debbugs.gnu.org>; Sat, 18 Nov 2017 19:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+N20hpP+48WqXwSQ533Tjgk4BYSk7RZx0ER1FBX95io=; b=B3Y82jZOY7SmHMtSJM/nMJcMBDuNBap09jyxgHHmhv7ZPQYTrDNh3zgtg26ANA8knx ub1MAj7gvAUzVfT2bZjpBJAfxoXkJLQVPQPYh0j/e1Dwf6m/5LNgP7swW6GXig7q17wG aB0BHNXqCKQfNT8nJKQ39BTQdP8APbB/oRy2qAh63C300utKcUNHQPzTf2f71mQIQe9k jh2kKjDUfdRyEmc7TliIVvNoAC+zC9xtsHJCEFN9BmMbYMHj54psRSjKQsOIcbd7wt5F tIppKRvX2srtSXWb/l+Ag4Z8GDFyC9CRn660VT9sFCVzWjYj2hpEQMkVySrmHMUtzThK dyfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=+N20hpP+48WqXwSQ533Tjgk4BYSk7RZx0ER1FBX95io=; b=VG56mTAw2hFH5QiwVkEgHLCiSaibVCCbogSEFYQt/30lllfRNkm/pWC/jqgEwINIfw 1vfdEf4REWQVWC2Kg5ezGxVnOYD5B0Uzhw93OMomRieSGfmlDayeDpbVZ0KG2HM71g41 5zhtnXCybdNqO0Hl/NqzXjV16thkJUNgx4lqP6IhYcFgi2WgjN1SK9sVl9itTu/wqbpK Vajcs5AZ16TfgrSKCmr44MbTLDSdSIGT6JJ9rFGLLKit/z+ozdJx33qjQYKr4taPRoXc xWY4fLkkkiEHBJzzyx20ejq4rod1MzLOUCGbh2RQSVOvHddklDAjwJL3xYQsVFNGPz1A QqUA== X-Gm-Message-State: AJaThX7SsstQlRwIFv/AWP72xK1dG8/u0yPtu9Gh1mlgikO+E4M1x0xw UCstqgDr20P6l0NlvNrcIOU4Zw== X-Google-Smtp-Source: AGs4zMYb6exgrKP6ZNENtpY1bBHEF0hSDuAvPpf+5Ouvi013q7+VZ92UfS8iQnOYi/Ifxh5gS3JZhw== X-Received: by 10.36.4.72 with SMTP id 69mr12753975itb.33.1511061463146; Sat, 18 Nov 2017 19:17:43 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id v198sm1084305ita.4.2017.11.18.19.17.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Nov 2017 19:17:41 -0800 (PST) In-Reply-To: <87h8trzc6e.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 18 Nov 2017 10:14:49 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140076 Archived-At: Eric Abrahamsen writes: > (defclass person () > ((name :type string :initarg :name))) > > (defclass classy (eieio-persistent) > ((teacher > :type person > :initarg :teacher) > (students > :initarg :students :initform (make-hash-table)))) > > (setq jane (make-instance 'person :name "Jane")) > (setq bob (make-instance 'person :name "Bob")) > > (setq class (make-instance 'classy > :teacher jane)) > (puthash "Bob" bob (slot-value class 'students)) > Jane is `read'-able, Bob isn't. `object-write' will recurse and use > `object-write' on any member objects, but the hashtable gets sent to > `prin1', which I assume uses `prin1' on all its values instead: Yes, but this is the case in emacs-25 as well. The significant difference seems to be in the class object: 25.3: (eieio--object-class-tag bob) => eieio-class-tag--person 26: (eieio--object-class-tag bob) => #2=#s(eieio--class person nil nil [#s(cl-slot-descriptor name unbound string nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (name 0)) nil ((:name . name)) #1=[] #1# #s(#2# unbound) (:custom-groups nil)) In Emacs 25 we have a simple symbol which will round-trip as an `eq' object, in Emacs 26 we have a structure which will not (and furthermore has some circularity, requiring print-circle to print readably).