[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom dependencies
From: |
Stefan Monnier |
Subject: |
Re: Custom dependencies |
Date: |
Tue, 08 Apr 2003 14:35:50 -0400 |
> So, let's see. We have (defcustom A ... :set-after '(B) ... :set
> ...something.long.here...). And Dave suggests to call the :set
> function from A after B has changed. So whenever a variable X is
> changed, we have to look through all other variables Y to see if they
> mention X in the :set-after list.
No need for a "global search": you just need to do
(push 'A (get 'B 'custom-reset-after-update))
when evaluating A's defcustom.
> My thinking was as follows: (utf-translate-cjk-mode -1) clears the
> hash table so that CJK unification is not done. A subsequent
> (utf-translate-cjk-mode 1) statement would then look at
> current-language-environment and populate the hash table accordingly.
(utf-translate-cjk-mode 1) might also begin by clearing the hash-table.
Some minor modes try to optimize the case where "the mode was already
ON", but I think it's generally cleaner and more robust not to try and
be clever.
Stefan
Re: Custom dependencies (was: utf-translate-cjk-mode), Dave Love, 2003/04/08