From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: Custom dependencies
Date: Tue, 08 Apr 2003 14:56:09 +0200 [thread overview]
Message-ID: <84wui5xi52.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: rzq7ka5qqmz.fsf@albion.dl.ac.uk
Dave Love <d.love@dl.ac.uk> writes:
> "Stefan Monnier" <monnier+gnu/emacs/pretest@rum.cs.yale.edu> writes:
>
>> - The case as above where variable A has a non-trivial :set function
>> which depends on variable B, so that when B is changed something
>> should be done to A.
>> It seems that the :set-after thingy is a good way to specify the
>> dependency, but it doesn't describe what should be done to A
>> when B changes.
>
> I think it does. A should be re-set from its current value, since
> something it depends on has changed. Are there cases in which that
> would be wrong?
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.
>> Kai suggests turn A off and back on, but you seem object to it.
>
> I don't remember that, and it's not anything I thought I was objecting
> to. It's not a question of off and on in this case anyhow -- the
> state that changes is the contents of a hash table.
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.
Of course, it is better to just populate the hash table in the right
way, without clearing it first.
>> I believe that you object only to
>> set-language-environment doing it, not to the off&on thing: it
>> should be done by custom without set-language-environment
>> (or current-language-environment for that matter) knowing anything
>> about utf-translate-cjk-mode.
>
> Yes, if I understand correctly.
So to look through all variables Y to see if their :set-after list
mentions X, and if so, to call the :set function?
That's a good idea.
(It would be nice to be able to do without the (custom-set-variables
...) block that's now used by Customize, because of the conditionals
I mentioned.)
--
A preposition is not a good thing to end a sentence with.
next prev parent reply other threads:[~2003-04-08 12:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <rzqvfxvh7wj.fsf@albion.dl.ac.uk>
[not found] ` <8465pvpnhy.fsf@lucy.is.informatik.uni-duisburg.de>
[not found] ` <rzqadf6fr4h.fsf@albion.dl.ac.uk>
2003-04-04 15:19 ` Custom dependencies (was: utf-translate-cjk-mode) Stefan Monnier
2003-04-04 19:42 ` Custom dependencies Kai Großjohann
2003-04-04 20:33 ` Stefan Monnier
2003-04-05 15:49 ` Kai Großjohann
2003-04-06 20:55 ` Stefan Monnier
2003-04-07 9:05 ` Kai Großjohann
2003-04-08 9:34 ` Custom dependencies (was: utf-translate-cjk-mode) Dave Love
2003-04-08 12:56 ` Kai Großjohann [this message]
2003-04-08 18:35 ` Custom dependencies Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84wui5xi52.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).