>    Suppose we make font-lock-add-keywords with nil for MODE
    >    record its argument in some permanent buffer-local variable.
    >    Then changing the major mode and reenabling font-lock
    >    would use the same keywords previously added.

    Problem is that some of those keywords should be permanent and others
    shouldn't.  E.g. it depends whether they correspond to a minor mode
    which is permanent or not.

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?


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to