From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Mutating existing persistent data Date: Tue, 07 Dec 2021 07:56:15 +0100 Message-ID: <87wnkghpio.fsf@gnus.org> References: <87tufmjyai.fsf@gnus.org> <875ys2lyt0.fsf@yahoo.com> <87wnkhlxb9.fsf@yahoo.com> <2FD7D920-D92C-480B-B2AC-91A17F0397C4@mit.edu> <87zgpdi0rk.fsf@gnus.org> <878rwxje1x.fsf@yahoo.com> <87v901huhw.fsf@gnus.org> <73923481-114C-408C-989D-6DFC72008340@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9784"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Po Lu , John Yates , Stefan Monnier , Arthur Miller , "emacs-devel@gnu.org" To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 07 07:57:22 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 1muUPh-0002Kh-Qi for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 07:57:21 +0100 Original-Received: from localhost ([::1]:37902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muUPg-0002tz-MJ for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 01:57:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muUOp-0001Sy-MJ for emacs-devel@gnu.org; Tue, 07 Dec 2021 01:56:27 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=35386 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muUOo-00063p-6M for emacs-devel@gnu.org; Tue, 07 Dec 2021 01:56:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qpc81xBDreu3NbzylcQH3R+j9J0LK5qY4pe7osoyCD8=; b=WA2/UlgxeH1LYmn4HOrCcdc+iH pQ6hU4FVVahvu6UDKgfc+Fq3UhQ1mhWs6GIyYYb/xvy9tNpf/Y+dgUhlFfmxyOWdMi+PX5zgRza/5 J61keOUgeeZ18Kq1Nu49LdNVvEHR4IB5OqA+egKrHfrNB31qbVeS6cEXLbEjNvlZVwso=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muUOe-0004KD-Dn; Tue, 07 Dec 2021 07:56:19 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEWoyNuz1e294vnB 5vuTrc1hcZZ9ksFGUI82O3U9RIWFnLF2iqNUX23///98aRmmAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+UMBwY1OSvDwyUAAAGZSURBVDjLlZQ/T8JAGMavxEHj0msgrrahDOCiiSwygIY4wKLyBiL9AA4O SkKaxpk0Jq6GsDnIQhnQpAy2g8Z06d2HsvSPcKUl+g7X3v3uued9765FCHF4Jfiwy6+Oo9UZiOmt Au7fIGFMTANCGsCbQWAuiOESwhGryF94Te4U4/2WyIDyvTd5+wxj+TGzDnYWQBcSFN5SYlVMBljC KSCWbrknSZ655AULCncIofMaWh5PBHR1NBpqmqZqGQbk6zCZ38ADAcIqjqlLP1sKBeKwQKZf9O3b plPiiAwo1d3JS6cLBGDdXFP9YM1L1w3HbY5fTdPiGFAxnRNzrCBKlZhiShukab5bthWA6EYWAXRi K3O4BXap4jBwVocx82LWcD5gtksaCpvuAXUrFBRKniy2QNnoGpOxZZOucchmBe0BdPptfVl58Cg8 A6jQ7oPaj9VxtTw71qOHY/FnIEjBhqyB7GxRB0LRXsmXIdjTAwUfV+QGPuB+b0ktBHzVb9kPx4/o Je1z5tP+DDxKlnjj/j3muSg9f1fRhtj6AW4SoWhCnV2tAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIx LTEyLTA3VDA2OjUzOjU3KzAwOjAwQFw/hgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMi0wN1Qw Njo1Mzo1NyswMDowMDEBhzoAAAAASUVORK5CYII= X-Now-Playing: New Order's _Movement_: "Doubts Even Here" In-Reply-To: <73923481-114C-408C-989D-6DFC72008340@mit.edu> (Qiantan Hong's message of "Tue, 7 Dec 2021 06:25:14 +0000") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:281215 Archived-At: Qiantan Hong writes: > I posted sth about it (and also sth else) in > https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg00602.html > Lars, can you comment on it? > > Essentially, the interface I=E2=80=99m proposing is=20 > (make-persistent-store generalized-variable path) > > The first time (in the history of universe) it is called, > when path does not exist, it does nothing, but it > initialize the bookkeeping structure. > When it is called later (in potentially a new Emacs=20 > instance), the full content of generalized-variable is > fully recovered from its last state. I think you're proposing what I've already implemented. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no