[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with defcustom setter functions during byte-compile
From: |
Stefan Monnier |
Subject: |
Re: Problems with defcustom setter functions during byte-compile |
Date: |
Sat, 06 Oct 2012 08:44:53 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> (defcustom srecode-map-load-path
> [... stuff snipped ...]
> :set 'srecode-map-load-path-set)
> The :set function `srecode-map-load-path-set' is called as soon as this
> file is loaded.
Actually, when the defcustom is executed, the it's the initializer
that's called, and it just so happens that the default initializer in
turn calls the setter.
So you should be able to work around this problem by adding ":initialize
#'custom-initialize-default".
Stefan