On Thu Apr 14 2011 Stefan Monnier wrote: > >> I suggest change all these defcustom instances something like: > >> > >> (defcustom bbdb-create-hook nil > >> :group 'bbdb > >> :type 'hook) > >> (add-hook 'bbdb-create-hook 'bbdb-creation-date) > > > Agreed and thanks, that looks much cleaner! > > But then don't define them as defcustom but just defvars since Custom > gets confused by the add-hook.
...another good point! -- It would be nice to have a possibility to define hook variables with defcustom such that these variables can have a non-nil default value. But the more I think about this, the more this appears to be a nasty and messy problem (allowing the user both to extend the hook and to replace the hook). Oh well... Roland ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/