emacs-devel
[Top][All Lists]
Advanced

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

Re: org-mode and mode hooks.


From: Richard Stallman
Subject: Re: org-mode and mode hooks.
Date: Wed, 01 Jun 2005 13:22:43 -0400

    >    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?




reply via email to

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