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 18:30:11 -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 1422919831 29702 80.91.229.3 (2 Feb 2015 23:30:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 23:30:31 +0000 (UTC) Cc: Sean Allred , emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 00:30:31 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 1YIQRq-0004Tx-I9 for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 00:30:30 +0100 Original-Received: from localhost ([::1]:57108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQRp-00072a-Rf for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 18:30:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQRb-00072V-AU for emacs-devel@gnu.org; Mon, 02 Feb 2015 18:30:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIQRY-0004De-58 for emacs-devel@gnu.org; Mon, 02 Feb 2015 18:30:15 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQRY-0004DM-0c for emacs-devel@gnu.org; Mon, 02 Feb 2015 18:30:12 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwPAOwQflRLd+X9/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kiEoJ1lkBAQEHAQEBAR6QbweESAWLAaQugXiEGSGCdwEBAQ X-IPAS-Result: AjwPAOwQflRLd+X9/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kiEoJ1lkBAQEHAQEBAR6QbweESAWLAaQugXiEGSGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="109502484" Original-Received: from 75-119-229-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.229.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Feb 2015 18:30:11 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3DFD466100; Mon, 2 Feb 2015 18:30:11 -0500 (EST) In-Reply-To: (Artur Malabarba's message of "Mon, 2 Feb 2015 20:48:09 +0000") 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:182300 Archived-At: > I'll look into these specific use cases, but ultimately everything can be > (and probably already is) stored in variables. In the case of desktop.el the state is kept in a whole bunch of different places. Same for savehist.el where the state is spread over several variables. > This could be used to restore frame configuration, for instance. That's right: for states that aren't stored in variables, we clearly need both a getter and a setter. Stefan