emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] font-core: add font-lock-{enable, disable}-global-for functi


From: Stefan Monnier
Subject: Re: [PATCH] font-core: add font-lock-{enable, disable}-global-for functions
Date: Sun, 04 Jan 2015 14:42:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> For centralized user customization, I believe.

But the redundancy is rather problematic, not to mention the fact that
the semantics is unclear (e.g. how does it interact with derived modes?
How does it interact with explicit calls in the mode hook? ...).

> It's a nice pattern: you see all the major modes font-lock-mode won't be
> enabled in.

Maybe we should provide something like M-x customize-minor-mode-states RET
which would collect the presence/absence of `foo-mode' or `(lambda ()
(foo-mode N))' in all the hooks and let the user add/remove them from
those hooks.


        Stefan



reply via email to

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