emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reacting to local var changes in mode-hooks and file-local vars


From: Stefan Monnier
Subject: Re: Reacting to local var changes in mode-hooks and file-local vars
Date: Thu, 16 Dec 2010 23:34:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> The "set up some more vars" code is there because those vars may depend
>> on some other vars that are likely to be changed by the user in the
>> my-mode-hook.
> Do you have an example?  I think it's generally bad policy for a major
> mode to second-guess what the user might do in the mode hook.

Examples are along the lines of "adjust font-lock keywords according to
user settings like foo-mode-extra-keywords or foo-mode-sublanguage".
If you grep for "add-hook 'hack-local-variables-hook" in lisp/progmodes,
you'll see a few example cases.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]