all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: A fundamental problem with defcustoms that are lists
Date: Sat, 06 Sep 2008 19:34:39 +0200	[thread overview]
Message-ID: <48C2BF2F.9040700@gmail.com> (raw)

If you have a defcustom which uses variable length lists

  (defcustom my-option
    :type '(repeat ...)
    )

then you may want the default values from the list but also add some of
your own.

If you customize such an option and the default values are changed you
will not notice because when your setting is used Emacs never sees the
changes in default.

This mean that any enhancements or bug corrections to the default will
never be used.

Wouldn't it be worthwhile to give some way to add entries at the
begining or end of the list but add those to the default value instead
of just replacing the default value?




             reply	other threads:[~2008-09-06 17:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-06 17:34 Lennart Borgman (gmail) [this message]
2008-09-06 18:40 ` A fundamental problem with defcustoms that are lists Drew Adams
2008-09-06 18:59   ` Lennart Borgman (gmail)
2008-09-06 19:56     ` Drew Adams
2008-09-06 20:04       ` Lennart Borgman (gmail)
2008-09-06 20:13 ` Stefan Monnier
2008-09-06 21:45 ` martin rudalics
2008-09-06 22:28   ` Lennart Borgman (gmail)
2008-09-07  4:01     ` 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

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

  git send-email \
    --in-reply-to=48C2BF2F.9040700@gmail.com \
    --to=lennart.borgman@gmail.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.