> Maybe we should label each of these things by the name of the minor
> mode.  That way, we could tell which of them to discard.  Or we could
> give each one a flag saying whether to preserve it when changing the
> major mode.

> Would that solve the problem?

Yes, I think a real solution is to define a new way to add keywords.
It could look like a new var minor-mode-font-lock-keywords-alist modelled
after minor-mode-map-alist.  I think the important part is that the API
should be declarative rather than imperative, so that at any point in time
we can reconstruct font-lock-keywords from font-lock-defaults and whatever
other keyword-sources there can be (such as
minor-mode-font-lock-keywords-alist).


        Stefan


_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to