[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
redefining/re-evaluating a defcustom [was: Modifying many function calls
From: |
Drew Adams |
Subject: |
redefining/re-evaluating a defcustom [was: Modifying many function calls] |
Date: |
Wed, 27 Oct 2010 07:24:45 -0700 |
> > 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'.