emacs-devel
[Top][All Lists]
Advanced

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

Re: Path to make desktop.el remember hi-lock-interactive-patterns


From: Davis Herring
Subject: Re: Path to make desktop.el remember hi-lock-interactive-patterns
Date: Tue, 12 May 2009 07:52:34 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-5.3.lanl4

> +        ;; Hi-lock
> +        (when (and (boundp 'hi-lock-interactive-patterns)
> +                   hi-lock-interactive-patterns
> +                   hi-lock-mode)
> +          (font-lock-add-keywords nil hi-lock-interactive-patterns t)
> +          (font-lock-fontify-buffer))))))

It would be cleaner to invoke some function in hi-lock.el rather than
going straight into font-lock.  Moreover, hi-lock-mode already has a
persistence mechanism; why does desktop need to additionally provide one
that lasts only as long as you don't kill the buffer?

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

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