From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: pierre.techoueyres@free.fr (Pierre =?UTF-8?Q?T=C3=A9choueyres?=) Newsgroups: gmane.emacs.bugs Subject: bug#29220: 26.0.90; eieio-persistent-read fail to restore saved object. Date: Fri, 10 Nov 2017 18:31:08 +0100 Message-ID: <87zi7udorn.fsf@killashandra.ballybran.fr> References: <87y3nga0lv.fsf@killashandra.ballybran.fr> <87po8s8k02.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1510335131 20330 195.159.176.226 (10 Nov 2017 17:32:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2017 17:32:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (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 Fri Nov 10 18:32:07 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 1eDD9x-00055W-Sy for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Nov 2017 18:32:06 +0100 Original-Received: from localhost ([::1]:42816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDDA5-0002aY-C2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Nov 2017 12:32:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDD9y-0002aP-Bs for bug-gnu-emacs@gnu.org; Fri, 10 Nov 2017 12:32:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDD9v-0000pj-3W for bug-gnu-emacs@gnu.org; Fri, 10 Nov 2017 12:32:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDD9u-0000pU-V7 for bug-gnu-emacs@gnu.org; Fri, 10 Nov 2017 12:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eDD9u-00018E-Eh for bug-gnu-emacs@gnu.org; Fri, 10 Nov 2017 12:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: pierre.techoueyres@free.fr (Pierre =?UTF-8?Q?T=C3=A9choueyres?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Nov 2017 17:32: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.15103350744289 (code B ref 29220); Fri, 10 Nov 2017 17:32:02 +0000 Original-Received: (at 29220) by debbugs.gnu.org; 10 Nov 2017 17:31:14 +0000 Original-Received: from localhost ([127.0.0.1]:34407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDD98-000177-Bq for submit@debbugs.gnu.org; Fri, 10 Nov 2017 12:31:14 -0500 Original-Received: from smtp4-g21.free.fr ([212.27.42.4]:26182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDD95-00016y-Sy for 29220@debbugs.gnu.org; Fri, 10 Nov 2017 12:31:12 -0500 Original-Received: from killashandra.ballybran.fr.free.fr (unknown [IPv6:2a01:e35:2e14:eab0:b51f:3dc7:7e03:942]) by smtp4-g21.free.fr (Postfix) with ESMTPS id 65CED19F5A8; Fri, 10 Nov 2017 18:31:09 +0100 (CET) In-Reply-To: <87po8s8k02.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 08 Nov 2017 14:48:29 -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:139737 Archived-At: --=-=-= Content-Type: text/plain Hello Eric, Firs, thank you for you fast answer. You fix resolved my first problem with eieio-persistent-read, but I've hit another error when I try to use complex objects save/restore. In fact I try to find why pcache package insnt working anymore with emacs 26. So here is the same sample completed. Sorry. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=eieio-fail.el Content-Description: eieio-persistent-read test. ;;; -*- lexical-binding: t -*- (require 'eieio) (require 'eieio-base) (defclass eieio-fail (eieio-persistent eieio-named) ((version :initarg :version :initform nil) (version-constant :allocation :class) (entries :initarg :entries :initform (make-hash-table)))) (let* ((ef (make-instance 'eieio-fail :file "tmp")) (entries (slot-value ef 'entries)) (ef2 (make-instance 'eieio-fail :file "tmp2")) (entries2 (slot-value ef2 'entries))) (puthash 'foo 42 entries2) (oset ef2 :entries entries2) (puthash 'ef2 ef2 entries) (oset ef2 :entries entries2) (oset ef :entries entries) (eieio-persistent-save ef (concat "tmp-" emacs-version))) (let* ((ef (eieio-persistent-read (concat "tmp-" emacs-version) 'eieio-fail t)) (entries (slot-value ef 'entries)) (entries2 (slot-value (gethash 'ef2 entries) 'entries))) ;; (pp ef) (pp (gethash 'foo entries2))) --=-=-= Content-Type: text/plain Eric Abrahamsen writes: > ... > > Yes, I made a bum commit to master, then fixed it, then cherry-picked > the bum commit over to emacs-26 without fixing it. The fix is now > cherry-picked as well, and I'm taking a short breather from patching > Emacs. > > Sorry about this, No worries > Eric Pierre --=-=-=--