emacs-devel
[Top][All Lists]
Advanced

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

Re: flypell and check-comments.


From: Stefan Monnier
Subject: Re: flypell and check-comments.
Date: Sun, 11 Mar 2007 17:58:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

> + ;; Avoid requiring 'jit-lock and 'lazy-lock.
> + (defalias 'font-lock--jitify 'jit-lock-fontify-now)
> + (defalias 'font-lock--lazify 'lazy-lock-fontify-region)
> + 
> + (defun font-lock-ensure-fontified (beg end)
> +   "Ensure the region BEG..END is fontified, if needed."
> +   (cond ((and (boundp 'jit-lock-mode) (symbol-value 'jit-lock-mode))
> +      (font-lock--jitify beg end))
> +     ((and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode))
> +      (font-lock--lazify beg end))))
> + 

Actually, I'd rather you do it as

  (defvar font-lock-ensure-fontified-function 'ignore)

and then in jit-lock.el set it (buffer-locally) to jit-lock-fontify-now.


        Stefan




reply via email to

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