From: Vince D. <vi...@sa...> - 2003-05-30 08:55:14
|
>> (c) Somewhere during the init process, do something like hook::register mode::init elec::createElectricReturnPref * # This will create a mode pref for "electricReturn" if there was no # such preference created by loading the mode -- mode defined prefs # and previously set user prefs will always take precedence. proc elec::createElectricReturnPref {args} { newPref flag electricReturn 0 $::mode } >> The above is the only piece of Craig's proposal that I don't like. The only alternatives I can see are: 1) to add these prefs to each mode directly (in their .tcl files) 2) we can also just set a global 'electricReturn' variable to 1 (or 0) (and fix it at that value), but NOT have it exposed to the user as a preference. That way Alpha has a global default which is simply over-ridden by each mode which wishes to have a preference for it. -- Vince <http://www.santafe.edu/~vince> |