From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Mechanisms to persist information (Re: Option to not automatically customize-save-variable `package-selected-packages') Date: Sat, 20 Feb 2016 12:44:16 +0800 Message-ID: <87h9h46len.fsf@ericabrahamsen.net> References: <56C43D17.7010009@alice.it> <831t8aufoe.fsf@gnu.org> <56C60CAD.3060308@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1455943494 12055 80.91.229.3 (20 Feb 2016 04:44:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Feb 2016 04:44:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 20 05:44:45 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aWzPR-00056P-1w for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 05:44:45 +0100 Original-Received: from localhost ([::1]:57995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWzPQ-0007kc-8N for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 23:44:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWzPC-0007hp-Tc for emacs-devel@gnu.org; Fri, 19 Feb 2016 23:44:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWzP9-00040Q-Nb for emacs-devel@gnu.org; Fri, 19 Feb 2016 23:44:30 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:42792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWzP9-00040L-Gr for emacs-devel@gnu.org; Fri, 19 Feb 2016 23:44:27 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aWzP5-0004oy-Gt for emacs-devel@gnu.org; Sat, 20 Feb 2016 05:44:25 +0100 Original-Received: from 116.1.71.93 ([116.1.71.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Feb 2016 05:44:23 +0100 Original-Received: from eric by 116.1.71.93 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Feb 2016 05:44:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 116.1.71.93 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Ev9V+f+rFLtczJ5oXZlYPKew9do= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200267 Archived-At: John Wiegley writes: >>>>>> Clément Pit--Claudel writes: > >> It would be nice to have a uniform way to persist package-specific >> information; ideally one that would collaborate with package.el, so that >> removing a package would remove its stored state. One would need to figure >> out how to handle settings persisted through custom as well, but a simple >> key-value store that plays well with package.el would be a great start. > > This sounds like a pretty useful core library to me. I've been using eieio-persistent for things like this.