From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Incorporating caching into defgroup/defcustom/defvar for Emacs 25 Date: Mon, 02 Feb 2015 13:26:49 -0500 Message-ID: References: <6AD4DF07-EFCD-48F4-AEE6-333F8D27BA87@seanallred.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422901632 20745 80.91.229.3 (2 Feb 2015 18:27:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 18:27:12 +0000 (UTC) Cc: emacs-devel To: Sean Allred Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 19:27:12 2015 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 1YILiH-0006dg-Dn for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 19:27:09 +0100 Original-Received: from localhost ([::1]:55967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILiG-0007lp-9B for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 13:27:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILi3-0007lj-GR for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:26:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YILhy-0007dc-Gk for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:26:55 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILhy-0007dT-DI for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:26:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsPAOwQflRsoX+8/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQRWIxALDiYSFBgNJIhT1lkBAQEHAQEBAR6QbweESAWLAaQugXiEGSGCdwEBAQ X-IPAS-Result: AjsPAOwQflRsoX+8/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQRWIxALDiYSFBgNJIhT1lkBAQEHAQEBAR6QbweESAWLAaQugXiEGSGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="109470438" Original-Received: from 108-161-127-188.dsl.teksavvy.com (HELO ceviche.home) ([108.161.127.188]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Feb 2015 13:26:49 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 47B9066100; Mon, 2 Feb 2015 13:26:49 -0500 (EST) In-Reply-To: <6AD4DF07-EFCD-48F4-AEE6-333F8D27BA87@seanallred.com> (Sean Allred's message of "Sun, 1 Feb 2015 10:46:56 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:182279 Archived-At: I'd welcome such a mechanism, and clearly various packages roll their own, so it would be great to introduce something that can be used by those packages (e.g. desktop.el and savehist.el could make use of such a thing, obviously). But I don't see much benefit from trying to link it to Custom (at most, maybe Custom could be changed to make use of it internally). E.g. I don't see the benefit of :group 'sx over :dir "sx" Also, based on the desktop.el and Gnus use cases, it seems important to be able to save a state which is not in a variable (e.g. the frame configuration), and it's also important that those persistent vars don't be reloaded eagerly at init time, but later on when the corresponding package is loaded/activated. Stefan