unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Sean Allred <code@seanallred.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Incorporating caching into defgroup/defcustom/defvar for Emacs 25
Date: Mon, 02 Feb 2015 13:26:49 -0500	[thread overview]
Message-ID: <jwviofkfa9f.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <6AD4DF07-EFCD-48F4-AEE6-333F8D27BA87@seanallred.com> (Sean Allred's message of "Sun, 1 Feb 2015 10:46:56 -0600")

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



  parent reply	other threads:[~2015-02-02 18:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-01 16:46 Incorporating caching into defgroup/defcustom/defvar for Emacs 25 Sean Allred
2015-02-01 16:56 ` Sean Allred
2015-02-02  1:07   ` Stephen J. Turnbull
2015-02-02 10:08     ` Artur Malabarba
2015-02-02 13:03       ` Stephen J. Turnbull
2015-02-02 13:06         ` David Kastrup
2015-02-02 13:16         ` Artur Malabarba
2015-02-02 14:24       ` Drew Adams
2015-02-02 18:26 ` Stefan Monnier [this message]
2015-02-02 20:48   ` Artur Malabarba
2015-02-02 23:30     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwviofkfa9f.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=code@seanallred.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).