all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Andreas Röhler'" <andreas.roehler@easy-emacs.de>,
	help-gnu-emacs@gnu.org
Subject: redefining/re-evaluating a defcustom [was: Modifying many function calls]
Date: Wed, 27 Oct 2010 07:24:45 -0700	[thread overview]
Message-ID: <D85D6BC2847D4C389961F9BB2CCDB832@us.oracle.com> (raw)
In-Reply-To: <4CC80856.9050605@easy-emacs.de>

> > why I can't redefine a variable with defcustom? I mean if I do
> >
> > (defcustom x 1) then I want to change it
> > and I write and evaluate (defcustom x 2)
> >
> > then even if I set it to nil and the reevaluate again still 
> > it doesn't care. Is that normal?
> 
> AFAIK yes. It's little bit like with `defvar', but not that strictly, 
> rather unpredictable.

I think it's completely predictable. Yes, it's like `defvar'.

> Use `setq' ... to make sure the new value is taken.

Interactively, you can just put point inside the defcustom somewhere and hit
`C-M-x'.




  reply	other threads:[~2010-10-27 14:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  8:44 Modifying many function calls Andrea Crotti
2010-10-26  9:55 ` Andrea Crotti
2010-10-26 19:07   ` Glauber Alex Dias Prado
2010-10-27  8:11   ` Andreas Röhler
2010-10-27 10:16     ` Andrea Crotti
2010-10-27 11:09       ` Andreas Röhler
2010-10-27 14:24         ` Drew Adams [this message]
2010-10-27 13:05       ` Andreas Röhler
2010-10-28  2:56       ` PJ Weisberg
     [not found]     ` <mailman.1.1288174667.7486.help-gnu-emacs@gnu.org>
2010-10-27 13:40       ` Scott Frazer

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=D85D6BC2847D4C389961F9BB2CCDB832@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@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.